Extract structured page data: title, meta tags, headings, images, and paragraphs.
Request body
| Field | Type | Description |
|---|
url | string | Required. The URL to process. |
curl -X POST https://crawlapi.dev/api/json \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"url":"https://example.com"}'
{
"success": true,
"data": {
"url": "https://example.com",
"title": "Example Domain",
"description": null,
"headings": [
{
"level": 1,
"text": "Example Domain"
}
],
"images": [],
"paragraphs": [
"This domain is for use in illustrative examples..."
]
},
"credits_used": 1,
"credits_remaining": 499
}
Error codes
| Status | Meaning |
|---|
400 | Missing or invalid URL / bad options |
401 | Missing or invalid API key |
403 | Insufficient credits |
405 | Wrong HTTP method (use POST) |
429 | Rate limit exceeded (60/min) |
500 | Server error |