Scrape a Page
Extract content from any single URL as markdown, HTML, or structured JSON.
Scrape a Page
Extract clean content from any URL. Returns markdown by default — perfect for feeding into LLMs.
Basic Usage
curl -X POST https://scrapeforllm.com/api/app/scrapes \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"url": "https://example.com/blog/post",
"type": "scrape"
}'const response = await fetch("https://scrapeforllm.com/api/app/scrapes", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer YOUR_API_KEY",
},
body: JSON.stringify({
url: "https://example.com/blog/post",
type: "scrape",
}),
});
const data = await response.json();
console.log(data.scrape.result.data.markdown);import requests
response = requests.post(
"https://scrapeforllm.com/api/app/scrapes",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY",
},
json={
"url": "https://example.com/blog/post",
"type": "scrape",
},
)
data = response.json()
print(data["scrape"]["result"]["data"]["markdown"])Response:
{
"scrape": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://example.com/blog/post",
"type": "scrape",
"status": "completed",
"creditsUsed": 1,
"format": "markdown",
"result": {
"data": {
"markdown": "# Blog Post Title\n\nThe full content of the page...",
"metadata": {
"title": "Blog Post Title",
"description": "Meta description",
"sourceURL": "https://example.com/blog/post",
"statusCode": 200
}
}
},
"createdAt": "2025-01-15T10:30:00.000Z",
"completedAt": "2025-01-15T10:30:02.000Z"
}
}Credits
Each scrape costs 1 credit. If you include json format, it costs 5
credits (uses LLM extraction).