# urlscan.io extension API reference

> The urlscan.io API submits a URL for a scan in a sandbox browser, returns the result of a finished scan, and searches the archive of earlier scans by domain, IP, ASN, hash and other attributes. An investigator uses it to see what a page loaded, where it was hosted and what verdicts it received.…

Source: https://osinttools.io/apis/urlscan-extension/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/urlscan-extension/

- Base URL: https://urlscan.io
- Authentication: API key in the `api-key` header.
- Rate limits: Not stated in the docs
- Vendor docs: https://docs.urlscan.io/pages/api-intro
- OpenAPI spec: https://docs.urlscan.io/_bundle/apis/urlscan-openapi.yaml

## Overview

The urlscan.io API submits a URL for a scan in a sandbox browser, returns the result of a finished scan, and searches the archive of earlier scans by domain, IP, ASN, hash and other attributes. An investigator uses it to see what a page loaded, where it was hosted and what verdicts it received.

Requests go to `https://urlscan.io` with the key in the `api-key` header. Unauthenticated users only receive minor quotas. After submitting, the docs advise waiting at least 10 seconds, then polling the result every 2 seconds. Pro endpoints, live scanning, saved searches, incidents and data dumps exist and are not described here.

## Scanning

### Submit a URL to be scanned.

`POST /api/v1/scan`

- Takes: URL
- Footprint: active (contacts the target)

Returns a scan UUID. Poll the result endpoint with it, waiting at least 10 seconds before the first poll.

Response fields:

- `uuid` (string): UUID of the scan result (the scanId)
- `country` (string): Country the scan was run from
- `visibility` (string): Visibility determined for the scan
- `url` (string): URL scanned, as determined by the service

```bash
curl -X POST 'https://urlscan.io/api/v1/scan' \
  -H 'api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com","visibility":"unlisted","country":"US","tags":["example"]}'
```

Example response (200):

```json
{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "country": "US",
  "visibility": "unlisted",
  "url": "https://example.com/"
}
```

### Get the full result of a finished scan.

`GET /api/v1/result/{scanId}/`

- Footprint: passive (the target is not contacted)

Returns raw data, statistics, enrichment, task details, page details, lists of unique IPs and domains, and verdicts. Wait at least 10 seconds after submitting, then poll every 2 seconds, with an upper timeout.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `scanId` | path | string | yes | UUID of the scan result Example: 00000000-0000-0000-0000-000000000000 |

Response fields:

- `task.uuid` (string): Scan UUID
- `task.url` (string): URL submitted
- `task.visibility` (string): public, unlisted or private
- `page.url` (string): Final page URL
- `page.domain` (string): Page domain
- `page.ip` (string): Page IP address
- `page.server` (string): Server header
- `page.country` (string): Server country
- `page.asn` (string): Autonomous system
- `lists.ips` (string[]): Unique IPs contacted
- `lists.domains` (string[]): Unique domains contacted
- `verdicts.overall.score` (integer): -100 (benign) to 100 (malicious)
- `verdicts.overall.malicious` (boolean): Overall malicious verdict

```bash
curl 'https://urlscan.io/api/v1/result/00000000-0000-0000-0000-000000000000/' \
  -H 'api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "task": {
    "uuid": "00000000-0000-0000-0000-000000000000",
    "url": "https://example.com/",
    "visibility": "unlisted"
  },
  "page": {
    "url": "https://example.com/",
    "domain": "example.com",
    "ip": "192.0.2.10",
    "server": "example-server",
    "country": "US",
    "asn": "AS64496"
  },
  "lists": {
    "ips": [
      "192.0.2.10"
    ],
    "domains": [
      "example.com"
    ]
  },
  "verdicts": {
    "overall": {
      "score": 0,
      "malicious": false
    }
  }
}
```

## Search

### Search earlier scans with Elasticsearch query-string syntax.

`GET /api/v1/search`

- Takes: Domain, IP address, URL
- Footprint: passive (the target is not contacted)

Searches scans by default; datasource can select hostnames, incidents, notifications or certificates (Pro). Page by passing the last result's sort values as search_after; stop when fewer than size results return. Do not rely on has_more.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Search query in Elasticsearch query-string syntax Example: domain:example.com |
| `size` | query | integer | no | Number of results to return Example: 100 |
| `search_after` | query | string | no | Comma-separated sort values of the last result of the previous call Example: 1700000000000,abc123 |
| `datasource` | query | string | no | Datasource to search Example: scans One of: scans, hostnames, incidents, notifications, certificates |
| `collapse` | query | string | no | Field to collapse results on, for the current page only Example: page.domain |

Response fields:

- `results[]._id` (string): Result ID
- `results[].sort` (array): Sort values, used as search_after
- `results[].page` (object): Page details
- `results[].task` (object): Task details
- `results[].verdicts` (object): Verdicts
- `results[].screenshot` (string): Screenshot URL
- `results[].result` (string): Result API URL
- `total` (integer): Exact count up to 10,000, capped after that
- `took` (integer): Search time in milliseconds
- `has_more` (boolean): True if there are more than 10,000 results

```bash
curl 'https://urlscan.io/api/v1/search' \
  -H 'api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "results": [
    {
      "_id": "00000000-0000-0000-0000-000000000000",
      "sort": [
        1700000000000,
        "abc123"
      ],
      "page": {
        "domain": "example.com",
        "ip": "192.0.2.10"
      },
      "task": {
        "url": "https://example.com/"
      }
    }
  ],
  "total": 1,
  "took": 12,
  "has_more": false
}
```

## Account

### Show available and used API quotas.

`GET /api/v1/quotas`

- Footprint: passive (the target is not contacted)

Returns the quota scope and, for the daily period, limit, used, remaining and percent.

Response fields:

- `scope` (string): Scope of the quota limits
- `limits.private.day.limit` (integer): Maximum allowed usage
- `limits.private.day.used` (integer): Usage so far
- `limits.private.day.remaining` (integer): Quota remaining
- `limits.private.day.percent` (number): Percentage used

```bash
curl 'https://urlscan.io/api/v1/quotas' \
  -H 'api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "scope": "read",
  "limits": {
    "private": {
      "day": {
        "limit": 1000,
        "used": 250,
        "remaining": 750,
        "percent": 25
      }
    }
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
