Batches
...
Batches API
Result Sets

Get Result Set

7min

Get Result Set

You can retrieve the results within a Result Set by making making an HTTP GET request to the /batches/BATCH_ID/results/RESULT_SET_ID endpoint (where BATCH_ID is the id of the Batch to retrieve results for, and RESULT_SET_ID is the id of the Result Set within that Batch).



Get Result Set as JSON

GET /batches/BATCH_ID/results/RESULT_SET_ID

In the example below we retrieve a Result Set with id=1 in Batch with id=123456 in JSON format:

HTTP
Curl
Node.js
Python
PHP


Scale SERP responds with the following JSON showing the Result Set details and download_links for each page of JSON files containing the results:

JSON



Get Result Set as JSON Lines

GET /batches/BATCH_ID/results/RESULT_SET_ID/jsonlines

In the example below we retrieve a Result Set with id=1 in Batch with id=123456 in JSON Lines format:

HTTP
Curl
Node.js
Python
PHP


Scale SERP responds with the following JSON showing the Result Set details and download_links for each page of JSON Lines files containing the results:

JSON



Get Result Set as CSV

GET /batches/BATCH_ID/results/RESULT_SET_ID/csv

We provide a further endpoint, /batches/BATCH_ID/results/RESULT_SET_ID/csv , to retrieve the Result Set in CSV format.

When using this endpoint you can supply a csv_fields querystring parameter to determine the fields that are included in the CSV file. the csv_fields parameter should be specified as a comma seperated list of fields (in nested field, dot notation, format). For more information see the CSV Fields Reference.

In the example below we retrieve a Result Set with id=1 in Batch with id=123456 in CSV format:

HTTP
Curl
Node.js
Python
PHP


Scale SERP responds with the following JSON showing the Result Set details and download_links for each page of CSV files containing the results:

JSON