Body Required
-
Default value is
US
. -
Default value is
en
. -
plugin string
-
state string
requester state with unique value to match the response with unique id with will be returned to the callback without any change
-
type of response that we need to give
Values are
html
,plugin
, orall
. Default value isall
. -
behavior of crawler
Values are
with_js
orwithout_js
. Default value iswith_js
. -
an post url https/http endpoint to submit response when completed
-
proxy object
proxy details to securely crawl the data if you want to use your own
POST
/api/v1/requests
curl \
-X POST https://api.crawlora.com/api/v1/requests \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"location":"US","language":"en","url":"string","plugin":"string","state":"string","responseType":"all","mode":"with_js","callbackUrl":"string","proxy":{"port":42.0,"host":"string","protocol":"http","username":"string","password":"string"}}'
Request examples
{
"location": "US",
"language": "en",
"url": "string",
"plugin": "string",
"state": "string",
"responseType": "all",
"mode": "with_js",
"callbackUrl": "string",
"proxy": {
"port": 42.0,
"host": "string",
"protocol": "http",
"username": "string",
"password": "string"
}
}
Response examples (201)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {
"id": "string",
"location": "string",
"language": "string",
"url": "string",
"plugin": "string",
"state": "string",
"response_type": "string",
"mode": "string",
"callback_url": "string",
"proxy_host": "string",
"proxy_protocol": "string",
"proxy_port": 42.0,
"proxy_username": "string",
"proxy_password": "string",
"callback_status": "string",
"callback": "string",
"crawler_data": {
"status": "string",
"error": "string",
"response": "string"
},
"plugin_data": {
"status": "string",
"error": "string",
"response": "string"
},
"created_at": "string",
"updated_at": "string",
"status": "in_progress"
}
}
Response examples (401)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}
Response examples (404)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}
Response examples (422)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}