Skip to content
OSINTtools.io

URLScan.io API

Sandbox that loads a URL in a browser and records requests, IPs, domains, screenshots and page content.

Base URL
https://urlscan.io
Sign-in
API key
Free tier
Free tier
Pricing
Subscription
Format
REST
Endpoints
9

Compiled by OSINTtools.io editors from docs.urlscan.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The urlscan.io API submits a URL to be loaded in a headless Chrome browser and returns what happened: every HTTP request and response, the domains, IPs, ASNs, certificates and hashes contacted, the page's server, location and TLS details, a screenshot, the DOM and urlscan's verdicts. Its search finds earlier scans by domain, IP, ASN, hash and other fields.

An investigator uses it to see where a suspicious link leads and what it loads without opening it themselves, and to search past scans for a domain or IP. Submitting a scan makes urlscan's browser visit the URL (active); search and result retrieval read stored scans (passive). Scans are public by default and then show up in everyone's search: use unlisted or private visibility for anything sensitive.

Calls go to https://urlscan.io with your key in the API-Key header (create one under Settings & API after signing up). Submit with POST /api/v1/scan, wait, then poll GET /api/v1/result/{scanId}/, which answers 404 until the scan has finished. Unauthenticated requests get only minor quotas, and free users may be limited to recent history in search; some data sources (hostnames, malicious-observable lookups) need urlscan Pro.

