POST /v2/scrape
Turn any URL into clean, LLM-ready Markdown
Give it one URL and get the main content back as Markdown — or HTML, links, images, a screenshot, a summary or schema-shaped JSON. PDF, DOCX, XLSX and PPTX URLs work too.
- Endpoint
POST /v2/scrape- Mode
- Synchronous — the answer arrives in the same request
- Credits
- 1 per page · +4 per LLM format · +1 per PDF page
- Also
POST /v1/scrape(v1 shape) ·GET /v2/scrape/{scrapeId}· MCP toolengine_scrape
What it's for
Ground an LLM answer
Fetch the page a user links to and hand the model clean Markdown instead of raw HTML with navigation and cookie banners.
Fill a schema from a page
Ask for a json format with your JSON Schema and get product, pricing or contact fields straight from one page.
Read documents by URL
Point it at a PDF, DOCX, XLSX or PPTX link and get the text as Markdown, page by page for PDFs.
Product and front pages
A product page starts with the product — title, price, availability, brand, rating — without the recommendation carousels; a news front page becomes a list of its stories (title, link, lead) without menus and footers.
Pages behind a bot wall
With proxy: "auto" a 401 / 403 / challenge page is retried in a real browser that waits the challenge out, with a stealth persona and from another exit IP; the exit that got through is remembered per site.
How it works
- Fetch
The page is fetched over HTTP/2 with one consistent Chrome 150 network fingerprint — TLS, HTTP/2 settings and headers from a single fixed profile, never rotated or randomised; the operator can enable a real Chrome engine for pages that need JavaScript, actions and screenshots. A page behind a bot check goes on to the browser and exit steps (Bot walls and challenge pages).
- Clean
onlyMainContent (on by default) strips navigation, footers and boilerplate; includeTags / excludeTags let you steer it with CSS selectors.
- Convert
Every requested format is built from the same fetch; LLM formats (json, summary, question) run on the cleaned content, highlights are ranked verbatim passages without an LLM.
- Answer
You get data plus metadata (title, language, status code, source URL, credits used). Results are cached; maxAge controls how fresh they must be.
Request parameters
Full docs →| Field | Type | Default | Description |
|---|---|---|---|
urlrequired | string | — | Absolute http(s) URL, up to 2048 characters. |
formats | array | ["markdown"] | Any of markdown, html, rawHtml, links, images, screenshot, summary, json, question, highlights, branding, product, menu, changeTracking, attributes, audio, video. Objects carry options, e.g. {"type": "json", "schema": {…}, "prompt": "…"}. |
onlyMainContent | boolean | true | Drop navigation, headers and footers. |
includeTags / excludeTags | string[] | — | CSS selectors to keep or remove (up to 200 each). |
waitFor | integer (ms) | 0 | Extra wait before reading the page, 0–30000. |
timeout | integer (ms) | 30000 | Clamped to 5000–120000. |
maxAge | integer (ms) | — | Accept a cached copy up to this age. |
mobile | boolean | false | Fetch with a mobile user agent and viewport. |
location | object | — | {"country": "DE", "languages": ["de"]}. |
actions | array | — | Up to 50 browser actions (click, write, press, scroll, wait …) before reading. wait always runs; click, write, press and scroll run on the Lightpanda engine when the operator enables it, the other types need the Chrome engine. Every step not run is reported per step and in the warning. |
parsers | array | — | Document parsing, e.g. ["pdf"]. |
redactPII | boolean | false | Mask personal data in the output (+4 credits). |
formats · query | object | — | {"type": "query", "query": "{ products[] { name price } }"} — JSON in exactly that shape; the selectors are cached per site (Query). |
formats · highlights | object | maxSnippets 5 | {"type": "highlights", "query": "…", "maxSnippets": 5} — verbatim passages ranked by relevance (BM25), 1–20, no LLM. An empty list means the page does not address the question. |
proxy | string | object | "auto" | basic, enhanced or auto — or your own: {"type": "custom", "url": "socks5://user:pass@host:port", "country": "HU"} (http, https, socks5). Private addresses are refused and the credentials never appear in responses or logs. Plain HTTP fetches only: browser requests answer 400 proxy_custom_unsupported; not in crawl or batch jobs. |
formats · selectors | object | — | {"type": "selectors", "item": {"css": ".product"}, "fields": {"price": {"css": ".price::text", "process": ["number"]}}} — typed fields by CSS, XPath, regex or JSONPath, no LLM (Selectors). |
maxTokens | integer | — | Cut the Markdown at a block boundary to about this many tokens (100–1000000). Without it nothing is cut: a large page only gets a large_output:<tokens> warning. A cut is named first in the warning (truncated:markdown:tokens:<original>) and in metadata.truncated. |
Unknown fields do not fail the request — they are listed in the response warning, as are values that were clamped to the engine's limits.
Example request
curl -X POST https://crawl.echolotnews.com/v2/scrape \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"formats": [
"markdown",
"links"
],
"onlyMainContent": true
}'import requests
API = "https://crawl.echolotnews.com"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
resp = requests.post(f"{API}/v2/scrape", headers=HEADERS, json={
"url": "https://example.com",
"formats": ["markdown", "links"],
"onlyMainContent": True,
}, timeout=120)
resp.raise_for_status()
print(resp.json()["data"]["markdown"])const API = "https://crawl.echolotnews.com";
const headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const res = await fetch(`${API}/v2/scrape`, {
method: "POST",
headers,
body: JSON.stringify({
"url": "https://example.com",
"formats": [
"markdown",
"links"
],
"onlyMainContent": true
}),
});
const json = await res.json();
console.log(json.data.markdown);# 1. Connect once (Claude Code)
claude mcp add --transport http echolot https://crawl.echolotnews.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
# 2. Ask in plain words — the agent calls engine_scrape, e.g.
# "Read https://example.com and summarise it"
# Tool call it makes:
{
"name": "engine_scrape",
"arguments": {
"url": "https://example.com",
"formats": [
"markdown"
]
}
}Example response
{
"success": true,
"data": {
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples…",
"links": ["https://www.iana.org/domains/example"],
"metadata": {
"title": "Example Domain",
"language": "en",
"sourceURL": "https://example.com",
"url": "https://example.com/",
"statusCode": 200,
"contentType": "text/html",
"cacheState": "miss",
"creditsUsed": 1,
"tokens": 38,
"tokenizer": "echolot-approx-v1:cl100k",
"scrapeId": "0f9c2d9e-3a4b-4c1e-9d7a-5b6c7d8e9f01"
}
}
}Response fields
| Field | Type | Meaning |
|---|---|---|
data.markdown · html · links … | per format | One key per requested format. |
metadata.statusCode | integer | The status the source site really answered, after redirects. |
metadata.sourceURL · url | string | The URL you asked for and the final URL. |
metadata.cacheState · creditsUsed | string · number | hit / miss, and what the call cost. |
metadata.errorCode | string | Why a page failed, in plain words: login_required, bot_blocked, page_not_found, empty_content, target_http_error. A sign-in page is never reported as a successful 200. |
metadata.tokens · tokenizer | integer · string | Estimated token count of the Markdown for your context budget, and the estimation method. |
metadata.hiddenRemoved | integer | How many hidden elements and invisible characters were kept out of the Markdown, text and HTML — text a reader cannot see never reaches your model (Hidden-text firewall). |
warning | string | Contains response_truncated when an HTML or text page over 5 MB came back cut at 5 MB instead of failing; files over their limit still fail. |
data.selectors | object | array | The selectors format's values; an empty field is named in the warning (field_empty:<field>). |
metadata.pageType · pageTypeSignals | string · string[] | What kind of page this is — product, article, list, frontpage, profile or other — and the evidence (schema.org type, og:type, URL shape, page structure). |
metadata.contentCompleteness · missing | string · string[] | Whether the main content came through: full, partial (e.g. a social profile whose posts are behind a log-in: missing: ["posts"]), og_only or interstitial. Given on profile pages and whenever the answer is not full. |
metadata.servedBy | string | Which step of the fetch chain produced the page: http@direct, chrome@brave#1 (a real browser on that exit), chrome_stealth@…, http@proxy:<exit> or stealth@service. A wall met by an earlier step is not the result (Bot walls and challenge pages). |
Credits
Pricing →| What | Credits |
|---|---|
| A page as Markdown, HTML, links, images or screenshot | 1 |
| Each LLM format (json, summary, question, audio, video) | +4 |
| Each PDF page | +1 |
| PII redaction · prompt-injection check | +4 each |
| A failed scrape | 0 |
| Query format: LLM resolution · cache hit | +4 · +1 |
| Highlights (verbatim passages, no LLM) | 0 extra |
| Selectors format (no LLM) | 0 extra |
Start with 500 free credits
No card required. Every endpoint, REST and MCP.