Data Service Request
Overview
Once a bulk request is submitted and accepted, each subtask (or query) returns a unique ID in the results section of the bulk response.
These IDs represent individual parsing operations that were created based on the payload you submitted (e.g., a product detail fetch, search result parsing, etc.).
You can use these IDs to retrieve the parsed data by sending a request to the Data Service endpoint.
Endpoint
GET https://data.easyparser.com/v1/queries/{id}You may also retrieve only the parsed result directly via:
GET https://data.easyparser.com/v1/queries/{id}/results?format=jsonGET /v1/queries/{id}
The full query record, including status and metadata.
GET /v1/queries/{id}/results?format=json
Only the parsed result data, in JSON.
The query record returned by GET /v1/queries/{id} includes a links array pointing to the query itself and to its result.
type
string
links[]
self points back to the query record; result points to the parsed data.
href
string
links[]
Full URL to call.
method
string
links[]
HTTP method to use (GET).
format
string
links[]
Format of the response returned by the link (e.g. json).
raw
boolean
links[]
Whether the link returns the query record rather than the parsed result.
Example Request(for JSON Format)
curl --location 'https://data.easyparser.com/v1/queries/YOUR_QUERY_ID/results?format=json' \
--header 'api-key: YOUR_API_KEY' \
--data ''import requests
url = "https://data.easyparser.com/v1/queries/YOUR_QUERY_ID/results?format=json"
payload = ""
headers = {
'api-key': 'YOUR_API_KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
const myHeaders = new Headers();
myHeaders.append("api-key", "YOUR_API_KEY");
const raw = "";
const requestOptions = {
method: "GET",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://data.easyparser.com/v1/queries/YOUR_QUERY_ID/results?format=json", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));What Happens After You Send the Request?
Once you send a request to the Data Service using a valid query ID, the system responds with detailed and structured data based on the operation type.
Whether it's a product detail, offer list, search result, or any other supported operation, the response contains all the parsed content ready for use in your application.
To explore the structure of this response and understand the meaning of each field, head over to the Data Service Response section.
Last updated