| scrapeA | Fetch a single URL via the crawlbrulee scraping API and return the requested content (markdown, cleaned HTML, raw HTML, links, images, screenshot, PDF, page metadata in metadata). Use this for one-shot page extraction. For full-site discovery use the map tool first. To pull named values such as prices, titles or links, set extract.elements (name → CSS selector) instead of reading the whole markdown: they come back in elements, for no extra credits. Markdown and metadata stay on unless you set markdown: false and metadata: false, so send both to get only the values. Rules: https://crawlbrulee.com/docs/scrape/targeted-extraction. Check page_status_code before you trust the content: it is the HTTP status the site answered with for the final page. A page the site served is a successful result whatever its status, so a 404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the site's "not found" page, not the page you asked for. 2xx and 4xx pages are billed, except 403, 407, 408, 429, 444 and 451; 5xx pages are never billed. If the site cannot be reached at all the tool returns a target_unreachable error (HTTP 502, not billed): retry later or check the URL. Set extract.pdf: {} to save the page as a PDF (pages or one long page, a4 or letter); it costs what a screenshot costs, and both together are billed once. Set extract.screenshot.color_scheme: "dark" for a screenshot of the site's dark theme, at no extra cost; the PDF then shows it too. Screenshot and PDF URLs in the response are signed download links that expire 24 hours after the scrape: download the file if you need it later; do not keep the link. The response also carries response_meta.usage: total_credit_cost = engine_credit_cost × proxy_multiplier + screenshot_slicing_credit_cost + zero_data_retention_credit_cost, plus engine and proxy (the resolved tier — never auto). engine is the billed engine (http, browser, screenshot, cache); a cache hit is represented by engine: "cache". Set zero_data_retention: true to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a zero_data_retention_not_enabled error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. Extraction is capped per page: 30,000 links, 10,000 inline images and 10,000,000 characters of HTML. A page past a cap is truncated rather than refused, and the response warnings array names which one (links_truncated, inline_images_truncated, raw_html_truncated) — so treat that output as incomplete. elements_truncated means an elements value hit a limit. Use cleanup to control what is removed before any output is built: ads_and_popups (on by default) drops ads, cookie banners and chat widgets, and exclude_selectors removes anything else. It shapes markdown, cleaned_html, links, images and the screenshot, and NEVER raw_html — so request raw_html when you need the page exactly as it arrived. warnings also reports a section whose extraction failed outright (links_unavailable, inline_images_unavailable, metadata_unavailable): that field comes back omitted or empty while the rest of the scrape succeeded, so do NOT conclude the page had no links/images/metadata — re-run the scrape instead. An empty field with no such warning does mean the page had none. screenshot_unavailable means a screenshot was asked for, but the page came back from the http engine without one. pdf_unavailable means the PDF could not be made; the rest is there. pdf_single_page_overflow means a single_page PDF was too tall for one page and goes on over more pages. custom_user_agent means the request set its own User-Agent header; this can lower the success rate. To send your own headers or cookies to the site, set headers (for example Authorization, or a fixed User-Agent) or cookies. They go only to the site in url, and such a request never uses the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. Tell the user this before they share one. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies. |
| scrape_asyncA | Submit a scrape job to run ASYNCHRONOUSLY and return a job_id immediately, instead of holding the connection open. Use this for long-running scrapes (heavy JS rendering, full-page screenshots of long pages) — for a quick one-shot fetch prefer the synchronous scrape tool, which blocks and returns the page directly. Poll the job with scrape_status and fetch the page with scrape_result once done. Takes extract.elements like scrape (named values by CSS selector, no extra credits); the result carries them in elements. Rules: https://crawlbrulee.com/docs/scrape/targeted-extraction. Takes extract.pdf (save the page as a PDF) and extract.screenshot.color_scheme like scrape. Optionally attach a per-job completion webhook: we deliver a single signed scrape.complete POST to your endpoint when the job finishes (HTTPS required in production), and echoes your opaque webhook.metadata back in the delivery (under data.metadata, alongside data.page_status_code (on success) and data.response_meta.usage). Set zero_data_retention: true to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a zero_data_retention_not_enabled error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. To send your own headers or cookies to the site, set headers (for example Authorization, or a fixed User-Agent) or cookies. They go only to the site in url, and such a request never uses the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. Tell the user this before they share one. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies. |
| scrape_statusA | Look up the current lifecycle status of an async scrape job submitted via scrape_async. Returns the job state (pending, running, done, failed), with an error message when it failed and a response_meta.usage block (total_credit_cost and its parts, billed engine, resolved proxy tier) once it is done. A job whose page the site served ends done even when that page is a 404 or 503 — read page_status_code in the result. A job that could not reach the site at all ends failed (the error text is a general message, not the reason) and is not billed; retry later or check the url. A job that asked only for a screenshot, a PDF or both and got no capture also ends failed and is not billed; scrape_result then names the reason. Poll this until the status is done, then call scrape_result to fetch the page. If you registered a completion webhook on submit you can skip polling and react to the delivery instead. A job answers for 24 hours after it was submitted; after that this returns not_found, the same as for an unknown job id. |
| scrape_resultA | Fetch the extracted content of a completed async scrape job (the same result shape as the synchronous scrape tool: markdown, cleaned HTML, raw HTML, links, images, screenshot, PDF, page metadata in metadata, values from extract.elements in elements, and response_meta.usage). Errors if the job is still pending/running — check scrape_status first (status done) before calling this. A failed job has no result: this returns job_failed. A job that asked only for a screenshot, a PDF or both, on a content type that cannot be captured (such as JSON or plain text), returns unsupported_screenshot_output or unsupported_pdf_output instead, as scrape does. Either way the job is not billed. Check page_status_code before you trust the content: it is the HTTP status the site answered with for the final page. A page the site served is a successful result whatever its status, so a 404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the site's "not found" page, not the page you asked for. 2xx and 4xx pages are billed, except 403, 407, 408, 429, 444 and 451; 5xx pages are never billed. A job answers for 24 hours after it was submitted, then returns not_found. Screenshot and PDF URLs are signed download links that expire at the same moment, however late you fetch the result: download the file if you need it later. |
| mapA | Build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. Returns paginated links, each { url, type, lastmod }: type is page, sitemap or sitemap_index (a sitemap file that lists other sitemap files); read either kind of sitemap file with sitemap_url in another call. lastmod is the date from the sitemap (UTC) or null. Filterable by link type (internal / external / subdomain). Use this to enumerate a site before scraping selected pages. By default the map reads the site's top sitemap files and 2 levels of nested ones (depth 3), returns pages (entries) and finds up to 5000 of them (max_results, max 100000). max_results is a discovery budget, not a trim at the end: discovery stops as soon as that many entries of the asked kind are found, so a smaller value is a faster map. A map stopped that way returns exactly max_results links with response_capped false; the signal that the site has more is response_meta.truncation.discovery_cap_reason. "max_results": ask again with a higher max_results. "depth": there are sitemap files past the depth you asked for, listed in unread_sitemaps; that is the answer to your depth, not a fault. "unread_files": a sitemap file could not be read whole this time, often temporary, so asking again later can return more. "time", "file_budget" and "file_size": the site is big or slow, and a retry will not help. discovery_capped says discovery stopped early, sitemaps_skipped how many sitemap files were skipped or only partly read. limit (default 5000, max 10000) only pages the answer. To map a very large site in several calls, first ask with depth: 1 and entries: "sitemaps": one call lists the top sitemap files and every file they list (a listed file shows as sitemap until a map reads it, even when it is an index). Then read each file with sitemap_url (on the same site as url, or on a host the site's robots.txt names, such as a CDN), or ask with a higher depth. truncation.unread_sitemaps names the files a call did not read whole, to read next (except a file that says it is over the size limit: no call reads that one); when that list is full, ask the same with entries: "sitemaps" to get every sitemap file as a link, paged. A sitemap index holds only sitemap files, so reading one at a low depth with entries: "pages" returns no pages: ask with entries: "sitemaps" or a higher depth. modified_since keeps only entries whose lastmod is at or after it: an entry with no lastmod is left out (so no home page link is returned). Every sitemap file is read whatever its own date, and each entry is judged by its own lastmod. With entries: "sitemaps" a file is returned by its own date, so ask with entries: "pages" to find the pages that changed. A request with modified_since is always mapped fresh, never from the cache, and priced as a fresh map. A map with modified_since or sitemap_url adds no home page links. If the site answers 429 on the file in sitemap_url, on its robots.txt or on one of its top sitemap files, the tool returns too_many_requests (not billed): wait and retry. Set zero_data_retention: true to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a zero_data_retention_not_enabled error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. Returned URLs are normalized the same way scrape normalizes its returned url, so map-then-scrape stays on one host. Results are ordered with the most useful links first. The response carries response_meta.usage: total_credit_cost = engine_credit_cost × proxy_multiplier + zero_data_retention_credit_cost, plus engine and proxy (the resolved tier, never auto). Map has no screenshot slicing and no page_status_code: it reads many files, not one page. A map that found nothing because the site answered only with statuses we don't bill (a 5xx, for example), or not at all, is empty and free. If the site cannot be reached, the tool can return a target_unreachable error (HTTP 502, not billed): retry later or check the URL. The full walk-through for a very large or deep site: https://crawlbrulee.com/docs/map/sitemaps#map-a-very-large-or-deep-site-in-several-calls. |
| usageA | Return the current billing-cycle usage for the authenticated organization: total / used / available credits, used quota percent, max concurrency, and cycle reset time. Call this before launching large scrape jobs to confirm available credit. |
| whoamiA | Return the organization name, token name, and truncated token preview for the API key currently configured on the MCP server. Useful for confirming which account is in use before performing credit-consuming operations. |