Start here
- QuickstartCreate a key and read your first page.Open
- Agent quickstartGive an AI agent one tool that reads a URL.Open
- API referenceEvery field, header and status.Open
One request
url is the only required field. Rendering and documents are the service’s job.
curl -sS https://api.crawlapi.dev/v1/scrape \
-H "Authorization: Bearer $CRAWLAPI_API_KEY" \
-H 'content-type: application/json' \
--data '{"url": "https://example.com"}'import os, httpx
body = httpx.post(
"https://api.crawlapi.dev/v1/scrape",
headers={"Authorization": f"Bearer {os.environ['CRAWLAPI_API_KEY']}"},
json={"url": "https://example.com"},
timeout=60.0,
).json()
print(body["data"]["markdown"])const response = await fetch('https://api.crawlapi.dev/v1/scrape', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.CRAWLAPI_API_KEY,
'content-type': 'application/json',
},
body: JSON.stringify({ url: 'https://example.com' }),
});
const body = await response.json();
console.log(body.data.markdown);{
"success": true,
"request_id": "req_1dc0a514d6ee71c4524b",
"data": {
"metadata": {
"title": "Example Domain",
"description": "",
"language": "en",
"status": 200,
"final_url": "https://example.com/"
},
"links": [],
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes."
},
"usage": {
"credits": 1,
"remaining": 9999
}
}What you get
| Format | Data holds | Cost |
|---|---|---|
markdown |
markdown: the page’s text, its links in links[] |
from 1 credit |
json |
json: tables, jsonld, embedded state and structured data |
from 1 credit |
What it handles
- JavaScript pages Rendered and returned with their content, not their shell.
- Challenge pages A challenge or block page is never returned as a success.
- Documents PDF, Office, OpenDocument, EPUB, RTF, CSV, JSON and RSS/Atom URLs, converted like pages.
- Sign-in walls
Returned as the wall’s own text, free, with
metadata.login_required: true.
What it does not do
- Public pages only
No login, no password, no paywall is circumvented. A site that asks crawlers to pay is
BLOCKED. - No HTML
markdownandjsonare the formats; the HTML is read, not returned. - No cache Every request is a fresh fetch of the live page.