GET
/
v1
/
execution
/
{execution_id}
/
results

You must pass the execution_id obtained from making an execute query POST request.

Result returns the status, metadata, and query results (in JSON) from a query execution.

  • Read more on Filtering, Sorting, and Sampling to learn more about flexibly grabbing query results.
  • Read more on Pagination to get the most out of the API and handle large results.
  • Results data from an execution are stored for 90 days. This is visible on the API response on the “expires_at” field in the execution status and results body.
  • Dune internally has a maximum query result size limit (which currently is 8GB, but subject to increase in the future). If your query yields more than 8GB of data, the result will be truncated in storage. In such cases, pulling the result data (using pagination) but without specifying allow_partial_results set to true will trigger an error message: “error”: “Partial Result, please request with ‘allows_partial_results=true’”. If you wish to retrieve partial results, you can pass the parameter allow_partial_results=true. But please make sure you indeed want to fetch the truncated result.

Headers

X-DUNE-API-KEY
string
required

API Key for accessing this service

Path Parameters

execution_id
string
required

unique identifier of the execution

Query Parameters

ignore_max_datapoints_per_request
boolean

There is a default 250,000 datapoints limit to make sure you don't accidentally spend all your credits in one call. To ignore the max limit, you can add ignore_max_datapoints_per_request=true

allow_partial_results
boolean

Sometimes request results can be too large to return. By default allow_partial_results is set to false and a failed state is returned.

Response

200
application/json
OK
execution_id
string
required

Unique identifier for the execution of the query.

query_id
integer
required

Unique identifier of the query.

state
string
required

The state of the query execution.

submitted_at
string
required

Timestamp of when the query was submitted.

expires_at
string

Timestamp of when the query result expires.

execution_started_at
string

Timestamp of when the query execution started.

execution_ended_at
string

Timestamp of when the query execution ended.

cancelled_at
string

Timestamp of when the query execution was cancelled, if applicable.

result
object
error
object