# Search prior scans

Search existing urlscan.io scans with ElasticSearch query syntax (by domain, IP, hash, ASN and more).

|  |  |
| --- | --- |
| Tool id | `urlscan.search` |
| Platform | [URL sandbox](https://www.orcarouter.ai/tools/url-sandbox.md) |
| Capability | [Url scan search](https://www.orcarouter.ai/tools/url-sandbox/url-scan-search.md) |
| Price | $0.015 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | 1 |
| Idempotent | yes |
| Data class | unclassified |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | yes | ElasticSearch query string, e.g. "domain:example.com". |
| `search_after` | string | no | Pagination cursor from a previous result's sort value. |
| `size` | integer | no | Number of results to return. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/urlscan.search/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"q":"<q>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/urlscan.search/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"q":"<q>"}},
)
print(resp.json())
```

## FAQ

### How much does Search prior scans cost?

Search prior scans costs $0.015 per call: 1,000 calls cost $15.00.

### What does a $10 budget buy with Search prior scans?

About 666 calls at $0.015 per call.

### What inputs does Search prior scans need?

Required inputs: q.

### How do I call Search prior scans?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/url-sandbox/url-scan-search/search
