GET
/
v1
/
execution
/
{execution_id}
/
status

curl -X GET "https://api.dune.com/api/v1/execution/{{execution_id}}/status" -H x-dune-api-key:{{api_key}}

{
  "execution_id": "01HJ3EBNGZ8WT12KX8ZCARM5ES",
  "query_id": 3298913,
  "state": "QUERY_STATE_COMPLETED",
  "is_execution_finished": true,
  "submitted_at": "2024-12-20T11:04:18.71989Z",
  "expires_at": "2025-03-19T11:04:19.423372Z",
  "execution_started_at": "2024-12-20T11:04:18.724658237Z",
  "execution_ended_at": "2024-12-20T11:04:19.423371588Z",
  "result_metadata": {
    "column_names": [
      "Rank",
      "project",
      "Total Volume",
      "7 Days Volume",
      "24 Hours Volume"
    ],
    "datapoint_count": 40,
    "execution_time_millis": 18272,
    "pending_time_millis": 16,
    "result_set_bytes": 440,
    "total_row_count": 8
  }
}

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

Returns the status of a query execution along with relevant metadata of the results if the execution is completed.

Headers

X-DUNE-API-KEY
string
required

API Key for the service

Path Parameters

execution_id
string
required

unique identifier of the execution

Query Parameters

api_key
string

API Key for the service, alternative to using the HTTP header X-DUNE-API-KEY.

Response

200 - application/json
execution_id
string
required

Unique identifier for the execution of the query and corresponding result.

query_id
integer
required

Unique identifier of the query.

state
string
required

The state of the query execution.

is_execution_finished
boolean

Whether the state of the query execution is terminal. This can be used for polling purposes.

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_metadata
object

Metadata about the execution of the query, including details like column names, row counts, and execution times.