Skip to content

Data Service Request

The Data Service returns the result of each query that the Bulk API accepted. Every accepted input value gets its own query ID in the Bulk Service Response (data.accepted[].results[].id). Send that ID to the Data Service to read the query status and the parsed Amazon data.

The webhook sent to your callback_url tells you that a query has finished. It does not carry the parsed data, so you always fetch the result from the Data Service.

Endpoint

Use one of two endpoints:

GET https://data.easyparser.com/v1/queries/{id}
GET https://data.easyparser.com/v1/queries/{id}/results?format=json
EndpointReturns
GET /v1/queries/{id}The full query record: status, metadata, the original input and, once finished, the parsed result in json_result.
GET /v1/queries/{id}/results?format=jsonThe query record with the parsed JSON result (no raw HTML) in json_result.

Use the query record when you need to check status before reading the data. The Data Service Response page describes the query record field by field.

Headers

HeaderRequiredDescription
api-keyYesYour Easyparser API key. Authorization: Bearer is not supported.

You find your API key in the web app under Account > Plan at https://app.easyparser.com/account/plan.

Path parameters

ParameterTypeRequiredDescription
idstringYesQuery ID from data.accepted[].results[].id in the Bulk Service Response, for example 019efb81-eb45-7e4f-a6a2-9bdcc619921e. Do not send bulk_request_id or group_id here.

Query parameters

ParameterTypeRequiredDescription
formatstringYesOutput format of the /results endpoint. Not used on GET /v1/queries/{id}. Allowed: json.

Example request

The cURL example fetches the query record once. The Node.js and Python examples fetch it and retry every 10 seconds while the status is pending. They stop after 30 attempts (5 minutes), the length of the processing timeout.

Terminal window
curl --location 'https://data.easyparser.com/v1/queries/YOUR_QUERY_ID' \
--header 'api-key: YOUR_API_KEY'

Get the parsed result

The /results endpoint returns the parsed data as JSON, not the raw Amazon HTML. The response is the query record: check data.status, then read the data from data.json_result.result.

Terminal window
curl --location 'https://data.easyparser.com/v1/queries/YOUR_QUERY_ID/results?format=json' \
--header 'api-key: YOUR_API_KEY'

Limits

  • Request rate: Data Service requests are limited to your plan's Bulk per-minute limit plus 20%. For example, a Bulk limit of 1,000 per minute allows up to 1,200 Data Service requests per minute. The Account API returns your Bulk limit as minutely_bulk_credit_limit.
  • Processing timeout: processing times out after 5 minutes. A query that does not finish in time ends with status failure.