Scrapa Map API
Every URL a site lists, from its robots.txt, its sitemaps and the links on its page, without reading the pages.
Every URL a site lists, from its robots.txt, its sitemaps and the links on its page, without reading the pages.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/scrapa-app:scrapa-app-map-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: 'scrapa.app: the browser and scraping Map API'
version: 0.1.0
description: One call reads a web page and hands it back as markdown, HTML, text, links, a screenshot or a PDF, through a plain HTTP request or a real Chromium, whichever the page turns out to need. Every request leaves through a residential proxy or your own. A page the site blocked and a URL our policy refused cost nothing, unless your own `browser.actions` script ran in the page first. Anything we broke costs nothing, and every answer says what it cost. Every operation here is also an MCP tool (see x-mcp-tools), authenticated by the same `sc_` key. Writing TypeScript or JavaScript? `npm i @scrapa/sdk` is one typed method per endpoint here.
servers:
- url: https://api.scrapa.app/v1
tags:
- name: Map
description: Every URL a site lists, from its robots.txt, its sitemaps and the links on its page, without reading the pages.
paths:
/map:
post:
operationId: map_site_post
tags:
- Map
summary: List a site's URLs
description: 'Hand back every URL a site lists, without reading the pages: what its robots.txt and sitemaps name (gzipped ones too, and indexes of sitemaps), plus the links on the page you named. Each URL comes back once, without tracking parameters or a trailing slash, with `lastmod` when the sitemap gives one. Only the host you named is kept unless you set `includeSubdomains`, and `search` keeps the URLs that contain a word. To read a page, pass its URL to `scrape`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
url:
type: string
minLength: 1
maxLength: 8192
description: The site to map, as any http(s) URL on it. Private and loopback hosts are refused.
limit:
default: 5000
description: How many URLs to hand back at most, 1 to 30,000. The price is the same whatever you ask for.
type: integer
minimum: 1
maximum: 30000
search:
description: 'Only URLs that contain this text, upper or lower case alike: `blog` keeps `/blog/` and `/Blog-post`.'
type: string
minLength: 1
maxLength: 200
includeSubdomains:
default: false
description: 'Also keep URLs on other hosts of the same domain, like `blog.example.com` for `example.com`. Off by default: only the host you named, with or without `www.`.'
type: boolean
sitemap:
default: include
description: Where to look. "include" reads the site's sitemaps and the links on the page you named; "only" reads the sitemaps alone; "skip" reads the page's links alone.
type: string
enum:
- include
- only
- skip
proxy:
description: Where the map's requests leave from. Every file it reads goes through the same exit.
type: object
properties:
pool:
default: residential
description: Which exit to leave through. "residential" is the managed pool, metered by the megabyte; "custom" is your own proxy, free on every plan, bytes never billed.
type: string
enum:
- residential
- custom
server:
description: Your own proxy, `http(s)://[user:pass@]host:port`. Required for pool "custom", refused for the managed one.
type: string
maxLength: 512
country:
description: 'Where the call should look like it comes from, ISO 3166-1 alpha-2 (`us`, `br`). Name one and the managed pool leaves from that country. Leave it out and the page sees a US browser, from an address we pick. A scrape or a map on the managed pool makes one exception: a site whose address ends in `.br`, `.de`, `.es`, `.fr`, `.it`, `.jp`, `.nl`, `.pl` or `.uk` is read from its own country. The browser''s clock and languages follow the country on every pool.'
type: string
pattern: ^[A-Za-z]{2}$
additionalProperties: false
required:
- url
security:
- bearerAuth: []
responses:
'200':
description: List a site's URLs
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
urls:
- url: https://example.com
lastmod: '2026-10-01'
- url: https://example.com/pricing
lastmod: '2026-09-12'
- url: https://example.com/blog/hello
source: both
truncated: false
pool: residential
bytes: 48211
'400':
description: 'VALIDATION_ERROR / INVALID_URL / SSRF_DENIED: the field path, the rule, and the bound a range failed against; never the value you sent. An includeTags or excludeTags selector too slow for the page your own browser.actions script built is charged, like every refusal that script could have caused.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: 'UNAUTHORIZED / INVALID_TOKEN: the key is missing, unknown or revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'402':
description: 'PLAN_GATE: a capability this plan does not include. Waiting cannot clear it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: 'AUP_DENIED / FORBIDDEN: our policy said no. Retrying the same URL cannot help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'422':
description: 'UPSTREAM_BLOCKED: the site said no. Try another engine, pool or country. NAV_TIMEOUT: timeoutMs ran out before the page was ready, or while the call waited its turn. Raise timeoutMs. PROXY_REFUSED: the proxy would not place the call: check your own proxy, or ask the managed pool for a wider place. FILE_TOO_LARGE: the file is bigger than raw returns whole, or than we read into text; ask for markdown or text instead of raw, or download it yourself. DOCUMENT_TIMEOUT: the PDF or Word file arrived, but we could not read it into text in time. We read one file for 15 s at most, and stop sooner if timeoutMs runs out; ask for raw, or try a smaller file. ACTION_FAILED: one of your browser.actions steps did not work on the page. The message names the step and why, so fix that step. None of these cost you anything, unless your own browser.actions script ran in the page first: then a refusal the script could have caused is charged, because the script may already have read the page. The credits guide lists which: https://docs.scrapa.app/en/guides/credits.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: 'RATE_LIMIT_EXCEEDED / QUOTA_EXCEEDED: waiting clears it. Retry-After says when.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: 'SERVICE_UNAVAILABLE: we broke it, or the browser engine is not running here. Already refunded.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
default:
description: Any other failure.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
x-sdk:
method: map
returns: MapResultDto
repeatable: false
x-credits: '2 credits, plus managed-proxy bandwidth past the first megabyte, every file the map read counted together. A site that lists nothing is charged, because it answered. A site that refused every file, and anything we broke, cost nothing. When our side fails partway, you still get the URLs found so far, with `truncated: true`.'
get:
operationId: map_site_get
tags:
- Map
summary: List a site's URLs
description: 'Hand back every URL a site lists, without reading the pages: what its robots.txt and sitemaps name (gzipped ones too, and indexes of sitemaps), plus the links on the page you named. Each URL comes back once, without tracking parameters or a trailing slash, with `lastmod` when the sitemap gives one. Only the host you named is kept unless you set `includeSubdomains`, and `search` keeps the URLs that contain a word. To read a page, pass its URL to `scrape`.'
parameters:
- name: url
in: query
required: true
description: The site to map.
schema:
type: string
description: The site to map.
- name: limit
in: query
required: false
description: How many URLs at most, 1 to 30000 (5000).
schema:
description: How many URLs at most, 1 to 30000 (5000).
type: string
pattern: ^\d+$
- name: search
in: query
required: false
description: Only URLs that contain this text.
schema:
description: Only URLs that contain this text.
type: string
- name: includeSubdomains
in: query
required: false
description: '`true` to also keep other hosts of the same domain.'
schema:
description: '`true` to also keep other hosts of the same domain.'
type: string
enum:
- 'true'
- 'false'
- name: sitemap
in: query
required: false
description: '"include" (the default), "only" or "skip".'
schema:
description: '"include" (the default), "only" or "skip".'
type: string
enum:
- include
- only
- skip
- name: pool
in: query
required: false
description: '"residential" (default).'
schema:
description: '"residential" (default).'
type: string
enum:
- residential
- custom
- name: server
in: query
required: false
description: Your own proxy, for pool "custom".
schema:
description: Your own proxy, for pool "custom".
type: string
- name: country
in: query
required: false
description: Where the requests leave from, ISO 3166-1 alpha-2; `us` unless you say.
schema:
description: Where the requests leave from, ISO 3166-1 alpha-2; `us` unless you say.
type: string
pattern: ^[A-Za-z]{2}$
security:
- bearerAuth: []
responses:
'200':
description: List a site's URLs
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
urls:
- url: https://example.com
lastmod: '2026-10-01'
- url: https://example.com/pricing
lastmod: '2026-09-12'
- url: https://example.com/blog/hello
source: both
truncated: false
pool: residential
bytes: 48211
'400':
description: 'VALIDATION_ERROR / INVALID_URL / SSRF_DENIED: the field path, the rule, and the bound a range failed against; never the value you sent. An includeTags or excludeTags selector too slow for the page your own browser.actions script built is charged, like every refusal that script could have caused.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: 'UNAUTHORIZED / INVALID_TOKEN: the key is missing, unknown or revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'402':
description: 'PLAN_GATE: a capability this plan does not include. Waiting cannot clear it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: 'AUP_DENIED / FORBIDDEN: our policy said no. Retrying the same URL cannot help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'422':
description: 'UPSTREAM_BLOCKED: the site said no. Try another engine, pool or country. NAV_TIMEOUT: timeoutMs ran out before the page was ready, or while the call waited its turn. Raise timeoutMs. PROXY_REFUSED: the proxy would not place the call: check your own proxy, or ask the managed pool for a wider place. FILE_TOO_LARGE: the file is bigger than raw returns whole, or than we read into text; ask for markdown or text instead of raw, or download it yourself. DOCUMENT_TIMEOUT: the PDF or Word file arrived, but we could not read it into text in time. We read one file for 15 s at most, and stop sooner if timeoutMs runs out; ask for raw, or try a smaller file. ACTION_FAILED: one of your browser.actions steps did not work on the page. The message names the step and why, so fix that step. None of these cost you anything, unless your own browser.actions script ran in the page first: then a refusal the script could have caused is charged, because the script may already have read the page. The credits guide lists which: https://docs.scrapa.app/en/guides/credits.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: 'RATE_LIMIT_EXCEEDED / QUOTA_EXCEEDED: waiting clears it. Retry-After says when.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: 'SERVICE_UNAVAILABLE: we broke it, or the browser engine is not running here. Already refunded.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
default:
description: Any other failure.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
x-credits: '2 credits, plus managed-proxy bandwidth past the first megabyte, every file the map read counted together. A site that lists nothing is charged, because it answered. A site that refused every file, and anything we broke, cost nothing. When our side fails partway, you still get the URLs found so far, with `truncated: true`.'
/map/quote:
post:
operationId: quote_map_post
tags:
- Map
summary: Price a map
description: What the same map would cost, without making it. Free, and refused by the same guards a real call meets. Bandwidth is priced per megabyte because nobody knows a site's sitemap size before reading it.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
url:
type: string
minLength: 1
maxLength: 8192
description: The site to map, as any http(s) URL on it. Private and loopback hosts are refused.
limit:
default: 5000
description: How many URLs to hand back at most, 1 to 30,000. The price is the same whatever you ask for.
type: integer
minimum: 1
maximum: 30000
search:
description: 'Only URLs that contain this text, upper or lower case alike: `blog` keeps `/blog/` and `/Blog-post`.'
type: string
minLength: 1
maxLength: 200
includeSubdomains:
default: false
description: 'Also keep URLs on other hosts of the same domain, like `blog.example.com` for `example.com`. Off by default: only the host you named, with or without `www.`.'
type: boolean
sitemap:
default: include
description: Where to look. "include" reads the site's sitemaps and the links on the page you named; "only" reads the sitemaps alone; "skip" reads the page's links alone.
type: string
enum:
- include
- only
- skip
proxy:
description: Where the map's requests leave from. Every file it reads goes through the same exit.
type: object
properties:
pool:
default: residential
description: Which exit to leave through. "residential" is the managed pool, metered by the megabyte; "custom" is your own proxy, free on every plan, bytes never billed.
type: string
enum:
- residential
- custom
server:
description: Your own proxy, `http(s)://[user:pass@]host:port`. Required for pool "custom", refused for the managed one.
type: string
maxLength: 512
country:
description: 'Where the call should look like it comes from, ISO 3166-1 alpha-2 (`us`, `br`). Name one and the managed pool leaves from that country. Leave it out and the page sees a US browser, from an address we pick. A scrape or a map on the managed pool makes one exception: a site whose address ends in `.br`, `.de`, `.es`, `.fr`, `.it`, `.jp`, `.nl`, `.pl` or `.uk` is read from its own country. The browser''s clock and languages follow the country on every pool.'
type: string
pattern: ^[A-Za-z]{2}$
additionalProperties: false
required:
- url
security:
- bearerAuth: []
responses:
'200':
description: Price a map
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
pool: residential
cost: 2
freeMb: 1
perMb: 10
'400':
description: 'VALIDATION_ERROR / INVALID_URL / SSRF_DENIED: the field path, the rule, and the bound a range failed against; never the value you sent. An includeTags or excludeTags selector too slow for the page your own browser.actions script built is charged, like every refusal that script could have caused.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: 'UNAUTHORIZED / INVALID_TOKEN: the key is missing, unknown or revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'402':
description: 'PLAN_GATE: a capability this plan does not include. Waiting cannot clear it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: 'AUP_DENIED / FORBIDDEN: our policy said no. Retrying the same URL cannot help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'422':
description: 'UPSTREAM_BLOCKED: the site said no. Try another engine, pool or country. NAV_TIMEOUT: timeoutMs ran out before the page was ready, or while the call waited its turn. Raise timeoutMs. PROXY_REFUSED: the proxy would not place the call: check your own proxy, or ask the managed pool for a wider place. FILE_TOO_LARGE: the file is bigger than raw returns whole, or than we read into text; ask for markdown or text instead of raw, or download it yourself. DOCUMENT_TIMEOUT: the PDF or Word file arrived, but we could not read it into text in time. We read one file for 15 s at most, and stop sooner if timeoutMs runs out; ask for raw, or try a smaller file. ACTION_FAILED: one of your browser.actions steps did not work on the page. The message names the step and why, so fix that step. None of these cost you anything, unless your own browser.actions script ran in the page first: then a refusal the script could have caused is charged, because the script may already have read the page. The credits guide lists which: https://docs.scrapa.app/en/guides/credits.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: 'RATE_LIMIT_EXCEEDED / QUOTA_EXCEEDED: waiting clears it. Retry-After says when.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: 'SERVICE_UNAVAILABLE: we broke it, or the browser engine is not running here. Already refunded.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
default:
description: Any other failure.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
x-sdk:
method: quoteMap
returns: MapQuoteDto
repeatable: true
x-credits: 0 credits. Pricing a call is free.
get:
operationId: quote_map_get
tags:
- Map
summary: Price a map
description: What the same map would cost, without making it. Free, and refused by the same guards a real call meets. Bandwidth is priced per megabyte because nobody knows a site's sitemap size before reading it.
parameters:
- name: url
in: query
required: true
description: The site to map.
schema:
type: string
description: The site to map.
- name: limit
in: query
required: false
description: How many URLs at most, 1 to 30000 (5000).
schema:
description: How many URLs at most, 1 to 30000 (5000).
type: string
pattern: ^\d+$
- name: search
in: query
required: false
description: Only URLs that contain this text.
schema:
description: Only URLs that contain this text.
type: string
- name: includeSubdomains
in: query
required: false
description: '`true` to also keep other hosts of the same domain.'
schema:
description: '`true` to also keep other hosts of the same domain.'
type: string
enum:
- 'true'
- 'false'
- name: sitemap
in: query
required: false
description: '"include" (the default), "only" or "skip".'
schema:
description: '"include" (the default), "only" or "skip".'
type: string
enum:
- include
- only
- skip
- name: pool
in: query
required: false
description: '"residential" (default).'
schema:
description: '"residential" (default).'
type: string
enum:
- residential
- custom
- name: server
in: query
required: false
description: Your own proxy, for pool "custom".
schema:
description: Your own proxy, for pool "custom".
type: string
- name: country
in: query
required: false
description: Where the requests leave from, ISO 3166-1 alpha-2; `us` unless you say.
schema:
description: Where the requests leave from, ISO 3166-1 alpha-2; `us` unless you say.
type: string
pattern: ^[A-Za-z]{2}$
security:
- bearerAuth: []
responses:
'200':
description: Price a map
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
pool: residential
cost: 2
freeMb: 1
perMb: 10
'400':
description: 'VALIDATION_ERROR / INVALID_URL / SSRF_DENIED: the field path, the rule, and the bound a range failed against; never the value you sent. An includeTags or excludeTags selector too slow for the page your own browser.actions script built is charged, like every refusal that script could have caused.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: 'UNAUTHORIZED / INVALID_TOKEN: the key is missing, unknown or revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'402':
description: 'PLAN_GATE: a capability this plan does not include. Waiting cannot clear it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: 'AUP_DENIED / FORBIDDEN: our policy said no. Retrying the same URL cannot help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'422':
description: 'UPSTREAM_BLOCKED: the site said no. Try another engine, pool or country. NAV_TIMEOUT: timeoutMs ran out before the page was ready, or while the call waited its turn. Raise timeoutMs. PROXY_REFUSED: the proxy would not place the call: check your own proxy, or ask the managed pool for a wider place. FILE_TOO_LARGE: the file is bigger than raw returns whole, or than we read into text; ask for markdown or text instead of raw, or download it yourself. DOCUMENT_TIMEOUT: the PDF or Word file arrived, but we could not read it into text in time. We read one file for 15 s at most, and stop sooner if timeoutMs runs out; ask for raw, or try a smaller file. ACTION_FAILED: one of your browser.actions steps did not work on the page. The message names the step and why, so fix that step. None of these cost you anything, unless your own browser.actions script ran in the page first: then a refusal the script could have caused is charged, because the script may already have read the page. The credits guide lists which: https://docs.scrapa.app/en/guides/credits.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: 'RATE_LIMIT_EXCEEDED / QUOTA_EXCEEDED: waiting clears it. Retry-After says when.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: 'SERVICE_UNAVAILABLE: we broke it, or the browser engine is not running here. Already refunded.'
headers:
Retry-After:
description: When present, how many seconds to wait before trying again.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
default:
description: Any other failure.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
x-credits: 0 credits. Pricing a call is free.
components:
schemas:
ApiError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: What went wrong, as a word a program can check.
message:
type: string
description: What went wrong, as a sentence.
messageKey:
type: string
description: '`message` as a key, to show it in your reader''s language, with `params` filling its blanks.'
params:
type: object
additionalProperties:
type:
- string
- number
description: The values that fill `messageKey`'s blanks, such as a limit.
details:
description: More about this error, such as retryAfterSecs.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An `sc_` API key from the console.
x-mcp-tools:
# --- truncated at 32 KB (127 KB total) ---
# Full source: https://artifacts.apis.io/scrapa-app/openapi/scrapa-app-map-api-openapi.yml