Docs / Guide

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

FieldUse
urlThe public page to retrieve.
formatsThe outputs included in data.
only_main_contentRemove common page chrome.

Read the Result

Check success, then read requested fields from data. Follow the endpoint page before adding optional fields.