Submit a batch
Changed onScrape 25K URLs or crawl large websites asynchronously.
Request
- Base URLhttps://api.context.dev/v1
- URLhttps://api.context.dev/v1/batch/submit
- AuthHTTP bearer
Headers
Any string unique to this submission. Retries with the same key return the original batch.
Request body
Example request
{
"input": {
"data": {
"urls": [
{
"url": "https://example.com/products/anvil",
"itemId": "sku-1"
}
],
"options": {
"country": "de"
}
}
},
"tags": [
"docs",
"competitor"
]
}Response
Batch accepted. Read progress and results from GET /batch/{batch_id}.
Example response
{
"id": "batch_9f2c8a",
"tags": [
"docs"
],
"crawl": {
"source": {
"url": "https://example.com/docs"
},
"max_pages": 500,
"url_pattern": "^https://example\\.com/docs/"
},
"input": {
"reserved": 24817,
"submitted": 25000,
"duplicates": 183
},
"credits": {
"reserved": 24817
},
"invalid_urls": [
{
"reason": "Must be a public http:// or https:// URL"
}
]
}Changes
- info
added the required property
/to the response with the status
- info
- breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
request property
//////list-of-types was narrowed by removing typesstringfrom media typeapplication/json
- breaking