scrapa.app
v1.0.1Read web pages as markdown, search the web, list a site's URLs and run a real Chrome.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scrape Scrape a page
Read one web page and hand it back as markdown, HTML, plain text, its links, a screenshot, a PDF, or the fields you ask for, read off the page by a model. `engine: "auto"` (the default) makes a plain HTTP request first and re-reads the page in a real Chromium when the body turns out to be a JavaScript shell, so you pay for a browser only when the page needed one. To send a search form or a JSON query, use `method: "POST"` with a `body`; to download a file exactly as the site sent it, ask for `formats: ["raw"]`. A link to a PDF or a Word file is read into text too, headings and paragraphs inclu…
quote_scrape Price a scrape
What the same request would cost, without making it. Free, and refused by the same guards a real call meets, so a quote is never a price for a call that would be denied. `maxCost` is the ceiling: for `auto` it is the browser's price, which is only charged if the page turns out to need one. With `maxAge`, the quote is the price of reading the page now; if a copy is there, the page costs nothing and only `extract` is charged.
map_site List a site's URLs
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`.
| Parameter | Type | Description |
|---|---|---|
url * | string | The site to map, as any http(s) URL on it. Private and loopback hosts are refused. |
includeSubdomains | boolean | 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.`. |
limit | integer | How many URLs to hand back at most, 1 to 30,000. The price is the same whatever you ask for. |
proxy | object | Where the map's requests leave from. Every file it reads goes through the same exit. |
search | string | Only URLs that contain this text, upper or lower case alike: `blog` keeps `/blog/` and `/Blog-post`. |
sitemap | string | 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. |
quote_map Price a map
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | The site to map, as any http(s) URL on it. Private and loopback hosts are refused. |
includeSubdomains | boolean | 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.`. |
limit | integer | How many URLs to hand back at most, 1 to 30,000. The price is the same whatever you ask for. |
proxy | object | Where the map's requests leave from. Every file it reads goes through the same exit. |
search | string | Only URLs that contain this text, upper or lower case alike: `blog` keeps `/blog/` and `/Blog-post`. |
sitemap | string | 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. |
search Search the web
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`.
| Parameter | Type | Description |
|---|---|---|
query * | string | What to search for, in plain words: the same thing you would type. |
answer | boolean | 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. |
includeDomains | array | 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. Wi… |
limit | integer | 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` filt… |
proxy | object | Where the search leaves from. `country` picks the exit AND the market the front answers for. `br` gets Brazilian results in Portuguese. |
timeRange | string | Only pages from the last day, week, month or year. Absent is any time. |
topic | string | 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 p… |
create_batch Start a batch
Hand us a list of URLs and stop holding a connection open. Every one is read with the options you pass here. It uses the same engines, the same exit and the same meter as a single `scrape`, and a page the site blocked costs nothing here too, unless your own `browser.actions` script ran in the page first. Nothing is charged when you submit: a batch spends as it goes, so use `quote` for the ceiling. Poll `get` for progress, or pass a `webhook` and we will call you instead. Results are readable for 24 hours from when you submit. A batch still running then stops, and the URLs it has not read are `…
quote_batch Price a batch
What that submission would cost at most, without submitting it. `maxCost` prices every URL at the ceiling one page could reach. The real bill comes in lower by every page that never needed a browser and by every outcome that costs nothing: a page the site blocked or our policy refused (unless your own `browser.actions` script ran in it first) and anything we broke. Bandwidth is on top and cannot be quoted, because it depends on what the pages weigh.
get_batch Read one batch
Where a batch got to: whether it is still running, how many of its URLs now have a verdict, how many of those the web or our policy refused, how many were never attempted, and what it has spent so far. Ask for `items` to get the results themselves: the pages and the refusals, in the order you submitted them, each one the same answer a single `scrape` would have given. You get up to 200 at a time, from wherever `from` says. A batch whose results have expired still answers with everything else, because somebody who paid for those pages must never be told the batch does not exist.
| Parameter | Type | Description |
|---|---|---|
id * | string | The batch's id, as create returned it. |
from | integer | Start the results at this position. Up to 200 come back at a time, so read the next page with `from` plus however many you just got, and stop when you reach `total`. |
items | boolean | Also return the results themselves, in the order you submitted them. Off by default: most polls only want to know whether the batch has finished. |
list_batches List your batches
Your most recent batches, newest first, with what each one is doing, how far it has got and what it has cost. Results are not included; ask `get` for one batch's pages.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, newest first. Up to 100; 20 by default. |
cancel_batch Cancel a batch
Stop a batch. A URL already being read finishes and is charged, because it is a page we are already paying for. Every URL not yet started becomes `skipped`, which costs nothing and is not a verdict about the URL: submit those positions again whenever you like. Safe to repeat; a batch that has already ended answers with how it ended.
| Parameter | Type | Description |
|---|---|---|
id * | string | The batch's id, as create returned it. |
create_session Start a browser session
Hold a real Chromium for as long as you asked for and answer with a CDP URL your own tools connect to: `chromium.connectOverCDP(connectUrl)` in Playwright, `puppeteer.connect({ browserWSEndpoint: connectUrl })` in Puppeteer. The browser is yours alone for the whole window, every byte it pulls leaves through the exit you picked, and the socket survives our deploys. The URL carries the session's token and is shown once. It cannot be rebuilt from the id.
| Parameter | Type | Description |
|---|---|---|
proxy | object | Where the session leaves from, fixed for its whole life. Defaults to the managed residential pool. |
timeoutMin | integer | How long to hold the browser, in minutes. Credits for the whole window are reserved when the session starts and the unused minutes are handed back when it closes, so asking for longer than you need co… |
quote_session Price a session
What holding a browser for that long would cost, without holding one. `maxCost` is the whole window at the per-minute rate. It is a ceiling, not a bill, because the minutes you do not use come back when the session closes.
| Parameter | Type | Description |
|---|---|---|
proxy | object | Where the session leaves from, fixed for its whole life. Defaults to the managed residential pool. |
timeoutMin | integer | How long to hold the browser, in minutes. Credits for the whole window are reserved when the session starts and the unused minutes are handed back when it closes, so asking for longer than you need co… |
get_session Read one session
Where a session got to: whether it is still live, when it expires, what it has pulled and, once it has ended, what it finally cost. The connect URL is not repeated here; it is shown once, when the session starts.
| Parameter | Type | Description |
|---|---|---|
id * | string | The session's id, as create returned it. |
list_sessions List your sessions
Your most recent sessions, newest first: the live ones and the ones that have ended, with what each of them cost.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, newest first. Up to 100; 20 by default. |
close_session Close a session
Stop the browser and settle the bill: the minutes you held it are kept and the rest of the reservation goes back. Safe to repeat: a session that has already ended answers with how it ended.
| Parameter | Type | Description |
|---|---|---|
id * | string | The session's id, as create returned it. |
get_usage Usage this month
Credits spent this billing month against the plan's grant, the purchased balance on top of it, managed-proxy megabytes against the plan's ceiling, when the month rolls over, and the same split per API key. Free, and worth reading before a bulk run.