curl --request POST \
--url https://api.blat.ai/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com",
"allow_external_links": false,
"allow_subdomain_links": false,
"extract_links": false,
"format": "html"
}
'{
"extracted_links": [
"extracted_links",
"extracted_links"
],
"content": "content"
}Fetches content from a URL and returns it in HTML or Markdown format with optional link extraction
curl --request POST \
--url https://api.blat.ai/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com",
"allow_external_links": false,
"allow_subdomain_links": false,
"extract_links": false,
"format": "html"
}
'{
"extracted_links": [
"extracted_links",
"extracted_links"
],
"content": "content"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Scraping request parameters
The URL to fetch content from
"https://example.com"
Whether to include external links
Whether to include subdomain links
Whether to extract links from HTML
The desired output format
html, markdown