---
schema_version: "1"
id: f9438e6b7e265a5c49e714b1e73ddaa3e4edcd9fbdf0d2a087603ea8ba8c973c
title: Get Parallel Results for a Query Job
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-asynch/guides/api-bulk-v2/bulk-query/query-get-parallel-job-results.md
canonical_url: https://developer.salesforce.com/docs/platform/api-asynch/guide/query-get-parallel-job-results.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: af5994de7e9dacf3e509b6419efafbb819daacb0a859f8d55f649b77de2e96ac
products:
  - Bulk API 2.0 and Bulk API Developer Guide
  - Platform Developer Content
---

# Get Parallel Results for a Query Job

Returns up to five URIs in one response to use to get results for a query job. The job must have the state `jobComplete`.

## Syntax

**URI:**

`/services/data/vXX.X/jobs/query/queryJobId/resultPages`

**important:** To get query results, use the same API version that you used to create the query. Otherwise, the call returns a 409 error.

**Available since release:**

This resource is available in API version 58.0 and later.

**Formats:** JSON

**HTTP Methods:** GET

**Authentication:** Authorization: Bearer `token`

**Request Parameters**

|Parameter|Description|Required or Optional|
|---------|-----------|--------------------|
|`queryJobId`|The ID of the query job. The ID is retrieved when you create the query job.|Required|

## Response Body with Request Parameters

The JSON response body contains multiple request URIs that you use to request data in parallel.

|Element|Description|
|-------|-----------|
|`resultPages`|Contains the `resultUrl` URIs.|
|`resultUrl`|The request URI with the locator for getting data.|
|`nextRecordUrl`|The URI used to get a response body with the next `resultPages` element.|
|`done`|A Boolean value that indicates whether more `resultUrl` URIs are available.|

## Example

This example retrieves the results for a job with the ID 750R0000000zxr8IAA. We start by sending an initial request to retrieve the first set of result links.

**Example Request**

```nolang

curl --include --request GET \
--header "Authorization: Bearer token" \
--header "Accept: application/json" \
https://MyDomainName.my.salesforce.com\ 
/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/resultPages

```

**Example Response Body**

```json

 {
    "resultPages": [
        {
            "resultUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results?locator=aBcDeFg4N"
        },
        {
            "resultUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results?locator=HiJkLmN4N"
        },
        {
            "resultUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results?locator=oPQrStU4N"
        },
        {
            "resultUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results?locator=vWxYzz4N"
        },
        {
            "resultUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results?locator=NiKmABC4N"
        }
    ],
    "nextRecordsUrl": "/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/resultpages?locator=YcApWm4N",
    "done": false
}
      
```

The value of `nextRecordsUrl` is the URI for getting the next set of `resultUrl` URIs. The value of `done` is `true` if there are no more `resultUrl` URIs. The value of each `resultUrl` is a URI that you send as a request to get a set of results.

**See Also**  


-   [Get Results for a Query Job](https://developer.salesforce.com/docs/platform/api-asynch/guide/query-get-job-results.md)

