First Request
Make a Scrape Request
Send one URL and request only the formats you need.
curl -X POST "https://api.datablue.dev/v1/scrape" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","formats":["markdown","links"],"only_main_content":true}'Example response
{
"success": true,
"data": {
"url": "https://example.com",
"markdown": "# Example Domain",
"links": [
"https://www.iana.org/domains/example"
]
},
"error": null
}Request Fields
| Field | Use |
|---|---|
url | The public page to retrieve. |
formats | The outputs included in data. |
only_main_content | Remove common page chrome. |
Read the Result
Check success, then read requested fields from data. Follow the endpoint page before adding optional fields.
