Scrapa Search API
Ask the web a question and get ranked results back, read live off a real search front through a residential exit.
Ask the web a question and get ranked results back, read live off a real search front through a residential exit.
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-search-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 Search 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: Search
description: Ask the web a question and get ranked results back, read live off a real search front through a residential exit.
paths:
/search:
post:
operationId: search_post
tags:
- Search
summary: Search the web
description: 'Ask the web a question and get back ranked results: title, URL and the snippet the index holds. They are read live off a real search front through a residential exit, never a reseller''s cache. `country` picks both the exit and the market, so `br` returns what somebody in Brazil would see. Narrow to your own list of hosts with `includeDomains`, ask for `topic: "news"` when you want dated journalism or `topic: "images"` when you want pictures, and add `answer: true` when you want a paragraph written over the results instead of writing it yourself. To read a result, pass its URL to `scrape`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
query:
type: string
minLength: 1
maxLength: 400
description: 'What to search for, in plain words: the same thing you would type.'
limit:
default: 10
description: 'How many results to hand back at most, 1–20. Billed per 10, so asking for more than 10 costs a second row. Fewer can come back than you asked for: an index has what it has, and `includeDomains` filters what it returns.'
type: integer
minimum: 1
maximum: 20
topic:
default: general
description: 'What kind of results. "general" is the web; "news" is dated journalism, and the only topic that reliably carries `publishedAt`; "images" is pictures: each result is the page that shows one, with the picture''s own address, a thumbnail and its size in `image`. Pictures the engine marks as adult are left out.'
type: string
enum:
- general
- news
- images
timeRange:
description: Only pages from the last day, week, month or year. Absent is any time.
type: string
enum:
- day
- week
- month
- year
includeDomains:
description: 'Only results on these hosts, bare (`linkedin.com`). Subdomains are included. Asked of the search front AND enforced on the answer, so what comes back is on your list whatever the front did with it. With `topic: "images"` it takes one host.'
maxItems: 10
type: array
items:
type: string
maxLength: 253
pattern: ^(?!-)[a-z0-9-]{1,63}(?<!-)(\.(?!-)[a-z0-9-]{1,63}(?<!-))+$
answer:
default: false
description: Also write a short paragraph answering the query from the results, in the query's language. Costs one extra credit; leave it off when your own model reads the snippets.
type: boolean
proxy:
description: Where the search leaves from. `country` picks the exit AND the market the front answers for. `br` gets Brazilian results in Portuguese.
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:
- query
security:
- bearerAuth: []
responses:
'200':
description: Search the web
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
query: quanto custa abrir um MEI
topic: general
engine: brave
pool: residential
bytes: 311402
cached: false
answer: null
results:
- position: 1
url: https://www.gov.br/empresas-e-negocios/pt-br/empreendedor
title: Portal do Empreendedor | MEI
snippet: A formalização como MEI é gratuita. O empreendedor paga apenas o DAS mensal…
publishedAt: null
image: null
'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: search
returns: SearchResultDto
repeatable: false
x-credits: '4 credits per 10 results, so a `limit` above 10 costs two rows, plus 1 for `answer: true`. A search every front refused, and anything we broke, cost nothing; a search that ran and found nothing is charged, because the index answered. A repeat of the same search within a few minutes is free and says so with `cached: true`.'
get:
operationId: search_get
tags:
- Search
summary: Search the web
description: 'Ask the web a question and get back ranked results: title, URL and the snippet the index holds. They are read live off a real search front through a residential exit, never a reseller''s cache. `country` picks both the exit and the market, so `br` returns what somebody in Brazil would see. Narrow to your own list of hosts with `includeDomains`, ask for `topic: "news"` when you want dated journalism or `topic: "images"` when you want pictures, and add `answer: true` when you want a paragraph written over the results instead of writing it yourself. To read a result, pass its URL to `scrape`.'
parameters:
- name: query
in: query
required: true
description: What to search for.
schema:
type: string
description: What to search for.
- name: limit
in: query
required: false
description: How many results, 1–20 (10).
schema:
description: How many results, 1–20 (10).
type: string
pattern: ^\d+$
- name: topic
in: query
required: false
description: '"general" (the default), "news" or "images".'
schema:
description: '"general" (the default), "news" or "images".'
type: string
enum:
- general
- news
- images
- name: timeRange
in: query
required: false
description: '`day`, `week`, `month` or `year`.'
schema:
description: '`day`, `week`, `month` or `year`.'
type: string
enum:
- day
- week
- month
- year
- name: domains
in: query
required: false
description: 'Only these hosts, a comma list: `linkedin.com,instagram.com`.'
schema:
description: 'Only these hosts, a comma list: `linkedin.com,instagram.com`.'
type: string
- name: answer
in: query
required: false
description: '`true` to also write a paragraph from the results (+1 credit).'
schema:
description: '`true` to also write a paragraph from the results (+1 credit).'
type: string
enum:
- 'true'
- 'false'
- 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: Which country's results, ISO 3166-1 alpha-2; `us` unless you say.
schema:
description: Which country's results, ISO 3166-1 alpha-2; `us` unless you say.
type: string
pattern: ^[A-Za-z]{2}$
security:
- bearerAuth: []
responses:
'200':
description: Search the web
content:
application/json:
schema:
type: object
required:
- data
properties:
data: {}
example:
data:
query: quanto custa abrir um MEI
topic: general
engine: brave
pool: residential
bytes: 311402
cached: false
answer: null
results:
- position: 1
url: https://www.gov.br/empresas-e-negocios/pt-br/empreendedor
title: Portal do Empreendedor | MEI
snippet: A formalização como MEI é gratuita. O empreendedor paga apenas o DAS mensal…
publishedAt: null
image: null
'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: '4 credits per 10 results, so a `limit` above 10 costs two rows, plus 1 for `answer: true`. A search every front refused, and anything we broke, cost nothing; a search that ran and found nothing is charged, because the index answered. A repeat of the same search within a few minutes is free and says so with `cached: true`.'
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 (115 KB total) ---
# Full source: https://artifacts.apis.io/scrapa-app/openapi/scrapa-app-search-api-openapi.yml