Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt

Use this file to discover all available pages before exploring further.

For more information regarding the endpoints, please visit Dune’s API documentation: Dune API Docs.

Prefix

No prefix is required for Dune. An example URL will therefore look like: https://api.uniblock.dev/direct/v1/Dune/path/to/endpoint.

Authentication

Dune uses API key authentication. If a Dune API key is stored in your Uniblock project, Direct API will automatically send it as an X-Dune-Api-Key header.

Example

curl --request GET \
  --url 'https://api.uniblock.dev/direct/v1/Dune/v1/execution/execution-1/results?limit=10' \
  --header 'accept: application/json' \
  --header 'x-api-key: YOUR_UNIBLOCK_API_KEY'

Supported Endpoints

Executions

MethodPathDescription
POSTv1/query/{query_id}/executeExecute a saved query.
POSTv1/query/{query_id}/pipeline/executeExecute a saved query pipeline.
POSTv1/sql/executeExecute SQL.
GETv1/execution/{execution_id}/statusGet execution status.
GETv1/execution/{execution_id}/resultsGet execution results.
GETv1/execution/{execution_id}/results/csvGet execution results as CSV.
GETv1/query/{query_id}/resultsGet latest query results.
GETv1/query/{query_id}/results/csvGet latest query results as CSV.
POSTv1/execution/{execution_id}/cancelCancel an execution.

Queries

MethodPathDescription
GETv1/queriesList queries.
GETv1/query/{query_id}Read a query.
PATCHv1/query/{query_id}Update a query.
POSTv1/queryCreate a query.
PATCHv1/query/{query_id}/archiveArchive a query.
PATCHv1/query/{query_id}/unarchiveUnarchive a query.
PATCHv1/query/{query_id}/privateMake a query private.
PATCHv1/query/{query_id}/unprivateMake a query public.
GETv1/query/{query_id}/pipelineGet a query pipeline.

Datasets and Analytics

MethodPathDescription
GETv1/datasetsList datasets.
GETv1/dataset/{namespace}/{table}Get dataset metadata.
GETv1/datasets/searchSearch datasets.
GETv1/datasets/search-by-contractSearch datasets by contract address.
GETv1/materialized-viewsList materialized views.
POSTv1/materialized-viewsUpsert a materialized view.
GETv1/materialized-view/{namespace}/{view_name}Get a materialized view.
DELETEv1/materialized-view/{namespace}/{view_name}Delete a materialized view.
POSTv1/materialized-view/{namespace}/{view_name}/refreshRefresh a materialized view.
POSTv1/pipeline/{pipeline_id}/executeExecute a pipeline.
GETv1/pipeline/execution/{pipeline_execution_id}/statusGet pipeline execution status.

Uploads

MethodPathDescription
GETv1/uploadsList uploaded tables.
POSTv1/uploadsCreate an uploaded table.
POSTv1/uploads/csvUpload CSV data.
POSTv1/uploads/{namespace}/{table}/insertInsert data into an uploaded table.
POSTv1/uploads/{namespace}/{table}/clearClear uploaded table data.
DELETEv1/uploads/{namespace}/{table}Delete an uploaded table.

Usage and Webhooks

MethodPathDescription
GETv1/usageGet API usage.
POSTv1/webhooksCreate a webhook.