---
updatedAt: 2025-06-05T21:08:21.000Z
agentTools:
  projectIndex: https://docs.securitytrails.com/llms.txt
---

# Search Domain (filter)

Filter and search specific records using this endpoint.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "SecurityTrails API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.securitytrails.com/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/domains/list": {
      "post": {
        "summary": "Search Domain (filter)",
        "description": "Filter and search specific records using this endpoint.",
        "operationId": "search-old",
        "parameters": [
          {
            "name": "apikey",
            "in": "query",
            "description": "Your SecurityTrails API key. See [authentication documentation](doc:authentication)",
            "required": true,
            "schema": {
              "type": "string",
              "default": "your_api_key"
            }
          },
          {
            "name": "include_ips",
            "in": "query",
            "description": "Resolves any A records and additionally returns IP addresses.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page of the returned results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filter": {
                    "type": "object",
                    "description": "Can include a CIDR subnet mask",
                    "properties": {
                      "ipv4": {
                        "type": "string",
                        "description": "Can include a CIDR subnet mask"
                      },
                      "ipv6": {
                        "type": "string"
                      },
                      "apex_domain": {
                        "type": "string"
                      },
                      "keyword": {
                        "type": "string"
                      },
                      "mx": {
                        "type": "string"
                      },
                      "ns": {
                        "type": "string"
                      },
                      "cname": {
                        "type": "string"
                      },
                      "subdomain": {
                        "type": "string"
                      },
                      "soa_email": {
                        "type": "string"
                      },
                      "tld": {
                        "type": "string"
                      },
                      "whois_email": {
                        "type": "string"
                      },
                      "whois_street1": {
                        "type": "string"
                      },
                      "whois_street2": {
                        "type": "string"
                      },
                      "whois_street3": {
                        "type": "string"
                      },
                      "whois_street4": {
                        "type": "string"
                      },
                      "whois_telephone": {
                        "type": "string"
                      },
                      "whois_postalCode": {
                        "type": "string"
                      },
                      "whois_organization": {
                        "type": "string"
                      },
                      "whois_name": {
                        "type": "string"
                      },
                      "whois_fax": {
                        "type": "string"
                      },
                      "whois_city": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"record_count\": 2,\n  \"records\": [\n    {\n      \"mail_providers\": [\n        \"Google Inc.\"\n      ],\n      \"host_providers\": [\n        \"Fastly\"\n      ],\n      \"host\": null,\n      \"domain\": \"stackoverflow.com\",\n      \"alexa_rank\": 52\n    },\n    {\n      \"mail_providers\": [\n        \"Google Inc.\"\n      ],\n      \"host_providers\": [\n        \"Cloudflare Inc\"\n      ],\n      \"host\": null,\n      \"domain\": \"stackovercode.com\",\n      \"alexa_rank\": null\n    }\n  ],\n  \"org\": [\n    \"Google Inc.\"\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "record_count": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "mail_providers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "Google Inc."
                            }
                          },
                          "host_providers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "Fastly"
                            }
                          },
                          "host": {},
                          "domain": {
                            "type": "string",
                            "example": "stackoverflow.com"
                          },
                          "alexa_rank": {
                            "type": "integer",
                            "example": 52,
                            "default": 0
                          }
                        }
                      }
                    },
                    "org": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Google Inc."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"values contain invalid characters\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "values contain invalid characters"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```