# Crawl4AI Cloud API > Crawl4AI turns any web page into clean, LLM-ready data. One key: `/scrape` a page to Markdown, > `/extract` it to JSON, `/search` the web, `/serp` for Google's results page as data, `/answer` a > question with sources, and batches of many URLs — served from three regions (EU, Singapore, US) > at `https://api.crawl4ai.com`, routed to the nearest one. Free: 10 a minute, 2 at a time, 1,000 > credits every month. Plans from $10 a month (Starter: 10,000 credits, 120 a minute, 10 at a time), then > Builder $99 and Scale $499; extra credits on a plan never expire. The live table: `GET /v1/prices`. > Built on the open-source crawl4ai (https://github.com/unclecode/crawl4ai). Full docs: https://api.crawl4ai.com/docs Migrating from the legacy API (the v1 API with sessions, scan, site, enrich, context; shut down on 2026-11-06): https://crawl4ai.com/migrate.txt ## Set up (for coding agents) When the user sends "set up crawl4ai - https://crawl4ai.com/llms.txt with key: sk_live_...", add the Crawl4AI MCP server to YOUR OWN config with that key, then call the free `balance` tool to check it works. Put the key in the user-level config, never in a file inside the user's repository. This file shows only what is open to everyone. **With your key it shows everything open to your account:** `curl -H "Authorization: Bearer " https://crawl4ai.com/llms.txt`. The server is `https://api.crawl4ai.com/mcp` (streamable HTTP), the header is `Authorization: Bearer `. - Claude Code: `claude mcp add --transport http --scope user crawl4ai https://api.crawl4ai.com/mcp --header "Authorization: Bearer "` - Codex, `~/.codex/config.toml`: `[mcp_servers.crawl4ai]` · `url = "https://api.crawl4ai.com/mcp"` · `http_headers = { Authorization = "Bearer " }` - Cursor, `~/.cursor/mcp.json` (Windsurf: `~/.codeium/windsurf/mcp_config.json`), in `mcpServers`: `"crawl4ai": { "url": "https://api.crawl4ai.com/mcp", "headers": { "Authorization": "Bearer " } }` - Gemini CLI, `~/.gemini/settings.json`, in `mcpServers`: `"crawl4ai": { "httpUrl": "https://api.crawl4ai.com/mcp", "headers": { "Authorization": "Bearer " } }` - OpenCode, `opencode.json`: `"mcp": { "crawl4ai": { "type": "remote", "url": "https://api.crawl4ai.com/mcp", "headers": { "Authorization": "Bearer " } } }` - OpenClaw, `~/.openclaw/openclaw.json`, in `mcp.servers`: `crawl4ai: { url: "https://api.crawl4ai.com/mcp", transport: "streamable-http", headers: { Authorization: "Bearer " } }` - Any other MCP client: the URL and header above. - No MCP: set `CRAWL4AI_KEY=` in the user's shell profile and call the HTTP API below with the same header. Most agents load a new MCP server only after a restart: tell the user to restart the agent if the tools do not show. The tools are listed in the MCP section below. ## Getting started - Base URL: `https://api.crawl4ai.com` - Get a free key: visit https://api.crawl4ai.com/ and click "Get a key" (a 7-day pass key is issued instantly; verify your email for a permanent key and the monthly free credit (verifying revokes the pass key and issues a new one); the live grants: `GET /v1/prices` -> `credit`). Manage keys at https://api.crawl4ai.com/dashboard/ - Authenticate every request: `Authorization: Bearer sk_live_...` (the header `x-api-key: sk_live_...` also works). - Requests and responses are JSON unless noted. Errors return `{"error":"..."}` with an HTTP status. Per-plan rate limits return `429` with `X-RateLimit-*` headers and a `message` you can show as it is (on the free plan: "You reached the free plan's limit: 10 requests a minute. You still have 1,774 credits; the free plan only limits the pace. A monthly plan lifts it: Starter, $10 a month: 10,000 credits a month, 120 requests a minute, 10 at a time."; the `actions` block carries `subscribe`, the one-click link to start the plan). Every request costs credits (1 credit = $0.001; a result already in our archive costs half; the effort a page needed sets the price; the live price table, the grants, the plans (`plans[]`: price, credits a month, speed, `extra_usd_per_1k`) and each plan's limits: `GET /v1/prices`; soft launch: the prices and the free credit can change, extra credits bought never expire). The response carries `x-c4-cost`, `x-c4-balance` and `x-c4-allowance-left` (credits left under this month's plan allowance) in credits; the body's `usage.quota.remaining_before.credits_month` carries the allowance too. At zero credit the gate answers `402 {"error":"no_credit"}`; with the month's plan allowance used `402 {"error":"plan_cap"}` (it resets on the 1st; a bigger plan lifts it); over the account's own monthly cap `402 {"error":"spend_cap"}`. `GET /v1/billing/balance` trails the per-call `x-c4-balance` header by about a minute (receipts reach the ledger in batches); the header is the exact running figure. `POST /v1/estimate {endpoint,url}` prices a call before it runs; `GET /v1/prices` is the public table (soft launch: the prices may change; credit already bought keeps its value); `GET /v1/billing/balance`, `POST /v1/billing/subscribe?plan=starter` (a Stripe page made for this account, to start a plan) and, on a plan, `POST /v1/billing/topup?amount=` (extra credits at the plan's rate, charged to the saved card: only after the user says yes to the amount) work with the API key; an account without a plan gets `402 {"error":"plan_needed"}` from the top-up. Each plan has a monthly credit allowance that covers the plan's credits and any extra credits (calendar month; `limits..allowance_per_month` in GET /v1/prices). Over it the gate answers `402 {"error":"plan_cap"}` with a `message` you can show as it is; a bigger plan lifts it. ## POST /scrape — page to Markdown/HTML Fetch one URL and return clean content. The service auto-picks the cheapest engine that works (cache → HTTP → browser) per domain; you can ask for a browser with `engine`. Body: - `url` (string, required) — a public http/https URL. - `format` (string) — `both` (default) | `md` | `html`. - `proxy` (string) — `none` (default) | `isp` | `residential`. Exit network, only for a site that blocked a plain request. It costs more: `isp` 2x and `residential` 4x the page price. Try without it first. - `country` (string) — two-letter country the page is fetched from, e.g. `us`, `gb`; with or without `proxy`. A country with no ISP addresses of ours is fetched through residential addresses and costs 4x. - `parse` (bool | object) — also return page structure. `true` = all, or pick: `{"links":true,"media":true,"metadata":true,"tables":true}`. - `engine` (string) — `auto` (default) | `browser-light` | `browser`. `browser-light` starts at our light browser, `browser` at a real Chrome. Always a fresh fetch, slower, and priced at the engine that serves it (a real Chrome costs more than a plain fetch). Use it only when the `auto` result misses content a browser shows. ``` curl https://api.crawl4ai.com/scrape \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{"url":"https://example.com","format":"both","proxy":"isp","country":"us", "parse":{"links":true,"media":true,"metadata":true,"tables":true}}' ``` Returns: `{"ok":true,"markdown":"...","html":"...","content_hash":"...","ms":312}` Timing: most pages return in 1-2 s. A page that needs a real browser usually takes 10-60 s, the slowest up to 90 s. Set your HTTP client timeout to 120 s and wait for the answer: a call you cancel early is not charged, but the page is lost. A 403 "blocked" means every step got the site's block page; a 403 "login-wall" means the page asks for a login or a payment, which no browser of ours can pass; a 502 "no-answer" means the site did not answer, or gave an empty page on every road we tried (`no-answer:empty-render`): a retry rarely helps; a 502 "origin-error:" means the site itself answered an error (its own code is in the reason and in `origin_status`; a 4xx the site gives, like a 404, reaches you as the site gave it); a 503 "busy" means no browser was free for a moment: send the same request again in a few seconds. A 500 is our own fault. None of these is charged. For many URLs use `/scrape/batch` (up to 50, streamed) or `/scrape/jobs` (up to 10,000, in the background, nothing waits on a slow page). Every answer also says how the page was fetched: `engine` (`cache`, `fetch`, `browser-light`, `browser` or `browser-heavy`), `exit` (`isp:` or `residential:` when a proxy carried it) and `ladder`, the steps tried in order, each with its `step` (the same words, plus `fetch-proxy`), its `outcome` and its `ms`. ## GET /search — web search Browser-free, multi-engine, results ranked and cleaned. Query params: - `q` (string, required) — the query (max 512 chars). - `rich` (0 | 1, default 0) — set `1` to also return a `rich` block: follow-up questions, related queries, an entity card, videos, news and more. Slightly slower; best for question-style queries. (For a direct answer, use `/answer`.) ``` curl "https://api.crawl4ai.com/search?q=rust+web+crawler" \ -H "Authorization: Bearer sk_live_..." ``` Returns: a ranked list of results (title, url, snippet, source). `source` is `gg` or `gs` for a live web result, `index` for a result from the Crawl4AI index: added after the live results when the web returns fewer than 10, or served alone when the live search fails. Same price either way. With `rich=1` the response also carries a `rich` object (every field optional, present only when that block is on the page): - `follow_up_questions[]`, `related_queries[]` — strings. - `entity` — `{ title, subtitle?, description?, facts[] }` for a named thing (company, person…). - `videos[]`, `news[]`, `discussions[]` — `{ title, url }`. - `did_you_mean` — the corrected spelling, when the query was auto-corrected. (For a direct answer to a question, use `/answer` below.) ``` curl "https://api.crawl4ai.com/search?q=why+is+the+sky+blue&rich=1" \ -H "Authorization: Bearer sk_live_..." ``` ## GET /answer — direct answer (experimental) Ask a question, get a direct answer. Some questions won't have one yet — then `answered` is false (use /search for links). Experimental: the shape may still change. Query params: - `q` (string, required) — the question, or a whole prompt (max 4,000 chars). Ask for the shape you want in the question itself: "answer with JSON only: {...}", "as a markdown table", "quote the source and give its URL". A long prompt is turned into a search query for you. - `schema` (object, optional) — a JSON Schema the answer must match; the answer is then JSON of exactly that shape, e.g. `{"type":"object","properties":{"ceo":{"type":"string"},"source_url":{"type":"string"}},"required":["ceo"]}`. - `deep` (0 | 1, default 1) — `1`: a direct answer from the web's top results, reading a couple of pages when needed. `0`: only an answer that is readily available, else `answered:false`. Response: - `answered` (bool) — did we return a direct answer? - `answer.text` (string) — the answer. When the question asked for JSON, or `schema` was given, this is JSON as a string: parse it. - `answer.source` (string) — `google_ai_overview` or `google_ai_mode`: the web's own direct answer, word for word; `crawl4ai`: our model wrote it from the pages. - `answer.sources[]` — `{ title, url }`, the pages it drew on (present when there are any). - `query` (string) — the search query used for the question. - `experimental` (bool) — true for now. Price: 1 credit for an answer found directly; 3 credits when our model wrote it, whatever its length; nothing when `answered` is false. A 400 (a `schema` that is not a JSON object, or one the model cannot use) costs nothing. ``` curl "https://api.crawl4ai.com/answer?q=why+is+the+sky+blue" \ -H "Authorization: Bearer sk_live_..." curl -G "https://api.crawl4ai.com/answer" \ --data-urlencode 'q=Who owns Knape & Vogt today? Answer with JSON only: {"owner_name": string, "source_url": string, "quote": string}' \ -H "Authorization: Bearer sk_live_..." ``` ## GET /serp — Google's results page as data (beta, added 8 Oct 2026) Google's results page as structured data: true ranks, every block Google showed, and the place the page was localised to. Built for rank tracking and SEO tools. Not the same as /search, which is Crawl4AI's own web search for reading results. Beta: the shape is settled, the service is new; stable in a few weeks. Query params (or the same fields as a JSON body with `POST /serp`): - `q` (string, required) — the query (max 512 chars). - `country` (2 letters, default `us`), `language` (Google code, default `en`). - `location` (string, optional) — a city or region, e.g. `Austin, TX` or `Austin,Texas,United States`; the page is localised there. Unknown → 400 with the 3 closest names. Without it the page is localised to the country. - `num` (any multiple of 10 up to 100, default 10) — results asked; `num/10` Google pages are fetched at once. - `page` (1..30, default 1) — paging over `num`: `num=20&page=2` is results 21-40. - `time` (hour | day | week | month | year, optional) — Google's time filter. - `fresh` (0 | 1, default 0) — skip the cache. Response: - `results[]` — `{ position, position_absolute, title, url, domain, displayed_url, snippet, date?, sitelinks[]? }`. `position` is the rank among organic results across the pages asked; `position_absolute` the rank among every numbered item on the page (blocks count), as a rank tracker expects. - `blocks[]` — the block names in page order, and one field per block that was on the page: `ai_overview {text, sources[]}`, `people_also_ask[]`, `related_searches[]`, `local_pack[]`, `knowledge_panel`, `ads_top[]`, `ads_bottom[]`, `videos[]`, `top_stories[]`, `discussions[]`, `short_videos[]`, `images[]`, `latest_from_site[]`, `perspectives[]`, `apps[]`. - `total_results` (int, optional) — Google's own estimate as printed on the page. - `empty_reason` (only when `results` is empty) — `google_no_results`: Google's own no-results page; `rescue_no_results`: Google refused the query to us and our fallback had nothing (another provider may still have results: fall back on this one only). - `search` — the query, country, language and location the page was fetched for. - `pages { asked, got, missing[] }`, `cached`, `age_s`, `ms`. Price: 1 credit per Google page fetched live; a page from our cache costs half. `num=100` is up to 10 credits. A failed answer (a 5xx) costs nothing. ``` curl "https://api.crawl4ai.com/serp?q=best+crm+software&country=us&location=Austin%2C+TX&num=20" \ -H "Authorization: Bearer sk_live_..." ``` ## POST /extract — structured data from a page (LLM) Read a page (crawled for you) or your own content, and return typed data described by an instruction and/or a JSON schema. Body (give a URL OR inline `content`, plus an `instruction` and/or `schema`): - `url` (string) — the page to read; OR `content` (string) — your own text/markdown/html. - `instruction` (string) — plain-English description of what to pull out. - `schema` (object) — JSON schema each returned record must match (typed, predictable output). - `example` (object) — a sample of the shape you want (structure, not values). ``` curl https://api.crawl4ai.com/extract \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{ "url":"https://news.ycombinator.com", "instruction":"the top stories on the front page", "schema":{"type":"array","items":{"type":"object","properties":{ "title":{"type":"string"},"points":{"type":"integer"},"url":{"type":"string"}}, "required":["title","points"]}} }' ``` Returns: `{"ok":true,"url":"...","data":[ ... ],"usage":{"total_tokens":N},"ms":1200}` ## POST /price — give it websites, get their prices Every plan, tier, billing period, add-on, trial and discount each site's pricing page shows, side by side, read in the countries you name. Each price carries the page text it came from; a price that is not on the page is never returned. Most calls answer in 10 to 60 seconds. Body (a JSON object): - `sites` (list, required) — domains (`"hubspot.com"`: we find its pricing page) or pricing page URLs (read as they are). At most 20 a call. - `country` (string) — read the prices as a visitor in this country sees them, two letters (`"gb"`). - `countries` (list, max 5) — read each site in several countries. Sites × countries is at most 20. ``` curl https://api.crawl4ai.com/price \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{"sites":["hubspot.com","semrush.com","canva.com"],"country":"gb"}' ``` Returns: `{"recipe":"price","rows":[...],"usage":{"units":N},"meta":{...}}`. One row per site and country: `provider`, `domain`, `country`, `status`, `reason`, `url`, `currency`, `items`, `add_ons`, `discounts`, `trial`. - `status`: `ok` · `no_price` (the page shows no price) · `not_found` (no pricing page found) · `blocked` · `timeout`. - `items[]`: `name`, `price` (the one the page shows first), `prices` (every billing period), `features`, `limits`, `rank` (1 = the cheapest paid plan), `free`. - A price: `{amount, currency, period, billing, unit, tax, text, usd, was, quote, change}`. `change` is `{from, currency, at}` when the price moved since we last read it, else `null`. History: `GET /price/history?domain=hubspot.com&country=gb` — every price we have read on that site, newest first (one point each time a value changed), at most 1,000. 1 credit. Price: 5 credits per site that comes back with a price; 1 when the page shows none or has no pricing page; 0 when blocked or timed out. The same call within 24 hours comes from the cache at half. Finding and reading the pages is included. `usage.units` is the credits charged. MCP: the tool `price` takes `sites` and `country` (or `countries`). Errors: `400 bad_input`; `404 not_available` (the service is not open to your account); `402 no_credit`. ## Recipes — ready-made scrapers (USE THESE FIRST for a supported site) **A recipe is a tested scraper for one site and one task: you send its inputs, you get `rows` back, every row with the same named columns.** Before you write a `/scrape` + `/extract` pipeline for Amazon, eBay, Walmart, Zillow, Booking, Airbnb, Yelp, TikTok, Instagram, X, LinkedIn, YouTube, GitHub, Yahoo Finance, Crunchbase, the app stores, ChatGPT and more, **check the list below: a recipe is faster, cheaper and already tested.** **How to use one, in this order:** 1. **Pick it.** Find the name in "Every recipe" below. Never invent a name. 2. **Read it.** `GET /recipes` (free, with your key) is the catalog: per recipe `inputs` (type, `default`, required when there is no default, `max`, an `example`), `output` (the column names) and `output_about` (**one sentence per column: what it holds, its unit, when it is null**). Read the sentences before you use a column. 3. **Run it.** `POST /recipes/{name}` with the inputs as a JSON object: ``` curl https://api.crawl4ai.com/recipes/amazon-reviews \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{"product":"B0BSHF7WHW","limit":20}' ``` Returns: `{"recipe":"amazon-reviews","version":1,"rows":[...],"usage":{"units":2,"lines":[...]},"meta":{"warnings":[...]}}` - `rows`: one object per row, exactly the `output` columns (a missing value is `null`). - Add `"bypass_cache": true` to skip the result cache (a repeat within the recipe's `fresh_for_s` costs only the 1 unit of the call). - **Job recipes** (`run: "job"`, marked `job` below) answer `use_jobs` on the plain call: send the same body to `POST /recipes/{name}/jobs`, then poll `GET /recipes/jobs/{id}` and read `GET /recipes/jobs/{id}/results`. - **Time:** most recipes answer in 1 to 30 s; a recipe that needs a browser or a slower source can take up to 3 minutes. Let the call run (allow 300 s); do not cancel and retry. **Cost:** `usage.units` (1 unit for the call plus 1 per page, the `cost` line in the catalog says how many). Some recipes, when the site's own page fails, read the item from a second data source: each record from it is billed **$3 per 1,000 records** (a `records` line in `usage.lines`). A run that returns nothing is never billed for records. **Errors** (the body says `error` and a sentence): - `400 bad_input`: an input is missing or wrong; the sentence names it. Fix the input. - `404 unknown_recipe`: no such name; pick one from the list. - `502 fetch_failed`: the site and the second source gave nothing for this input (for example an item that no longer exists). Nothing is billed for records. - `503 vendor_off`: the second source is switched off or reached today's limit. Try again later. - `504 timeout`: the run passed its time limit; try again, or ask for fewer rows. - An empty `rows` with a line in `meta.warnings` means the site has no such item; the warning says why. **Session recipes:** some recipes can read a site as the user (their own login cookies as one `Cookie` header line in the `session` input, used for that run only, never stored). Without a session they read the public pages. The catalog marks the input `secret`. `GET /recipes/health` (free, no key) shows each recipe's last check in every region. ### Every recipe 90+ recipes. `?` = optional, `=` = default. - `airbnb-listing` (listing): One Airbnb listing as one row: name, type of place, city and map point, guests, bedrooms, beds and baths, rating and review count, description and photos. - `amazon-product` (product, country="us"): One Amazon product page: ASIN, title, price, star rating, review count, brand, availability, the feature bullets, the main image and the product's link. - `amazon-reviews` (product, limit=10): Customer reviews of one product on amazon.com, one row per review: star rating, title, text, date, country, reviewer, verified purchase, helpful votes, the variant bought. - `amazon-search` (keywords, country="us", page=1, limit=20): The products on an Amazon search results page: ASIN, title, price, star rating, review count, the product's link, image, and whether the listing is sponsored. - `app-store-app` (app, country="us"): One iPhone/iPad app on Apple's App Store as one row: name, developer, price and currency, rating and rating count, categories, age rating, size, the current version with its date and release notes, first release date, minimum iOS, languages, description, icon and screenshots. - `app-store-search` (query, country="us", limit=10): The iPhone/iPad apps Apple's App Store returns for a search, one row per app, in Apple's order: name, developer, price and currency, rating and rating count, categories, age rating, size, the current version with its date and release notes, first release date, minimum iOS, languages, description, icon, screenshots and the store link (the same columns as app-store-app). - `arxiv-search` (query, sort="relevance", category="", limit=20): Papers on arXiv that match a query, from the arXiv API: title, authors, the first 500 characters of the abstract, the paper's page, the PDF, submission time and primary category. - `booking-hotel` (hotel): One hotel on Booking.com as one row: name, stars, address and map point, guest score and review count, the score per category (location, cleanliness, value...), description, top facilities, check-in and check-out times, nearby places and photos. - `chatgpt-answer` (prompt, web_search=true, country=""): What ChatGPT answers a logged-out visitor for one question, as one row: the answer as Markdown and as plain text, the sources it cited and the pages its web search read. - `coingecko-markets` (coins="", currency="usd", limit=20): Coin prices from CoinGecko's public API, one row per coin: rank, name, symbol, price, 24-hour change in percent, 24-hour high and low, market cap, 24-hour volume, all-time high and the update time. - `crunchbase-company` (company): One company's Crunchbase profile as one row: description, website, headquarters, categories, employee range, founders, Crunchbase rank, the funding rounds with their type and lead investors, the investors, acquisitions and similar companies. - `ebay-product` (item): One eBay listing as one row: title, price, how it sells (buy it now, best offer, auction), condition, how many are left and sold, the seller and their feedback, where it ships from, the category path, the item specifics, images and the seller's description. - `etsy-search` (query, page=1, limit=24): The listings on an Etsy search results page: listing id, title, the listing's link without its tracking keys, the price as shown, its currency code, star rating, the shop's review count, shop name, image, whether it ships free, and whether it carries the Bestseller badge. - `facebook-event` (event): One public Facebook event as one row: name, start and end time, the place with its map point, the host, the description, categories, whether it is online or cancelled, and the cover image. - `facebook-marketplace-item` (item): One Facebook Marketplace listing as one row: title, price and the price before a reduction, currency, condition, category, description, location, the seller's id, when it was listed, whether it has sold, and photos. - `facebook-page-posts` (page, limit=10, session?): A public Facebook page's posts as its first load carries them (no paging): one row per post with id, URL, text (first 1000 chars), time posted, reactions, comments, shares, and the page's name and id. - `facebook-post` (post, session?): One public Facebook post as one row: id, URL, author, text, time posted, reactions in total and by type, comments, shares, photos and videos, and where it was posted. - `facebook-profile` (profile, session?): One public Facebook profile or page as one row: name, ids, category, intro, followers, contact lines (website, e-mail, phone, address), rating, place, photos, verified badge. - `github-file` (url, ref="", path="", max_files=50, max_chars=100000): Files of a public GitHub repository, one row per file: one file, or every file under a folder (sub-folders included, in path order). - `github-issues` (repo, state="open", labels="", sort="created", pull_requests=false, limit=30, page=1): The issues of one GitHub repository, one row per issue: number, title, url, state, author, labels, comment count, created and updated times, the first 300 characters of the body. - `github-repo` (repo, releases=5): One GitHub repository's facts, then its latest releases: the first row is the repository (stars, forks, open issues, language, license, topics, homepage, created and last push), the rows after it are releases (tag, published, the first 300 characters of the notes). - `github-trending` (since="daily", limit=25): The repositories trending on GitHub today: name, description, language, stars and stars gained today. - `glassdoor-jobs` (query, remote=false, limit=20): The jobs on the first Glassdoor search page for a query, one row per job: id, title, employer, employer rating, location, the pay range as Glassdoor shows it, days since posting, the job's Glassdoor link and whether Easy Apply is on. - `glassdoor-reviews` (company, page=1, limit=10): The employee reviews on one page of a company's Glassdoor reviews, one row per review: id, title, overall rating, date, the reviewer's job title, whether they still work there, pros, cons, advice to management, whether they recommend the company, location and the review's link. - `google-maps-places` (query, location="", limit=20): The places Google Maps lists for a search, in Google's order, one row per place: name, place id and cid, category, address, map point, rating and review count, phone, website, today's opening hours and the place's Maps link. - `google-maps-reviews` (place, sort="relevant", limit=5): The reviews Google Maps shows for one place, one row per review: stars, text, date, the reviewer, likes, the owner's reply and the review's own link. Up to 8 reviews come from the place's Maps data (about 1 to 3 s); above 8, from Google Search's review list, 10 per page (about 1 s per page, 100 reviews in about 10 to 15 s). `place` is the place's Google Maps link, its place id (ChIJ...) or its cid (the number in a maps?cid= link); `sort` is relevant (Google's order) or newest; `limit` how many reviews (default 5, at most 100). Past the first 5 to 8 reviews an owner reply's date is null. - `google-news` (query, lang="en-US", country="US", limit=25): Headlines for a query from Google News: title, the publishing source, Google's link to the article, time and a short summary. - `google-shopping-product` (product): One product from Google Shopping as one row: title, brand, price and the store offering it, every store's offer, the expected delivery, specifications, description, images and related products. - `hackernews-front` (limit=30): The stories on the Hacker News front page, newest first: title, link, points, author, comment count. - `hackernews-search` (query, tags="story", sort="relevance", limit=20): Stories or comments on Hacker News that match a query, from the public Algolia API: title, link, points, author, comment count, time, and the Hacker News page. - `hn-hiring` (thread="", keyword="Rust", remote=true, summarize=false): The job posts in a Hacker News 'Who is hiring?' thread that name a keyword as a whole word: one row per company with the post's first 300 characters, its link and its time. - `indeed-jobs` (query, location="", start=0, limit=15): Job cards from Indeed's search results: job key, title, company, location, a remote flag, the salary text, job type, posting age, publish date, the job page URL and the first 300 characters of the description. - `instagram-comments` (post, limit=20, sort="popular", session?): The comments of one Instagram post or reel, one row per top-level comment: id, author, whether the author is verified, text, likes, reply count, time posted, the post's URL. - `instagram-hashtag` (tag, limit=20, session?): The posts Instagram shows on a hashtag page (its top and recent sections), newest first, one row per post: code and URL, caption (first 300 characters), likes, comments, time posted, author username, media type (image, video or carousel). - `instagram-posts` (username, limit=12, session?): The latest posts of one Instagram account, newest first, one row per post: code, URL, caption (first 500 characters), likes, comments, time posted, kind (photo, video, reel, carousel), image, video URL, owner. `username` is the account (@name or an instagram.com URL). Without `session`: the 12 latest posts of a public account, about 3 to 8 s (a larger `limit` gives those 12, marked partial). With `session` (your `sessionid` and `csrftoken` cookies from the Crawl4AI Session extension, used once, never stored) it is read as you, up to 48. - `instagram-profile` (username, full_profile=false, session?): One Instagram account as one row: username, full name, biography, followers, following, posts, verified and private, category, external link, picture, user id. - `instagram-reels` (username="", user_id="", limit=12, session?): The latest reels of one Instagram account, newest first, one row per reel: id, code, URL, plays, likes, comments, thumbnail. `username` is the account (@name or an instagram.com URL), or `user_id` its numeric id. Without `session`: the 12 latest reels of a public account by `username`, about 1 to 3 s (a larger `limit` gives those 12, marked partial). With `session` (your `sessionid` and `csrftoken` cookies, used once, never stored) it is read as you, up to 48. - `instagram-search` (query, kind="all", session?): What Instagram's search box shows for a query, one row per hit: kind (user, hashtag, place), name (username, #tag or place name), title (full name, the hashtag's post count text, or the place's address), followers (Instagram's rounded count for a user), media_count (exact, for a hashtag), is_verified, url. - `linkedin-company` (company): One LinkedIn company page as one row: name, tagline, industry, size, headquarters, website, founded, followers, About (first 500 characters) and the link. - `linkedin-company-people` (company, keywords="", limit=25, session?) · job: The people who work at one LinkedIn company, one row per person: name, headline, location, profile link, connection degree. - `linkedin-jobs` (query, location="", posted="", start=0, limit=25): The job cards of LinkedIn's public jobs search, one row per card: title, company, location, when it was posted (LinkedIn's relative text and the date), the job's link, its id, and the salary when the card shows one. - `linkedin-people-search` (first_name, last_name, limit=10): The public LinkedIn members with a given first and last name, one row per member: name, profile URL, headline, location, and the company and school summary LinkedIn shows ("Microsoft, +4 more"). - `linkedin-post-comments` (post, limit=20, session?): The top-level comments on one LinkedIn post, one row per comment: author, profile link, headline, text, time, likes (all reactions), reply count; replies themselves are not listed. - `linkedin-profile` (profile, session?): One LinkedIn profile as one row: name, headline, location, About (500 chars), current company, school, followers, link. - `linkedin-profile-posts` (profile, limit=10, session?): The posts of one LinkedIn member, newest first, one row per post: link, text (500 chars), time, likes (all reactions), comments, reposts, kind (post, repost or article) and one media link. - `medium-posts` (tag="", author="", publication="", limit=10): The latest posts of a Medium tag, author or publication, from Medium's public RSS feed: title, link (the ?source= tracking query removed), author, publication time, categories, and the first 300 characters of the summary. - `meta-ads-advertiser` (page, country="", active_status="", limit=20): The ads one Facebook page runs, as the Meta Ad Library shows them, one row per ad: dates, platforms, text, link, button, media, cards; spend and reach for political ads. - `meta-ads-search` (query, country="ALL", active_status="active", limit=20): The ads the Meta Ad Library (Facebook, Instagram, Messenger) shows for a keyword search, one row per ad: advertiser page, dates, platforms, text, link, button, media, cards, and spend and impressions for political ads. - `open-meteo-forecast` (place="", latitude="", longitude="", days=7): One row per day of the daily forecast from Open-Meteo (no key): date, the weather in words and its WMO code, max and min temperature in °C, precipitation in mm, the highest chance of rain in %, the strongest wind in km/h, sunrise and sunset in the place's local time. - `package-info` (name, ecosystem="npm"): One row of facts about a package from its registry's public JSON: latest version and when it was published, description, license, homepage, repository, downloads (crates.io only) and the number of dependencies. - `play-store-app` (app, hl="en", gl="us"): One Android app on Google Play as one row: name, developer and contacts, rating with counts and the star histogram, installs (the shown band and the exact count), price and currency, ads and in-app purchases, category, content rating, release and update dates, version, minimum Android, description, what's new, icon and screenshots. - `producthunt-product` (slug): One product on Product Hunt as one row: name, tagline, description, website, logo, rating and review count, followers, categories, social links, and its launches with each launch's score, comments and daily rank (the latest one also on its own). - `producthunt-today` (limit=20): The launches on Product Hunt's home page today, in the site's own rank order: name, tagline, the score on the vote button, the first topic and the product link. - `producthunt-today-detailed` (limit=3): Today's Product Hunt launches, then each product page read by the LLM for a category and a one-line summary. - `reddit-post-comments` (url, sort="top", limit=100, session?): Every comment Reddit sends for one post, flattened in reading order: author, score, text, depth in the thread, time, id, the parent's id and the comment's own link. - `reddit-search` (query, subreddit="", sort="relevance", t="all", limit=25, session?): Reddit's search results as posts: title, the post's page, what it links to, score, comment count, author, time, flair and the first 300 characters of the text. Site-wide, or inside one `subreddit`. `sort` relevance, hot, top, new or comments; `t` the window for top; `limit` up to 250. Without `session` it reads Reddit's public search feed (1 to 3 s per 100 posts; the feed has no score, comment count or flair, so those are null). With `session` (your `reddit_session` cookie, used for this run only, never stored) every column is filled. - `reddit-subreddit` (subreddit, sort="hot", t="day", limit=25, session?): The posts of one subreddit: title, the post's page, what it links to, score, comment count, author, time, flair and the first 300 characters of the text. `sort` is hot, new, top or rising; `t` the window for top; `limit` up to 250 (100 posts per page). Without `session` it reads Reddit's public feed of the subreddit (1 to 3 s per 100 posts; the feed has no score, comment count or flair, so those are null). With `session` (your `reddit_session` cookie, from the Crawl4AI Session extension, used for this run only, never stored) every column is filled. - `reddit-user` (user, kind="posts", sort="new", t="all", limit=25, session?): What one Reddit account posted and commented, one row per item: kind (post or comment), title (a comment carries its post's title), the item's page, subreddit, score, comment count (posts only), time and the first 300 characters. - `remoteok-jobs` (tag="", keyword="", limit=25): The remote jobs listed on Remote OK right now, from its public API: title, company, tags, location, salary range, date, the job's Remote OK link, the apply link and the first 300 characters of the description. - `rss-feed` (url, limit=25): The items of any RSS 2.0 or Atom feed: title, link, publication time, author, the first 300 characters of the summary, and the item's id. - `shopify-products` (store, limit=50, page=1): The products a Shopify store lists at its public /products.json, one row per product: title, handle, product URL, vendor, product type, the lowest and the highest variant price as the store's own text (no currency code: the store's default currency), whether any variant is in stock, the variant count, the first image, the tags, and the update time. - `stackoverflow-questions` (tag, sort="activity", limit=20): Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. - `steam-app` (app, country="us"): One game on Steam: name, price and discount in the chosen store region, developers, publishers, release date, genres, feature tags, Metacritic score, the review counts and verdict (Very Positive, …), platforms and the short description. - `substack-posts` (publication, limit=12): The latest posts of a Substack publication, from its public archive: title, subtitle, link, date, author, likes, comment count, whether it is behind the paywall, and word count. - `telegram-channel` (channel, limit=20): The latest messages of a public Telegram channel, from its web preview page: text, time, view count, the message's link and id, newest first. - `threads-profile` (username, limit=10): The posts shown on a Threads profile page, one row per post: id, link, text, likes, replies, reposts and the time posted (ISO 8601, UTC), plus the profile on every row: username, full name, follower count, bio, verified badge and avatar. - `tiktok-comments` (post, limit=50): The top-level comments of one public TikTok post, in TikTok's own order (most relevant first), one row per comment: text, time, likes, reply count, the commenter, whether the creator liked it, its language. - `tiktok-post` (post): One public TikTok video post as one row: its text and hashtags, when it was posted, the author (handle, name, followers, verified), plays, likes, comments, shares and saves, length, cover, sound and subtitles. - `tiktok-profile` (username): One TikTok account's public facts from its profile page: username, display name, bio, exact follower, following, like and video counts, verified badge, avatar, profile URL, user id and secUid. - `tiktok-search` (query, limit=20): TikTok videos for a keyword search, one row per video: its text and hashtags, when it was posted, the author, plays, likes, comments, shares and saves, length, cover and sound. - `tiktok-shop-product` (product): One product on TikTok Shop (US) as one row: title, price and the price before a discount, how many sold, rating and review count, sizes and colors with each variant's price, the store with its rating and followers, the category path, description and images. - `tiktok-user-videos` (account, limit=20): The latest videos of one public TikTok account, newest first, one row per video: its text and hashtags, when it was posted, the author, plays, likes, comments, shares and saves, length, cover and sound. - `trustpilot-reviews` (domain, stars=1, page=1, limit=20): The reviews on a company's Trustpilot page, newest first, one row per review: star rating, title, full text, publish and experience dates, reviewer name, country and review count, verified flag, likes, the review's link and its language. - `walmart-product` (product): One Walmart product as one row: title, brand, price and the price before a discount, stock, rating with its breakdown, seller, category, specifications, images, variants, delivery and returns, and the latest reviews. - `walmart-seller` (seller): One seller on Walmart Marketplace as one row: name, the seller's own description, the business contact Walmart shows (email, phone, address), rating and review count, whether the account is active, and the logo. - `weworkremotely-jobs` (category="programming", keyword="", limit=25): The newest jobs in one We Work Remotely category feed: job title, company, the job's page, region, the feed's category, the job type (Full-Time or Contract; the programming feed carries none), publication time and the first 300 characters of the description. - `wikipedia-article` (title, lang="en"): One Wikipedia article: its title, short description, summary paragraph, page link, thumbnail, the list of top-level sections, when it was last edited and the language. - `wikipedia-search` (query, lang="en", limit=10): Wikipedia articles that match a query, from the public search API: title, article link, a plain-text snippet around the match, word count, size in bytes, when the article was last edited, and the page id. - `x-profile` (username, session?): One X (Twitter) account as one row: username, name, bio, followers, following, tweet count, join date, location, website, verified badge, profile image and user id. - `x-search` (query, limit=20, mode="latest", session?): The posts X (Twitter) returns for a search, one row per post, in X's order: id, link, text, time, author, counts, views, language, media, and whether it is a reply, a quote or a repost. - `x-tweet-replies` (tweet, limit=20, session?): The replies to one X (Twitter) post, one row per reply: id, author, author name, text, time, likes, replies, reposts, views and link, in X's own order (most relevant first). - `x-user-tweets` (username, limit=20, session?): The latest posts of one X (Twitter) account, one row per post: id, link, text, likes, reposts, replies, quotes, time, whether it is a repost, and the author. - `yahoo-company` (symbol): One public company's profile from Yahoo Finance as one row: name, exchange, sector, industry, full-time employees, business summary, head office address, phone, website, the key officers with title, age and pay, Yahoo's five governance risk scores (1 low to 10 high) and the market cap. - `yahoo-quote` (symbols): The latest quote of up to 10 tickers from Yahoo Finance, one row per symbol: name, price, change and change in percent against the previous close, previous close, currency, exchange, day high and low, volume, 52-week high and low, market state and the time of the last trade (UTC). - `yelp-business` (business): One business on Yelp as one row: name, rating and review count, price range, categories, phone, website, address, neighborhoods and map point, whether it has closed for good, its description and photos. - `yelp-reviews` (business): The recommended reviews on a Yelp business's page, in Yelp's order, one row per review: stars, date, text, the reviewer's name, home town and Yelp profile, and the reactions (helpful, thanks, love this, oh no). - `youtube-captions` (video, language="en"): One YouTube video's captions (its transcript) in one language, as one row: the whole text, the timed lines, whether they are auto-generated, and every caption language the video has. - `youtube-channel` (channel): One YouTube channel as one row, from its about page: channel id, handle, title, description, subscribers (YouTube's rounded count as a number, and its shown text), video and view counts, joined date, country, links with their real targets, avatar, banner and the verified badge. - `youtube-channel-videos` (channel, limit=15): The latest videos of a YouTube channel, newest first: title, link, video id, when it was published, views and the thumbnail. - `youtube-comments` (video, limit=50): The top-level comments of one public YouTube video, in YouTube's top-comments order, one row per comment: text, author, likes, reply count, when it was posted, whether the creator hearted or pinned it. - `youtube-search` (query, limit=20): The videos YouTube finds for a query: title, link, video id, channel, views, when it was published (as YouTube says it, "3 years ago"), length and a short description. - `youtube-video` (video): One YouTube video's facts from its page: title, channel and channel id, length, views, likes, publish date, category, keywords and the first 500 characters of the description. - `zillow-property` (home): One home on Zillow as one row: status (for sale, sold, off market), price and Zestimate, address and map point, beds, baths, living area, lot, year built, type, the listing's description, price history, key facts (HOA, heating, parking), photos and the listing's MLS and broker. ## POST /scrape/batch — many URLs, streamed Scrape up to 50 URLs in one call. Results stream back as NDJSON — one JSON line per URL as it finishes. Bills one unit per URL. Takes `urls` plus any /scrape field (applied to every URL). ``` # -N streams each line as it lands curl -N https://api.crawl4ai.com/scrape/batch \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{"urls":["https://a.com","https://b.com"],"format":"md"}' ``` Returns (NDJSON): `{"url":"...","ok":true,"result":{...},"cost":"0.500","effort":1}` per line: the `cost` (credits) and `effort` sit at the TOP LEVEL of each line, next to `result`, not inside it (the batch has no `x-c4-cost` header). The stream ends with one summary line `{"summary":{"cost":"1.250","priced":2,"urls":2}}`: the whole batch's cost. ## POST /scrape/jobs — large async jobs For big lists (up to 10,000 URLs), or when your code cannot hold a connection open for slow pages. Submit once, get a job id, then poll while it drains in the background. Takes `urls` plus any /scrape field. - `POST /scrape/jobs` with `{"urls":[ ... ]}` → `{"job_id":"j_...","status":"pending"}` - `GET /scrape/jobs/{id}` → status + counts (add `?full=1` for per-URL detail); `usage` says what the job cost: `{"units":N,"credited":R,"net":N-R,"unit_cost":"0.500","cost":"…"}`. Every URL is charged the job's flat `unit_cost`; URLs that never got an answer are refunded at the end (`credited`). - `GET /scrape/jobs/{id}/results` → NDJSON results, paged with `?after=N` (500 per page) - `POST /scrape/jobs/{id}/retry` → re-run only the failed URLs ``` JOB=$(curl -s https://api.crawl4ai.com/scrape/jobs \ -H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \ -d '{"urls":["https://a.com","https://b.com"]}' | jq -r .job_id) until [ "$(curl -s https://api.crawl4ai.com/scrape/jobs/$JOB \ -H "Authorization: Bearer sk_live_..." | jq -r .status)" = "done" ]; do sleep 2; done curl -s https://api.crawl4ai.com/scrape/jobs/$JOB/results -H "Authorization: Bearer sk_live_..." ``` ## MCP — use Crawl4AI as native tools Add Crawl4AI to Claude Code, Cursor, or any MCP client — no install, just a URL and your key. ``` claude mcp add --transport http crawl4ai https://api.crawl4ai.com/mcp \ --header "Authorization: Bearer sk_live_..." ``` Tools: `scrape` (url, format, proxy, country, parse) · `search` (q, rich) · `answer` (q, experimental) · `extract` (url, instruction, schema, example) · `batch` (urls, format, proxy, country) · `recipes_list` (query or name: the ready-made scrapers with their inputs and columns, free) · `recipe_run` (name, inputs, bypass_cache) · `balance` · `plans` (the monthly plans and where to start one) · `estimate` (endpoint, url?, urls?) · `topup` (amount: dollars, 10 to 1000, extra credits on a plan; ask the user first) · `spend_cap` (credits) · `recharge` (on, pack_usd, month_limit_usd: dollars a month, 0 = no limit, both the user's own numbers; fires when the plan's credits are used and the extra credits fall under 1,000) · `report_issue` (title, what_happened). A `scrape`, `extract` or `batch` call on a page that needs a real browser can take up to 90 s: let the tool call run (allow 120 s in your MCP client) instead of cancelling and retrying. For 50 to 500 URLs, the MCP has `jobs_submit` (urls, proxy, country, bypass_cache, idempotency_key: send the same key on a retry and the job is billed once), then `jobs_status` (poll every 10 to 30 s) and `jobs_results` (50 per call, paged with `offset`). For more than 500 URLs, call the HTTP jobs API (`POST /scrape/jobs`, above) with the same key. ## Notes - Provenance: every response tells you which engine served it and whether it came from cache. - Regions: requests route to the nearest region automatically (EU, Singapore, or US). - Caching: repeated URLs are served from a shared archive. - Fair use: each plan has request/concurrency limits (see the dashboard); over-limit calls get `429` with a `message` (a monthly plan lifts the free plan's limits); out of credit gets `402 no_credit` (start a plan, or buy extra credits on a plan, on the dashboard's Billing tab). ## More - Full API docs: https://api.crawl4ai.com/docs - Dashboard & keys: https://api.crawl4ai.com/dashboard/ - Open-source library: https://github.com/unclecode/crawl4ai