---
agentTools:
  projectIndex: https://spyse-dev.readme.io/llms.txt
---

# Search

Returns a list of emails that matched the search query. Allows getting only the first 10,000 results. To get all results please use scroll or download API endpoints. By default, search operations, which return a list of found items, return only the first 25 items. To get a different set of items, you can use the offset and limit parameters in the request body.

Options for search params:

[block:html]
{
  "html": "<div class=\"rdmd-table\">\n  <div class=\"rdmd-table-inner\">\n    <table>\n      <thead>\n      <tr>\n        <th style=\"text-align: left;\">Search parameter</th>\n        <th style=\"text-align: left;\">Operator</th>\n        <th style=\"text-align: left;\">Value</th>\n      </tr>\n      </thead>\n      <tbody>\n      <tr>\n        <td style=\"text-align: left;\"><strong>email</strong></td>\n        <td style=\"text-align: left;\"><code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">eq</div>\n        </code>, <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">not_eq</div>\n        </code>, <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">contains</div>\n        </code>, <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">not_contains</div>\n        </code>, <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">starts</div>\n        </code>, <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n          <div class=\"cm-s-neo\">ends</div>\n        </code></td>\n        <td style=\"text-align: left;\">Search by email address.<br>\n          <code class=\"rdmd-code lang-\" data-lang=\"\" name=\"\">\n            <div class=\"cm-s-neo\">string</div>\n          </code></td>\n      </tr>\n      </tbody>\n    </table>\n  </div>\n</div>"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The purpose of this application is to provide authorized access to the data of the spyse project.",
    "title": "Data API",
    "version": "4.0.0"
  },
  "paths": {
    "/email/search": {
      "post": {
        "description": "Returns a list of emails that matched the search query. Allows getting only the first 10,000 results. To get all results please use scroll or download API endpoints. By default, search operations, which return a list of found items, return only the first 25 items. To get a different set of items, you can use the offset and limit parameters in the request body.",
        "tags": [
          "Emails"
        ],
        "summary": "Search",
        "operationId": "email_search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchEmailRequest"
              }
            }
          },
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "description": "Operation successful"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.spyse.com/v4/data/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "Error": {
        "description": "Error is represents response error model",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "x-go-name": "Code"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldError"
            },
            "x-go-name": "Errors"
          },
          "message": {
            "type": "string",
            "x-go-name": "Message"
          }
        }
      },
      "ErrorResponse": {
        "description": "ErrorResponse is returned on request handling error",
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "FieldError": {
        "description": "FieldError is represents response fields error model",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "x-go-name": "Code"
          },
          "location": {
            "type": "string",
            "x-go-name": "Location"
          },
          "message": {
            "type": "string",
            "x-go-name": "Message"
          }
        }
      },
      "SearchEmailRequest": {
        "type": "object",
        "required": [
          "search_params"
        ],
        "properties": {
          "limit": {
            "description": "The maximum number of items to return per page. Value must be in the range between 1 and 100.",
            "type": "integer",
            "format": "int64",
            "maximum": 100,
            "minimum": 1,
            "x-go-name": "Limit"
          },
          "offset": {
            "description": "The offset of the item at which to begin the response. Value must be in the range between 1 and 9999.",
            "type": "integer",
            "format": "int64",
            "maximum": 9999,
            "minimum": 0,
            "x-go-name": "Offset"
          },
          "search_params": {
            "description": "A list of email attributes to filter the search results by. A comprehensive list of valid search parameters is shown in the table below.",
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/SearchParam"
              }
            },
            "x-go-name": "SearchParams"
          }
        }
      },
      "SearchParam": {
        "description": "Search parameter name.",
        "type": "object",
        "title": "search parameter",
        "required": [
          "operator",
          "value"
        ],
        "properties": {
          "operator": {
            "description": "Search parameter operator.",
            "type": "string",
            "x-go-name": "Operator",
            "example": "eq"
          },
          "value": {
            "description": "Search parameter value.",
            "type": "string",
            "x-go-name": "Value"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 96,
      "1": 116,
      "2": 57,
      "3": 140,
      "4": 54,
      "5": 155,
      "6": 214,
      "7": 2,
      "8": 125,
      "9": 74,
      "10": 155,
      "11": 87
    }
  }
}
```