Scraper API quickstart
Choose a scraper from Hub, provide its inputs, and receive structured data.
Run a scraper from Hub
List scrapers available to the account:
curl --fail-with-body --silent --show-error \
'https://api.raspbytes.com/api/v1/scrape/hub/' \
-H "X-API-Key: $RASPBYTES_API_KEY"Open the selected scraper and read its input_schema, current revision, and
availability before constructing a run.
curl --fail-with-body --silent --show-error \
-X POST \
'https://api.raspbytes.com/api/v1/scrape/hub/scp_raspbytes_google_search/runs/' \
-H "X-API-Key: $RASPBYTES_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {
"query": "managed web data"
},
"configuration": {
"country": "gb",
"locale": "en"
}
}'The response contains a request identifier and status. Read the corresponding
request resource to follow asynchronous work. When the workflow will run again,
create a Scraping Task rather than duplicating its configuration.
Updated 16 days ago
Did this page help you?

