Scrape one web page
YouTube video URLs return the timestamped transcript through the normal text formats. Every successful YouTube transcript scrape costs 5 credits.
/scrapeYouTube video URLs return the timestamped transcript through the normal text formats. Every successful YouTube transcript scrape costs 5 credits.
Authorization
api-key Enter your API key with the bc_ prefix
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Browser actions to execute
items <= 25Enable ad-blocking and cookie popup blocking
trueDomain to scrape. Normalized to https://domain when url is omitted.
CSS selectors to exclude
Schema for structured data extraction (used with json format)
Output formats - can be simple strings or format objects with options
Default
[ "markdown"]Custom headers
CSS selectors to include
Location settings
Cache max age in milliseconds
172800000Emulate mobile device for scraping
falseExtract only main content
trueProxy mode. auto starts direct and escalates only when blocked. basic is an alias for none.
"auto"Value in
- "none"
- "basic"
- "datacenter"
- "residential"
- "stealth"
- "auto"
Remove base64 images from output (keeps alt text)
trueReturn screenshot/PDF output inline as a base64 data URL instead of an uploaded CDN URL. Default false (a CDN URL is returned).
falseSkip TLS certificate verification
falseStore result in cache
trueRequest timeout in milliseconds
30000URL to scrape. Either url or domain is required.
Wait time before scraping (ms)
0Reserved for a future zero-data-retention mode. true is currently rejected with 400 ZERO_DATA_RETENTION_NOT_SUPPORTED; omit or use false.
falseResponse Body
application/json
curl -X POST "https://example.com/scrape" \ -H "Content-Type: application/json" \ -d '{}'{ "credits": { "used": 0 }, "data": {}, "error": "string", "metadata": { "authorName": "string", "authorUrl": "http://example.com", "contentType": "string", "durationSeconds": 0, "durationText": "string", "language": "string", "source": "string", "statusCode": 0, "thumbnailUrl": "http://example.com", "timestamp": "2019-08-24T14:15:22Z", "title": "string", "url": "http://example.com", "videoId": "string" }, "success": true}Get the complete public brand profile for a website POST
Send one website URL. BerryCrawl returns the brand identity found on that site.
Get a timestamped YouTube transcript POST
Returns a YouTube video transcript through the standard scrape response shape. Every successful response costs 5 credits. Failed requests are not charged.