Quick start

  1. Get a key

    Create an account with URLScan.io and copy your api key (free tier). Where to get it

  2. Make your first request

    Get a finished scan: requests, contacted hosts, page details, lists and verdicts. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://urlscan.io/api/v1/result/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc/' \
      -H 'API-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response (Trimmed) looks like this, shortened.

    {
      "task": {
        "uuid": "0b7c6f2e-1a2b-4c3d-9e8f-123456789abc",
        "time": "2026-11-28T10:00:00.000Z",
        "url": "https://example.com/login",
        "domain": "example.com",
        "apexDomain": "example.com",
        "visibility": "unlisted",
        "method": "api",
        "screenshotURL": "https://urlscan.io/screenshots/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc.png",
        "domURL": "https://urlscan.io/dom/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc/",
        "tags": [
          "phishing"
        ]
      },
      "page": {
        "url": "https://www.example.com/login",
        "domain": "www.example.com",
        "apexDomain": "example.com",
        "country": "NL",
        "server": "nginx",
        "ip": "203.0.113.7",
        "asn": "AS64500",
        "asnname": "EXAMPLE-AS, NL",
    …

Authentication

Send your API key in the API-Key header of every request.

Create the key under Settings & API.

Get a key from URLScan.io

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Each action (search, public, unlisted and private scans, result retrieval) has its own per-minute, per-hour and per-day limit, which depend on your account; read yours from GET /api/v1/quotas. Windows reset at the full minute, the full hour and midnight UTC, and only successful (200) requests count.

Free tier. Pricing: subscription.

  • FreeFree · API only; 5,000 public, 50 private scans and 1,000 searches per day
  • Automate$5,000/year · API only; 2,500 private scans and 12,500 searches per day
  • Professional$1,250/month · API + Pro threat hunting, 10 seats, 20,000 private scans/day, 100 monitored domains
  • Enterprise$2,500/month · 30 seats, 100,000 private scans/day, 300 monitored domains, 1 private location
  • Ultimate$5,000/month · 100 seats, 200,000 private scans/day, 1,000 monitored domains, 2 private locations

Plans from urlscan.io, checked Nov 25, 2026.

Errors

StatusMeaning
400Request not accepted: blocked or spammy URL, invalid hostname or scheme, missing url, basic-auth credentials in the URL, a hostname that does not resolve, or a validation error
404Result not available yet: the scan has not finished
429Rate limit or quota for that action exceeded

Scanning

urlscan's headless browser loads the URL, so the target is contacted. Returns the scan's UUID; fetch the result with GET /api/v1/result/{scanId}/ once it finishes. Visibility defaults to public, which makes the scan searchable by anyone.

Request body (JSON) · 7Show

urlstringalways present

The URL to be scanned

visibilitystring

public (default), unlisted or private

countrystring

Country to scan from, ISO 3166-1 alpha-2; chosen automatically if not given

tags[]string

Up to 10 user-defined tags, 30 characters each

overrideSafetystring

Any value disables reclassification of URLs with potential PII

refererstring

Override the HTTP referer for this scan

customagentstring

Override the HTTP User-Agent for this scan

Response fields · 4Show

uuidstring

UUID of the scan result (the scanId)

countrystring

Country the scan runs from

visibilitystring

Visibility given to the scan

urlstring

URL being scanned

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/login","visibility":"unlisted","country":"de","tags":["phishing"]}'
Replace YOUR_API_KEY with your key
Response
{
  "uuid": "0b7c6f2e-1a2b-4c3d-9e8f-123456789abc",
  "visibility": "unlisted",
  "url": "https://example.com/login",
  "country": "de"
}
  • Passive: the target is not contacted

Returns 404 until the scan has finished. The docs suggest waiting at least 10 seconds, then polling every 2 seconds with an upper timeout. The full result is large: data holds every request and response, cookies and console logs; lists aggregates IPs, domains, URLs, ASNs, certificates and hashes.

Path parameters

scanIdstringrequired

UUID of the scan result

Example: 0b7c6f2e-1a2b-4c3d-9e8f-123456789abc
Response fields · 21Show

uuidstring

Scan ID

timestring

When the scan was created

urlstring

URL that was submitted

visibilitystring

public, unlisted or private

screenshotURLstring

Link to the screenshot

urlstring

Final URL after redirects

domainstring

Hostname of the final URL

ipstring

IP contacted for the main page

asnstring

AS number of that IP

countrystring

GeoIP country of that IP

titlestring

Page title

tlsIssuerstring

Issuer of the page's TLS certificate

domainAgeDaysinteger

Age of the domain in days at scan time

ips[]string

IPs contacted

domains[]string

Hostnames contacted

urls[]string

URLs requested

hashes[]string

SHA256 hashes of response bodies

scoreinteger

-100 (benign) to 100 (malicious)

maliciousboolean

Overall malicious verdict

categories[]string

Categories such as phishing

requests[]object

Every HTTP transaction during the page load

curl 'https://urlscan.io/api/v1/result/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc/' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "task": {
    "uuid": "0b7c6f2e-1a2b-4c3d-9e8f-123456789abc",
    "time": "2026-11-28T10:00:00.000Z",
    "url": "https://example.com/login",
    "domain": "example.com",
    "apexDomain": "example.com",
    "visibility": "unlisted",
    "method": "api",
    "screenshotURL": "https://urlscan.io/screenshots/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc.png",
    "domURL": "https://urlscan.io/dom/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc/",
    "tags": [
      "phishing"
    ]
  },
  "page": {
    "url": "https://www.example.com/login",
    "domain": "www.example.com",
    "apexDomain": "example.com",
    "country": "NL",
    "server": "nginx",
    "ip": "203.0.113.7",
    "asn": "AS64500",
    "asnname": "EXAMPLE-AS, NL",
    "title": "Sign in",
    "mimeType": "text/html",
    "status": "200",
    "domainAgeDays": 12,
    "tlsIssuer": "Example CA",
    "tlsValidDays": 89
  },
  "lists": {
    "ips": [
      "203.0.113.7"
    ],
    "countries": [
      "NL"
    ],
    "asns": [
      "64500"
    ],
    "domains": [
      "www.example.com"
    ],
    "urls": [
      "https://www.example.com/login"
    ],
    "hashes": [
      "9f2c1d4e5b6a7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
    ]
  },
  "verdicts": {
    "overall": {
      "score": 100,
      "categories": [
        "phishing"
      ],
      "brands": [],
      "tags": [],
      "malicious": true,
      "hasVerdicts": true
    }
  },
  "stats": {
    "uniqIPs": 1,
    "uniqCountries": 1
  }
}
  • Passive: the target is not contacted

Available once the scan has finished.

Path parameters

scanIdstringrequired

UUID of the scan result

Example: 0b7c6f2e-1a2b-4c3d-9e8f-123456789abc
curl 'https://urlscan.io/screenshots/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc.png' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
(binary PNG image)
  • Passive: the target is not contacted

The page's DOM as the browser saw it, as plain text. Available once the scan has finished.

Path parameters

scanIdstringrequired

UUID of the scan result

Example: 0b7c6f2e-1a2b-4c3d-9e8f-123456789abc
curl 'https://urlscan.io/dom/0b7c6f2e-1a2b-4c3d-9e8f-123456789abc/' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
<html><head><title>Sign in</title></head><body><form action="/session">...</form></body></html>

Pro lookups

  • Takes: Domain
  • Passive: the target is not contacted
  • Plan: urlscan Pro

Returns observations of the hostname from the Hostnames data source with first and last seen dates. If pageState is set in the response, repeat the call with it for more. urlscan Pro.

Path parameters

hostnamestringrequiredtakes your domain

The hostname to query

Example: www.example.com

Query parameters

limitinteger

Return at most this many results (10 to 10000)

Example: 100Default: 1000
pageStatestring

Page state from the previous call, to get more results

Example: AbCdEf123
Response fields · 7Show

seen_onstring

Date (YYYY-MM-DD)

sourcestring

ct, scan, pdns, zonefile, scan-link or scan-cert-subject

sub_idstring

Observation value, can be empty

first_seenstring

First seen (ISO 8601)

last_seenstring

Last seen (ISO 8601)

dataobject

Additional JSON for the record, when data_type is json

pageStatestring

Set when more results are available

curl 'https://urlscan.io/api/v1/hostname/www.example.com' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "results": [
    {
      "seen_on": "2026-11-20",
      "source": "ct",
      "sub_id": "",
      "first_seen": "2026-10-02T11:20:15.617Z",
      "last_seen": "2026-11-20T16:09:09.591Z",
      "data_type": null,
      "data": null
    },
    {
      "seen_on": "2026-11-18",
      "source": "pdns",
      "sub_id": "",
      "first_seen": "2026-10-03T08:00:00.000Z",
      "last_seen": "2026-11-18T08:00:00.000Z",
      "data_type": null,
      "data": null
    }
  ]
}

