# scrapa.app > Send a URL. Get the page. Even when your own code can't. Some pages come back empty because JavaScript builds them in the > browser; others see a server address and turn it away. One call hands the page back as > markdown, HTML, text, links, a screenshot or a PDF, through a plain HTTP request or a > real Chrome, whichever the page turns out to need. Every request leaves through a > residential proxy or your own. A managed browser session hands back a raw CDP URL > instead, so your own Playwright or Puppeteer drives a real Chrome of ours for as long > as you asked for. 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. - Base URL: `https://api.scrapa.app/v1` - Auth: `Authorization: Bearer sc_…` (also `x-api-key`), from https://console.scrapa.app - TypeScript/JavaScript: `npm i @scrapa/sdk` - AI plugin: https://github.com/owe-br/plugins/tree/main/plugins/scrapa - MCP (Streamable HTTP): `https://api.scrapa.app/mcp`. Sign in with OAuth, or send an existing API key. - Device sign-in for agents: POST `https://api.scrapa.app/oauth/device_authorization` with client_id=scrapa-agent. ## Operations - [Scrape a page](https://docs.scrapa.app/reference/scrape.md): 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 included. To click a cookie banner, type into a search box or run a script before the page is read, send `browser.actions`. Every request leaves through a residential proxy, or through your own with `proxy: { pool: "custom", server }`. The answer says which engine replied, where the page finally was and what it cost. - [Price a scrape](https://docs.scrapa.app/reference/quote_scrape.md): 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. - [List a site's URLs](https://docs.scrapa.app/reference/map_site.md): 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`. - [Price a map](https://docs.scrapa.app/reference/quote_map.md): 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. - [Search the web](https://docs.scrapa.app/reference/search.md): 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`. - [Start a batch](https://docs.scrapa.app/reference/create_batch.md): 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 `skipped`, free. - [Price a batch](https://docs.scrapa.app/reference/quote_batch.md): 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. - [List your batches](https://docs.scrapa.app/reference/list_batches.md): 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. - [Read one batch](https://docs.scrapa.app/reference/get_batch.md): 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. - [Cancel a batch](https://docs.scrapa.app/reference/cancel_batch.md): 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. - [Start a browser session](https://docs.scrapa.app/reference/create_session.md): 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. - [Price a session](https://docs.scrapa.app/reference/quote_session.md): 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. - [List your sessions](https://docs.scrapa.app/reference/list_sessions.md): Your most recent sessions, newest first: the live ones and the ones that have ended, with what each of them cost. - [Read one session](https://docs.scrapa.app/reference/get_session.md): 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. - [Close a session](https://docs.scrapa.app/reference/close_session.md): 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. - [Usage this month](https://docs.scrapa.app/reference/get_usage.md): 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. ## Guides - [Your first page](https://docs.scrapa.app/): One key, one call. Every request answers with what it cost and what is left, and a page you did not get costs you nothing, unless your own script ran in it first: then only our own failures stay free. - [Engines](https://docs.scrapa.app/guides/engines): Two ways to read a page, and one that chooses for you. What you pay follows what the page actually needed. - [Sessions](https://docs.scrapa.app/guides/sessions): A real Chrome with a window of its own, held for as long as you asked for, driven by your own Playwright or Puppeteer over a CDP socket. We hand back a URL, not another client to learn. - [Search](https://docs.scrapa.app/guides/search): Ask the web a question and get ranked results back. They are read live off a real search engine through a residential exit, never a reseller's cache you are not allowed to redistribute. - [Proxies](https://docs.scrapa.app/guides/proxies): Every request leaves through a proxy: ours or yours. Never from our own address, which is the only reason this works at all. - [Credits](https://docs.scrapa.app/guides/credits): Nine rows, published. Every answer states its price, and three of the four ways a request can end are free, unless your own script ran in the page first: then only our own failures stay free. - [Errors](https://docs.scrapa.app/guides/errors): Every refusal names who said no, because that decides what you do next. Three of them cost nothing, unless your own script ran in the page first: then only our own failures stay free. - [SDK](https://docs.scrapa.app/guides/sdk): One typed method per endpoint, generated from the same definitions this reference is. Node, Bun, Deno, workers, the browser: anywhere fetch runs. - [MCP](https://docs.scrapa.app/mcp): Give your AI app scrapa's tools to scrape pages, search the web and run browser sessions. Sign in with the account whose credits it should use. ## Optional - [OpenAPI](https://api.scrapa.app/openapi.json): the same operations, machine-readable - [Everything on one page](https://docs.scrapa.app/llms-full.txt): the operations, credits and refusals inlined