Overview
URLScan.io scans and screenshots any URL in a sandboxed browser, then returns a detailed report covering the page content, network requests, linked domains, technologies detected, and threat indicators. It is particularly useful for safely investigating suspicious links without visiting them yourself. Beginners can use it to build phishing investigation tools or link preview features.
Beginner Tip
Register at urlscan.io for a free API key. Scanning is asynchronous — first POST to /scan to submit, then poll GET /result/{uuid}/ until the scan is complete (usually 10-30 seconds).
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://urlscan.io/api/v1/search/?q=domain:urlscan.io
- Result
- HTTP 200 · application/json · 175,111 bytes · compressed
- Response time
- 617 ms (median of 3) · fastest 598 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
- Browser CORS
- No Access-Control-Allow-Origin header — call it from a server, not the browser
- Rate limit
- 30 per window
- Served by
- nginx
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| results | array | [1 item] |
| total | integer | 10000 |
| took | integer | 583 |
| has_more | boolean | true |
Captured Response
Captured from a real request to https://urlscan.io/api/v1/search/?q=domain:urlscan.io on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
{
"results": [
{
"submitter": {},
"canonical": {
"…": "(2 more fields)"
},
"task": {
"…": "(7 more fields)"
},
"stats": {
"…": "(5 more fields)"
},
"page": {
"…": "(20 more fields)"
},
"_id": "019fec4c-012b-71e9-a10d-3d839356646a",
"_score": null,
"sort": [
1786375838304
],
"result": "https://urlscan.io/api/v1/result/019fec4c-012b-71e9-a10d-3d839356646a/",
"screenshot": "https://urlscan.io/screenshots/019fec4c-012b-71e9-a10d-3d839356646a.png"
}
],
"total": 10000,
"took": 583,
"has_more": true
} Field Reference
result URL where the full scan report will be available once processing is complete Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://urlscan.io/about-api/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
{
"message": "Not Found",
"description": "We could not find this page",
"status": 404,
"errors": [
{
"title": "Not Found",
"detail": "We could not find this page",
"status": 404
}
]
} {
"message": "ElasticSearch search error, make sure your query is syntactically correct",
"status": 400,
"errors": [
{
"title": "ElasticSearch search error, make sure your query is syntactically correct",
"detail": "ElasticSearch search error, make sure your query is syntactically correct",
"status": 400
}
]
} Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Explore More
Similar APIs
View All →AbuseIPDB
AbuseIPDB lets you check whether an IP address has been reported for malicious activity like spam, hacking, or DDoS attacks.
AlienVault Open Threat Exchange (OTX)
AlienVault Open Threat Exchange (OTX) provides programmatic access to ip/domain/url reputation via REST API.
CAPEsandbox
CAPEsandbox is an open-source malware analysis platform that executes suspicious files in an isolated environment and reports on their behavior.
Google Safe Browsing
Google Safe Browsing lets you check any URL against Google's constantly updated lists of phishing sites, malware distributors, and unwanted software.
MalDatabase
MalDatabase provides programmatic access to provide malware datasets and threat intelligence feeds via REST API.