Use this GitHub template to create your own repository, then follow these steps:
Generate an API key from your Dune account and put that in both your .env file and github action secrets (name it DUNE_API_KEY). You can create a key under your Dune team settings. The api key must be from a plus plan for this repo to work.
Type your intended query ids into the queries.yml file. The id can be found from the link https://dune.com/queries/<query_id>/.... If you’re creating this for a dashboard, go to the dashboard you want to create a repo and click on the “github” button in the top right of your dashboard to see the query ids.
Then, run pull_from_dune.py to bring in all queries into /query_{id}.sql files within the /queries folder. Directions to setup and run this python script are below.
Make any changes you need to directly in the repo. Any time you push a commit to MAIN branch, push_to_dune.py will save your changes into Dune directly. You can run this manually too if you want.
For CSVs, update the files in the /uploads folder. upload_to_dune.py will run on commit, or can be run manually. The table name in Dune will be dune.team_name.dataset_<filename>.
You can press the “github” button on your own dashboard to get a list of query ids, or you can just paste in any query ids yourself. The query id comes from the url, dune.com/queries/<query_id>/<visualization_id>.
Anytime you commit a change to the repo, it will now update your queries in the app too. You can run pull_from_dune.py anytime to update the repo with any changes from the app.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dune Docs","description":"Official documentation for building with Dune's data platform, query engine, and API.","colors":{"primary":"#0f0f15","light":"#ffffff","dark":"#0f0f15"},"logo":{"light":"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-light.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=6fec71d5070d0923eb2924321131b1c2","dark":"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-dark.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=2501750983cc95aa72d40acc6f005bd9","href":"https://docs.dune.com/"},"navbar":{"links":[{"href":"mailto:support@dune.com","label":"Support"}],"primary":{"type":"button","label":"Start building","href":"https://dune.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/dune-analytics","github":"https://github.com/duneanalytics","x":"https://x.com/dune","telegram":"https://t.me/dune_updates","youtube":"https://www.youtube.com/@dunecom"}},"seo":{"metatags":{"title":"Dune Docs","description":"Official documentation for building with Dune's data platform, query engine, and API.","og:site_name":"Dune Docs","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"family":"Geist"},"integrations":{"amplitude":{"apiKey":"e76ce253e6eaa36e3be8e6872101e33a"},"ga4":{"measurementId":"G-H1G057R0KN"},"gtm":{"tagId":"GTM-P46XP3Z5"}},"contextual":{"options":["chatgpt","claude","copy","view"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dune","hasAudioNarration":false,"actualSubdomain":"dune","customDomains":["docs.dune.com"],"gitSource":{"type":"github","owner":"duneanalytics","repo":"dune-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb20b07ebcfcb7ce776407","collectionId":"e93bc116-f70a-4d5b-a628-3a2361e85f84","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb20b07ebcfcb7ce776407"},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adb20b07ebcfcb7ce776407","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"default","tag":"Data Catalog","count":1405},{"language":"default","tag":"EVM Networks","count":895},{"language":"default","tag":"Decoded","count":373},{"language":"default","tag":"Raw","count":326},{"language":"default","tag":"Non-EVM Networks","count":270},{"language":"default","tag":"Curated Data","count":156},{"language":"default","tag":"Curated","count":129},{"language":"default","tag":"DEX","count":89},{"language":"default","tag":"THORChain","count":72},{"language":"default","tag":"API Reference","count":67}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"#navigation-items .sidebar-group>li>a,#search-bar-entry,#sidebar-group>li>a,#topbar-cta-button>a>span,.chat-assistant-floating-input>div{border-radius:9999px}.dark #topbar-cta-button>a>span{background-color:#fff}.dark #topbar-cta-button>a>span+div>span,.dark #topbar-cta-button>a>span+div>svg{color:#0f0f15}#page-context-menu>button:first-child{border-top-left-radius:9999px;border-bottom-left-radius:9999px}#page-context-menu>button:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.cta-links a,.cta-links a:active,.cta-links a:hover,.cta-links a:visited,.note-container a,[class*=Note] a,[class*=callout] a,[class*=note] a,aside a,div[class*=admonition] a,div[role=note] a{text-decoration-color:#fff!important;text-decoration-thickness:2px!important;text-decoration-line:underline!important}table a{text-decoration:underline!important;text-underline-offset:2px;transition:opacity .2s ease}table a:hover{opacity:.7}"}],"page":{"pagePath":"api-reference/quickstart/queries-eg","slug":"/api-reference/quickstart/queries-eg","pageMetadata":{"title":"Query Management","description":null,"href":"/api-reference/quickstart/queries-eg"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`In this quickstart, we will walk through how to turn any dashboard (or set of queries) into a GitHub repository that uses our query management API.`}),`\n`,_jsx(Heading,{level:`3`,id:`set-up-a-new-repo-from-the-github-template`,children:`Set up a new repo from the GitHub template`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.a,{href:`https://github.com/duneanalytics/DuneQueryRepo`,children:`this GitHub template`}),` to create your own repository, then follow these steps:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Generate an API key from your Dune account and put that in both your `,_jsx(_components.code,{children:`.env`}),` file and `,_jsx(_components.a,{href:`https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository`,children:`github action secrets`}),` (name it `,_jsx(_components.code,{children:`DUNE_API_KEY`}),`). You can create a key under your Dune team settings. `,_jsx(_components.em,{children:`The api key must be from a plus plan for this repo to work.`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Type your intended query ids into the `,_jsx(_components.code,{children:`queries.yml`}),` file. The id can be found from the link `,_jsx(_components.code,{children:`https://dune.com/queries/\u003cquery_id>/...`}),`. If you’re creating this for a dashboard, go to the dashboard you want to create a repo and click on the “github” button in the top right of your dashboard to see the query ids.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Then, run `,_jsx(_components.code,{children:`pull_from_dune.py`}),` to bring in all queries into `,_jsx(_components.code,{children:`/query_{id}.sql`}),` files within the `,_jsx(_components.code,{children:`/queries`}),` folder. Directions to setup and run this python script are below.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`updating-queries-or-csv-tables`,children:`Updating Queries or CSV Tables`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Make any changes you need to directly in the repo. Any time you push a commit to MAIN branch, `,_jsx(_components.code,{children:`push_to_dune.py`}),` will save your changes into Dune directly. You can run this manually too if you want.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For CSVs, update the files in the `,_jsx(_components.code,{children:`/uploads`}),` folder. `,_jsx(_components.code,{children:`upload_to_dune.py`}),` will run on commit, or can be run manually. The table name in Dune will be `,_jsx(_components.code,{children:`dune.team_name.dataset_\u003cfilename>`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can press the “github” button on your own dashboard to get a list of query ids, or you can just paste in any query ids yourself. The query id comes from the url, `,_jsx(_components.code,{children:`dune.com/queries/\u003cquery_id>/\u003cvisualization_id>`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Anytime you commit a change to the repo, it will now update your queries in the app too. You can run `,_jsx(_components.code,{children:`pull_from_dune.py`}),` anytime to update the repo with any changes from the app.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Query Management","description":null,"href":"/api-reference/quickstart/queries-eg"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set up a new repo from the GitHub template","slug":"set-up-a-new-repo-from-the-github-template","depth":3,"children":[]},{"title":"Updating Queries or CSV Tables","slug":"updating-queries-or-csv-tables","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dune/3dc9988ffc23fc85/favicon-switcher.js","/_mintlify/custom/dune/11037b9cc10a9f51/amplitude.js"],"subdomain":"dune","siteName":"Dune Docs","title":"Query Management - Dune Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-11T11:33:20.410Z","originalFileLocation":"api-reference/quickstart/queries-eg.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Official documentation for building with Dune\u0026#x27;s data platform, query engine, and API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dune Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query Management - Dune Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Official documentation for building with Dune\u0026#x27;s data platform, query engine, and API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dune Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dune.com/api-reference/quickstart/queries-eg\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dune.mintlify.app/_mintlify/api/og/v2?division=Quickstart\u0026amp;title=Query+Management\u0026amp;theme=d9c0cb23e9b44d10ee46351c\u0026amp;signature=a913875bed8f86e0720dd03e60fcffeb2052c8b1d0947accdf4108ae6288195d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Query Management - Dune Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Official documentation for building with Dune\u0026#x27;s data platform, query engine, and API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dune.mintlify.app/_mintlify/api/og/v2?division=Quickstart\u0026amp;title=Query+Management\u0026amp;theme=d9c0cb23e9b44d10ee46351c\u0026amp;signature=a913875bed8f86e0720dd03e60fcffeb2052c8b1d0947accdf4108ae6288195d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dune Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f0f15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dune.com/api-reference/quickstart/queries-eg\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/quickstart/queries-eg.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dune.com/#organization\",\"name\":\"Dune Docs\",\"url\":\"https://docs.dune.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-light.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=6fec71d5070d0923eb2924321131b1c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dune.com#website\",\"name\":\"Dune Docs\",\"url\":\"https://docs.dune.com\",\"publisher\":{\"@id\":\"https://docs.dune.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dune.com/api-reference/quickstart/queries-eg#webpage\",\"url\":\"https://docs.dune.com/api-reference/quickstart/queries-eg\",\"name\":\"Query Management\",\"dateModified\":\"2026-09-11T11:33:20.410Z\",\"isPartOf\":{\"@id\":\"https://docs.dune.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dune.com/api-reference/quickstart/queries-eg#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dune.com/api-reference/quickstart/queries-eg#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Client SDKs\",\"item\":\"https://docs.dune.com/api-reference/quickstart/results-eg\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart\",\"item\":\"https://docs.dune.com/api-reference/quickstart/results-eg\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Query Management\",\"item\":\"https://docs.dune.com/api-reference/quickstart/queries-eg\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dune.com/api-reference/quickstart/queries-eg#article\",\"headline\":\"Query Management\",\"name\":\"Query Management\",\"url\":\"https://docs.dune.com/api-reference/quickstart/queries-eg\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dune.com/api-reference/quickstart/queries-eg#webpage\"},\"dateModified\":\"2026-09-11T11:33:20.410Z\",\"publisher\":{\"@id\":\"https://docs.dune.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dune.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dune Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dune Docs","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"Data Catalog","pages":[{"title":"Data Catalog","href":"/data-catalog/overview"}]},{"tab":"API Reference","pages":[{"group":"Introduction","pages":[{"title":"Overview","icon":"connectdevelop","href":"/api-reference/overview/introduction"},{"title":"Getting Started","icon":"flag-checkered","href":"/api-reference/overview/getting-started"},{"title":"Authentication","icon":"user","href":"/api-reference/overview/authentication"},{"title":"Troubleshooting Errors","icon":"square-question","href":"/api-reference/overview/troubleshooting"}]},{"group":"Quick Start","pages":[{"title":"Analyze Onchain Data","icon":"chart-line","href":"/api-reference/apis/quickstart-analyze"},{"title":"Build Custom Dashboards \u0026 Reports","icon":"desktop","href":"/api-reference/apis/quickstart-dashboards"}]},{"group":"Executions and Results","pages":[{"title":"Overview","icon":"star","href":"/api-reference/executions/execution-object"},{"title":"Execute SQL","openapi":"POST /v1/sql/execute","href":"/api-reference/executions/endpoint/execute-sql"},{"title":"Execute Query","openapi":"POST /v1/query/{query_id}/execute","href":"/api-reference/executions/endpoint/execute-query"},{"title":"Execute Query Pipeline","openapi":"POST /v1/query/{query_id}/pipeline/execute","href":"/api-reference/executions/endpoint/execute-query-pipeline"},{"title":"Get Execution Status","openapi":"GET /v1/execution/{execution_id}/status","href":"/api-reference/executions/endpoint/get-execution-status"},{"title":"Get Execution Result","openapi":"GET /v1/execution/{execution_id}/results","href":"/api-reference/executions/endpoint/get-execution-result"},{"title":"Get Execution Result in CSV","openapi":"GET /v1/execution/{execution_id}/results/csv","href":"/api-reference/executions/endpoint/get-execution-result-csv"},{"title":"Get Latest Query Result","openapi":"GET /v1/query/{query_id}/results","href":"/api-reference/executions/endpoint/get-query-result"},{"title":"Get Latest Query Result in CSV","openapi":"GET /v1/query/{query_id}/results/csv","href":"/api-reference/executions/endpoint/get-query-result-csv"},{"title":"Cancel Execution","openapi":"POST /v1/execution/{execution_id}/cancel","href":"/api-reference/executions/endpoint/cancel-execution"}]},{"group":"Query Management","pages":[{"title":"Overview","icon":"star","href":"/api-reference/queries/endpoint/query-object"},{"title":"List Queries","openapi":"GET /v1/queries","href":"/api-reference/queries/endpoint/list"},{"title":"Get Query Pipeline","openapi":"GET /v1/query/{query_id}/pipeline","href":"/api-reference/queries/endpoint/get-query-pipeline"},{"title":"Create Query","openapi":"POST /v1/query","href":"/api-reference/queries/endpoint/create"},{"title":"Update Query","openapi":"PATCH /v1/query/{queryId}","href":"/api-reference/queries/endpoint/update"},{"title":"Read Query","openapi":"GET /v1/query/{queryId}","href":"/api-reference/queries/endpoint/read"},{"title":"Archive Query","openapi":"POST /v1/query/{queryId}/archive","href":"/api-reference/queries/endpoint/archive"},{"title":"Unarchive Query","openapi":"POST /v1/query/{queryId}/unarchive","href":"/api-reference/queries/endpoint/unarchive"},{"title":"Private Query","openapi":"POST /v1/query/{queryId}/private","href":"/api-reference/queries/endpoint/private"},{"title":"Unprivate Query","openapi":"POST /v1/query/{queryId}/unprivate","href":"/api-reference/queries/endpoint/unprivate"}]},{"group":"Data Uploads","pages":[{"title":"Overview","icon":"star","href":"/api-reference/tables/endpoint/overview"},{"title":"List Uploaded Tables","openapi":"GET /v1/uploads","href":"/api-reference/tables/endpoint/uploads-list"},{"title":"Create Table","openapi":"POST /v1/uploads","href":"/api-reference/tables/endpoint/uploads-create"},{"title":"Insert Data","openapi":"POST /v1/uploads/{namespace}/{table_name}/insert","href":"/api-reference/tables/endpoint/uploads-insert"},{"title":"Upload CSV","openapi":"POST /v1/uploads/csv","href":"/api-reference/tables/endpoint/uploads-csv"},{"title":"Clear Data","openapi":"POST /v1/uploads/{namespace}/{table_name}/clear","href":"/api-reference/tables/endpoint/uploads-clear"},{"title":"Delete Table","openapi":"DELETE /v1/uploads/{namespace}/{table_name}","href":"/api-reference/tables/endpoint/uploads-delete"},{"title":"Migration Guide","icon":"arrow-right","href":"/api-reference/tables/endpoint/migration"}]},{"group":"Datasets","pages":[{"title":"Overview","icon":"star","href":"/api-reference/datasets/introduction"},{"title":"List Datasets","openapi":"GET /v1/datasets","href":"/api-reference/datasets/endpoint/list"},{"title":"Get Dataset","openapi":"GET /v1/datasets/{slug}","href":"/api-reference/datasets/endpoint/get"},{"title":"Search Datasets","openapi":"POST /v1/datasets/search","href":"/api-reference/datasets/endpoint/search"},{"title":"Search Datasets by Contract Address","openapi":"POST /v1/datasets/search-by-contract","href":"/api-reference/datasets/endpoint/search-by-contract"}]},{"group":"Contract Decoding","pages":[{"title":"Overview","icon":"star","href":"/api-reference/contracts/introduction"},{"title":"Submit Contracts for Decoding","openapi":"POST /v1/contracts/decode","href":"/api-reference/contracts/endpoint/decode"},{"title":"List Contract Submissions","openapi":"GET /v1/contracts/submissions","href":"/api-reference/contracts/endpoint/list"}]},{"group":"Materialized Views","pages":[{"title":"Overview","icon":"star","href":"/api-reference/materialized-views/overview"},{"title":"Get Materialized View","openapi":"GET /v1/materialized-views/{name}","href":"/api-reference/materialized-views/get"},{"title":"Upsert Materialized View","openapi":"POST /v1/materialized-views","href":"/api-reference/materialized-views/create"},{"title":"Delete Materialized View","openapi":"DELETE /v1/materialized-views/{name}","href":"/api-reference/materialized-views/delete"},{"title":"List Materialized Views","openapi":"GET /v1/materialized-views","href":"/api-reference/materialized-views/list"},{"title":"Refresh Materialized View","openapi":"POST /v1/materialized-views/{name}/refresh","href":"/api-reference/materialized-views/refresh"}]},{"group":"Pipelines","pages":[{"title":"Overview","icon":"star","href":"/api-reference/pipelines/overview"},{"title":"Execute Pipeline","openapi":"POST /v1/pipelines/execute","href":"/api-reference/pipelines/endpoint/execute-pipeline"},{"title":"Get Pipeline Execution Status","openapi":"GET /v1/pipelines/executions/{pipeline_execution_id}/status","href":"/api-reference/pipelines/endpoint/get-pipeline-status"}]},{"group":"Account Management","pages":[{"title":"Overview","icon":"star","href":"/api-reference/usage/overview"},{"title":"Get Usage","openapi":"POST /v1/usage","href":"/api-reference/usage/endpoint/get-usage"}]},{"group":"Post-processing","pages":[{"title":"Result Filtering","icon":"filter","href":"/api-reference/executions/filtering"},{"title":"Pagination","icon":"list-ol","href":"/api-reference/executions/pagination"},{"title":"Sorting","icon":"arrow-down-arrow-up","href":"/api-reference/executions/sorting"},{"title":"Sampling","icon":"dice","href":"/api-reference/executions/sampling"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","icon":"webhook","iconType":"solid","href":"/api-reference/webhooks/webhook"}]},{"group":"Client SDKs","pages":[{"group":"Quickstart","pages":[{"title":"Execution \u0026 Results","description":null,"href":"/api-reference/quickstart/results-eg"},{"title":"Query Management","href":"/api-reference/quickstart/queries-eg"},{"title":"Tables Management","description":null,"href":"/api-reference/quickstart/tables-eg"}]},{"title":"Python","icon":"python","href":"/api-reference/sdks/python"},{"title":"TypeScript","icon":"js","href":"/api-reference/sdks/typescript"},{"title":"Go","icon":"golang","href":"/api-reference/sdks/go"}]},{"group":"Resources","pages":[{"title":"Rate Limits","icon":"wave-pulse","href":"/api-reference/overview/rate-limits"},{"title":"Billing","icon":"file-invoice-dollar","href":"/api-reference/overview/billing"},{"title":"FAQ","icon":"message-question","href":"/api-reference/overview/faq"}]}]},{"tab":"SQL Query Engine","pages":[{"title":"SQL Query Engine","href":"/query-engine/overview"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/credits-billing/overview"}]}]},"title":"Query Management - Dune Docs","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":[],"chunks":[]}