application/json

Body Required

  • location string Required

    Default value is US.

  • language string Required

    Default value is en.

  • url string Required
  • 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

  • responseType string Required

    type of response that we need to give

    Values are html, plugin, or all. Default value is all.

  • mode string Required

    behavior of crawler

    Values are with_js or without_js. Default value is with_js.

  • callbackUrl string Required

    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

    Hide proxy attributes Show proxy attributes object

Responses

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": {}
}