# Sous Scrape: full reference for LLMs Base URL: https://sousproxy.com/scrape. Auth: header `X-API-Key: ` (or `Authorization: Bearer `). JSON in, JSON out (screenshot returns an image unless `json: true`). # Sous Scrape Web scraping API for agents. Base URL: `https://sousproxy.com/scrape`. Full reference: `https://sousproxy.com/scrape/llms-full.txt`. ## Setup The API key lives in the environment variable `SOUS_SCRAPE_API_KEY` (starts with `ss_`). If it is empty, ask the user for a key (free at `https://sousproxy.com/scrape/dashboard`, 1,000 free credits every month) and tell them to set it: - macOS / Linux: `export SOUS_SCRAPE_API_KEY=ss_...` (add to `~/.zshrc` or `~/.bashrc`) - Windows PowerShell: `setx SOUS_SCRAPE_API_KEY ss_...` (then reopen the terminal) Never write the key into project files, commits or chat logs. If MCP tools named like `mcp__sous-scrape__scrape` are available, use them instead of curl: they take the same parameters as below. ## Pick the cheapest call | Need | Call | Credits | |---|---|---| | One page as text | `POST /v1/scrape` | 1 (5 if it needs a browser) | | Specific fields from a page | `POST /v1/extract` with `schema` (CSS) or `prompt` (AI) | 1 / 15-60 | | Which pages a site has | `POST /v1/map` | 2 | | Many pages of a site | `map` first, then `POST /v1/batch` with the URLs you need | 1 per page | | Whole section of a site | `POST /v1/crawl` (background job) | 1 per page | | No URL yet | `POST /v1/search` | 3 | | How a page looks | `POST /v1/screenshot` | 5 | | Where a link redirects per country | `POST /v1/linkcheck` | 2 per country | | Domain age, SSL, status | `POST /v1/domains` | 2 per domain | | Click, type, multi-step task | `POST /v1/agent` | 25-100 per step | | Credits left | `GET /v1/account` | 0 | Rules of thumb: - Start with `scrape`. Default `render=auto` opens a real browser only when the page needs it. - Use `map` before `crawl` and fetch only the pages you need. - Add `"max_age": 86400` when the page may be cached: cache hits cost 0. - Add `"country": "de"` (any 2-letter code) to see the site from that country. - Blocked or failed requests are refunded automatically. On `402` stop and tell the user to top up. - Do not use the agent for logins, payments or anything the site's rules forbid. ## Recipes Scrape one page as Markdown: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/scrape \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com","formats":["markdown"]}' ``` Response: `{"status":200,"final_url":"...","content":"# Example...","credits":1}`. Formats: `markdown`, `html`, `text`, `links`, `metadata`, `screenshot` (base64 PNG), `json` (AI, needs `prompt` or `json_schema`). With one format the result is in `content`; with several, also in `formats.`. Structured data with AI: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/scrape \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com/pricing","formats":["json"],"prompt":"all plans with price and limits","json_schema":{"plans":[{"name":"string","price":"number"}]}}' ``` Exact fields with CSS selectors (cheap, no AI): ```bash curl -s -X POST https://sousproxy.com/scrape/v1/extract \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com/item/1","schema":{"title":"h1","price":".price"}}' ``` All URLs of a site, filtered: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/map \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com","search":"/blog/","limit":500}' ``` Many URLs at once (background), then poll: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/batch \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"urls":["https://example.com/a","https://example.com/b"],"formats":["markdown"]}' # -> {"id":"..."}; then: curl -s https://sousproxy.com/scrape/v1/batch/ID -H "X-API-Key: $SOUS_SCRAPE_API_KEY" ``` `/v1/crawl` works the same way (`url`, `max_pages`, `max_depth`, `include`, `exclude`), status at `/v1/crawl/ID`. Poll every 3-5 seconds until `status` is not `running`. Web search with page contents: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/search \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"query":"best residential proxy pricing","limit":5,"scrape_results":3}' ``` Screenshot to a file: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/screenshot \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com","full_page":true}' -o shot.png ``` Redirect chain from several countries: ```bash curl -s -X POST https://sousproxy.com/scrape/v1/linkcheck \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://bit.ly/xxxx","countries":["us","de","br"],"mobile":true}' ``` Browser agent (only when interaction is really needed): ```bash curl -s -X POST https://sousproxy.com/scrape/v1/agent \ -H "X-API-Key: $SOUS_SCRAPE_API_KEY" -H "Content-Type: application/json" \ -d '{"task":"Find the cheapest plan and what it includes","url":"https://example.com","max_steps":8}' ``` On Windows PowerShell use `curl.exe` and put the JSON in a file (`-d "@body.json"`) to avoid quoting problems, or call the API from Python (`requests.post(url, json=..., headers={"X-API-Key": key})`). ## Errors `400` bad parameters or a private/LAN address, `401` bad key, `402` no credits, `429` more than 10 parallel requests, `502` the site did not answer (refunded), `503` browser or AI temporarily off. ## All endpoints ### POST /v1/scrape Scrape one page. - `url` string (required) - `proxy` string (auto | cheap | vip | mobile | none): auto = start on the base pool, switch to a stronger one if the site blocks - `country` string: 2-letter exit country: us, de, gb, ru ... - `session_id` string: same value = same exit IP (sticky session) - `render` string (auto | true | false): auto = plain request first, real browser only if the page needs JavaScript or is blocked - `mobile` boolean - `formats` string[] - `format` string - `main_only` boolean - `wait_for` string - `wait_ms` integer - `actions` object[] - `headers` object - `cookies` object - `method` string - `body` string - `max_age` integer: serve from cache if not older than N seconds (free) - `change_tracking` boolean: compare with your previous scrape of this URL - `prompt` string: for format json: what to extract - `json_schema` object: for format json: shape of the result - `screenshot` boolean - `full_page` boolean - `timeout` integer - `retries` integer ### POST /v1/batch Scrape many URLs in the background. - `urls` string[] (required) - `formats` string[] - `webhook` string - `concurrency` integer ### GET /v1/batch/{id} Batch status and results. ### DELETE /v1/batch/{id} Cancel a batch. ### POST /v1/extract Structured data: CSS schema, automatic or AI. - `url` string - `proxy` string (auto | cheap | vip | mobile | none): auto = start on the base pool, switch to a stronger one if the site blocks - `country` string: 2-letter exit country: us, de, gb, ru ... - `session_id` string: same value = same exit IP (sticky session) - `render` string (auto | true | false): auto = plain request first, real browser only if the page needs JavaScript or is blocked - `mobile` boolean - `html` string - `schema` object - `prompt` string - `json_schema` object ### POST /v1/screenshot Screenshot of a page or element. - `url` string (required) - `proxy` string (auto | cheap | vip | mobile | none): auto = start on the base pool, switch to a stronger one if the site blocks - `country` string: 2-letter exit country: us, de, gb, ru ... - `session_id` string: same value = same exit IP (sticky session) - `render` string (auto | true | false): auto = plain request first, real browser only if the page needs JavaScript or is blocked - `mobile` boolean - `full_page` boolean - `selector` string - `width` integer - `height` integer - `format` string - `json` boolean ### POST /v1/map All URLs of a site in seconds. - `url` string (required) - `proxy` string (auto | cheap | vip | mobile | none): auto = start on the base pool, switch to a stronger one if the site blocks - `country` string: 2-letter exit country: us, de, gb, ru ... - `session_id` string: same value = same exit IP (sticky session) - `render` string (auto | true | false): auto = plain request first, real browser only if the page needs JavaScript or is blocked - `mobile` boolean - `search` string - `limit` integer - `subdomains` boolean - `sitemap` boolean ### POST /v1/crawl Crawl a site in the background. - `url` string (required) - `proxy` string (auto | cheap | vip | mobile | none): auto = start on the base pool, switch to a stronger one if the site blocks - `country` string: 2-letter exit country: us, de, gb, ru ... - `session_id` string: same value = same exit IP (sticky session) - `render` string (auto | true | false): auto = plain request first, real browser only if the page needs JavaScript or is blocked - `mobile` boolean - `max_pages` integer - `max_depth` integer - `include` string[] - `exclude` string[] - `format` string - `sitemap` boolean - `respect_robots` boolean - `subdomains` boolean - `webhook` string ### GET /v1/crawl/{id} Crawl status and pages (?offset=&limit=). ### DELETE /v1/crawl/{id} Cancel a crawl. ### POST /v1/search Web search, optionally with page contents. - `query` string (required) - `limit` integer - `country` string - `lang` string - `scrape_results` integer - `formats` string[] ### POST /v1/linkcheck Redirect chain and final page of a link from each country. - `url` string (required) - `countries` string[] - `mobile` boolean - `screenshot` boolean - `proxy` string ### GET /v1/monitors Monitored links, plan and recent events. ### POST /v1/monitors Add a link to monitoring. - `url` string (required) - `name` string - `country` string - `interval_min` integer - `mobile` boolean - `keyword` string - `track_content` boolean - `webhook` string ### POST /v1/monitors/plan Buy a monitoring plan with credits or switch auto-renew. - `plan` string (start | pro) - `auto_renew` boolean ### GET /v1/monitors/{id} One monitor with its events. ### POST /v1/monitors/{id} Pause or resume. - `active` boolean ### DELETE /v1/monitors/{id} Remove a monitor. ### POST /v1/monitors/{id}/check Check now. ### POST /v1/domains Bulk domain check: age, expiry, SSL, HTTP. - `domains` string[] (required) ### POST /v1/analyze AI breakdown of a landing page. - `url` string (required) - `country` string - `lang` string - `translate_to` string ### POST /v1/agent AI agent: a task in plain words, done in a real browser. - `task` string (required) - `url` string - `max_steps` integer - `proxy` string - `country` string - `output_schema` object ### GET /v1/jobs Your recent crawl and batch jobs. ### GET /v1/account Credits, prices and usage. ## Prices in credits 1 credit = one plain page. $0.15 per 1,000 credits, paid from the sousproxy.com account balance; 1,000 free credits every month. - `scrape`: 1 - `scrape_render`: 5 - `scrape_vip`: 3 - `extract`: 1 - `extract_ai`: 15 - `crawl_page`: 1 - `screenshot`: 5 - `browser_minute`: 10 - `agent_step`: 25 - `map`: 2 - `search`: 3 - `cache_hit`: 0 - `linkcheck`: 2 - `linkcheck_shot`: 5 - `domain`: 2 ## MCP server Endpoint `https://sousproxy.com/scrape/mcp`, Streamable HTTP, header `Authorization: Bearer `. Claude Code: `claude mcp add --transport http --scope user sous-scrape https://sousproxy.com/scrape/mcp --header "Authorization: Bearer "` Codex: `codex mcp add sous-scrape --url https://sousproxy.com/scrape/mcp --bearer-token-env-var SOUS_SCRAPE_API_KEY` Cursor (`~/.cursor/mcp.json`): `{"mcpServers": {"sous-scrape": {"url": "https://sousproxy.com/scrape/mcp", "headers": {"Authorization": "Bearer "}}}}` More clients: https://sousproxy.com/scrape/en/ai Tools: - `scrape`: Fetch a web page through rotating residential proxies and return it as markdown (default), text or html. Set render=true for JavaScript-heavy pages. - `extract`: Extract structured data from a page. Give `schema` as {field: css selector} for exact fields, `prompt` for AI extraction, or neither for automatic extraction (title, meta, links, tables, JSON-LD, contacts). - `screenshot`: Take a screenshot of a web page. - `crawl`: Crawl a website from a start URL and return the pages as markdown (up to 25 pages per call). - `map`: List the URLs of a website fast (sitemaps + links), without downloading every page. Use it before crawl/scrape to pick the pages you need. - `search`: Search the web and return result titles, URLs and snippets. Set scrape_results to also fetch the top N pages as markdown. - `browser_agent`: Give a task in plain words; an AI agent opens a real browser, clicks and types until the task is done, and returns the answer. - `check_link`: Follow a link's full redirect chain (HTTP, meta refresh, JavaScript) as seen from one or more exit countries and return every hop and the final page. Useful for ad links, affiliate links and geo-dependent redirects. - `check_domains`: Bulk domain check (up to 200): registration age and expiry (RDAP), SSL certificate, HTTP status and redirect. - `analyze_landing`: AI breakdown of a landing page: offer, price, target audience, hooks, call to action, trust signals and weak spots. - `account`: Credits left, price of each operation in credits and usage for 30 days. Free; call it before a large crawl or batch.