---
title: "Search"
method: GET
path: "/api/v1/search"
tags: ["Search"]
---

# Search

`GET /api/v1/search`

The Search API is used to find historical scans performed on the
platform. Some data sources and searchable fields are only available on **urlscan Pro**.

The API search will only indicate an exact count of results up to 10,000 results in the total property. After that the `has_more` flag will be true. Use the `sort` value of the last (i.e. oldest) scan result in the current list of results as a parameter for the next Search API call. Supply this value in the `search_after` query parameter for getting the next (older) batch of results.

API search will find Public scans performed by anyone as well as Unlisted and Private scans performed by you or your teams.
For query syntax and searchable fields, refer to
[https://docs.urlscan.io/pages/search-api-reference](https://docs.urlscan.io/pages/search-api-reference)

## Query parameters

- `q` string
- `size` integer
- `search_after` string
- `datasource` 'scans' | 'hostnames' | 'incidents' | 'notifications' | 'certificates'
- `collapse` string

## Response `200`

OK

- SearchResponse
  - `results` unknown[] — Array of search results
    - unknown
  - `total` integer — Total number of results with an exact count up to 10,000 results.
  - `took` integer — Search request time in milliseconds.
  - `has_more` boolean — True if there are more than 10,000 results.

---

[API](https://skmtc.net/urlscan/apis/urlscan-io-apis.md) · [All operations](https://skmtc.net/urlscan/apis/urlscan-io-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/urlscan/urlscan-io-apis/revisions/5d97b31afd68/schema)
