Skip to main content

REST APIs Overview

Scrapebit provides a comprehensive set of REST APIs for web scraping, data extraction, and automation. All APIs follow RESTful conventions and return JSON responses.

Base URL

https://api.scrapebit.com/v1

Available APIs

Content API

Extract structured data from any webpage using AI-powered extraction.

EndpointMethodDescription
/content/scrapePOSTScrape and extract data from a URL
/content/extractPOSTExtract specific data with AI prompts
/content/dataGETRetrieve previously scraped data
/content/data/{id}GETGet specific scraped data by ID

PDF API

Generate PDF documents from web pages.

EndpointMethodDescription
/pdf/generatePOSTGenerate a PDF from a URL
/pdf/listGETList all generated PDFs
/pdf/{id}GETGet a specific PDF
/pdf/{id}DELETEDelete a PDF

Screenshot API

Capture screenshots of web pages.

EndpointMethodDescription
/screenshot/capturePOSTCapture a screenshot
/screenshot/listGETList all screenshots
/screenshot/{id}GETGet a specific screenshot

Scheduling API

Set up automated, recurring scrapes.

EndpointMethodDescription
/schedulesPOSTCreate a new schedule
/schedulesGETList all schedules
/schedules/{id}GETGet schedule details
/schedules/{id}DELETEDelete a schedule

Deep Research API

Conduct AI-powered research on your data.

EndpointMethodDescription
/researchPOSTCreate a deep research session
/research/{id}/askPOSTAsk questions about your data
/researchGETList all research sessions
/research/{id}DELETEDelete a research session

User API

Manage your account and API access.

EndpointMethodDescription
/user/profileGETGet user profile
/user/usageGETGet usage statistics
/user/api-key/regeneratePOSTRegenerate API key

Request Format

All POST requests should include:

Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

Example Request

curl -X POST https://api.scrapebit.com/v1/content/scrape \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'

Response Format

All responses follow this structure:

Success Response

{
"success": true,
"data": {
// Response data
},
"credits_used": 1,
"credits_remaining": 99
}

Error Response

{
"success": false,
"error": {
"code": "error_code",
"message": "Human readable error message"
}
}

Pagination

List endpoints support pagination:

GET /v1/content/data?page=1&limit=20
ParameterTypeDefaultDescription
pageinteger1Page number
limitinteger20Items per page (max 100)

Paginated Response

{
"success": true,
"data": [...],
"pagination": {
"page": 1,
"limit": 20,
"total": 150,
"total_pages": 8
}
}

HTTP Status Codes

CodeDescription
200Success
201Created
400Bad Request - Invalid parameters
401Unauthorized - Invalid API key
403Forbidden - Insufficient credits
404Not Found
429Rate Limit Exceeded
500Internal Server Error