domain matches the apex domain and all its subdomains; hostname matches one exact host; url must be URL-encoded. urlscan Pro.

Path parameters

typestringrequired

Kind of observable

Example: domainOne of: ip, hostname, domain, url
valuestringrequired

The observable; a URL must be URL-encoded

Example: example.com
Response fields · 5Show

observablestring

The value looked up

typestring

ip, hostname, domain or url

countinteger

Times seen in malicious scan results

firstSeenstring

First seen in malicious results, or null

lastSeenstring

Last seen in malicious results, or null

curl 'https://urlscan.io/api/v1/malicious/domain/example.com' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "observable": "example.com",
  "type": "domain",
  "count": 3,
  "firstSeen": "2026-09-01T12:00:00.000Z",
  "lastSeen": "2026-11-25T07:30:00.000Z"
}

Account

List the countries scans can be run from

GET/api/v1/availableCountries

  • Passive: the target is not contacted

Values for the country field of a scan submission.

Response fields · 1Show

countries[]string

Country code

curl 'https://urlscan.io/api/v1/availableCountries' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "countries": [
    "de",
    "us",
    "jp"
  ]
}
  • Passive: the target is not contacted

Returns, for each action (private, public, retrieve, search and others), the limit, used, remaining and percent for the day, hour and minute.

Response fields · 5Show

scopestring

Scope of the limits (e.g. team)

limitinteger

Maximum for that window

usedinteger

Used in that window

remaininginteger

Remaining in that window

percentnumber

Percentage used

curl 'https://urlscan.io/api/v1/quotas' \
  -H 'API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "scope": "user",
  "limits": {
    "public": {
      "day": {
        "limit": 1000,
        "used": 12,
        "remaining": 988,
        "percent": 1
      },
      "hour": {
        "limit": 100,
        "used": 2,
        "remaining": 98,
        "percent": 2
      },
      "minute": {
        "limit": 10,
        "used": 0,
        "remaining": 10,
        "percent": 0
      }
    }
  }
}