POST
/
api
/
v1
/
scrape
Scraper API
curl --request POST \
  --url https://api.llmlayer.dev/api/v1/scrape \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "format": "markdown",
  "include_images": true,
  "include_links": true
}'
{
"markdown": "<string>",
"html": "<string>",
"pdf_data": "<string>",
"screenshot_data": "<string>",
"url": "<string>",
"status_code": 123,
"cost": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
url
string
required

URL to scrape

format
enum<string>
default:markdown

Output format

Available options:
markdown,
html,
screenshot,
pdf
include_images
boolean
default:true

Include images in markdown output

Include links in markdown output

Response

Scraped content

markdown
string

Content in markdown format (when format=markdown)

html
string | null

Content in HTML format (when format=html)

pdf_data
string | null

Base64-encoded PDF data (when format=pdf)

screenshot_data
string | null

Base64-encoded screenshot image (when format=screenshot)

url
string

Final URL after any redirects

status_code
integer

HTTP status code (200 for success)

cost
number

Cost in USD ($0.001)