Batch

Get batch results

Changed on

Page through a finished batch's results as JSON instead of downloading the NDJSON files.

get/batch/{batch_id}/results

Request

  • Base URL
    https://api.context.dev/v1
  • URL
    https://api.context.dev/v1/batch/{batch_id}/results
  • Auth
    HTTP bearer

Path parameters

batch_idstring required

ID of the batch to retrieve or cancel.

Example:batch_9f2c8a

Query parameters

limitinteger

Records per page. Defaults to 25. A page can close early so its payload stays under ~8 MB; rely on next_cursor rather than counting records.

cursorstring

next_cursor from the previous page.

Response

One page of result records. Keep paging with next_cursor while has_more is true.

has_moreboolean

Whether another page is available.

next_cursorstring nullable

Cursor for the next page.

Example response

{
  "data": [
    {
      "url": "https://example.com/products/anvil",
      "itemId": "sku-1",
      "http_status": 200,
      "ocr_pages": 3
    }
  ]
}

Changes

    • info

      added the required property /// to the response with the status

    • warning

      added the new WEBSITE_BLOCKED enum value to the response property for the response status

    • warning

      added the new WEBSITE_BLOCKED enum value to the response property for the response status

    • warning

      added the new WEBSITE_BLOCKED enum value to the response property for the response status

    • warning

      added the new WEBSITE_BLOCKED enum value to the response property for the response status

    • info

      added the optional property //// to the response with the status