How to export data out of Dune
This guide provides a step-by-step process on exporting data from Dune, either through CSV downloads or the API.
You can export data from Dune using two primary methods. Each offers different capabilities and file formats:
Before you start exporting data from Dune, it’s essential to understand how credits are consumed during the export process. Each export action, whether through CSV downloads or the API, deducts credits from your account based on the amount of data and the method used.
For a comprehensive overview of how credits work in Dune, please refer to our detailed guide on the credit system
For more details on each plan, visit our pricing page.
Rate limits determine how frequently you can initiate data exports and at what volume. For detailed information on adjusting your export activities to stay within these limits while managing your credits efficiently, refer to our API rate limits guide.
Begin by pinpointing the dataset or query result you wish to export. For instance, given the recent buzz around Friend.Tech, you might want to export the results from this query: https://dune.com/queries/2945343.
Ensure you have an API key. If not, generate one:
For this guide, we’ll focus on exporting data using the ‘get latest query result’ endpoint. Here’s a Python example:
First, create a .env file with the API key you just created.
There are multiple methods to export data via the API, and it’s possible to get data in various formats like JSON and CSV. You can even integrate the data with Google Sheets. For a comprehensive guide, refer to this page.
How to export data out of Dune
This guide provides a step-by-step process on exporting data from Dune, either through CSV downloads or the API.
You can export data from Dune using two primary methods. Each offers different capabilities and file formats:
Before you start exporting data from Dune, it’s essential to understand how credits are consumed during the export process. Each export action, whether through CSV downloads or the API, deducts credits from your account based on the amount of data and the method used.
For a comprehensive overview of how credits work in Dune, please refer to our detailed guide on the credit system
For more details on each plan, visit our pricing page.
Rate limits determine how frequently you can initiate data exports and at what volume. For detailed information on adjusting your export activities to stay within these limits while managing your credits efficiently, refer to our API rate limits guide.
Begin by pinpointing the dataset or query result you wish to export. For instance, given the recent buzz around Friend.Tech, you might want to export the results from this query: https://dune.com/queries/2945343.
Ensure you have an API key. If not, generate one:
For this guide, we’ll focus on exporting data using the ‘get latest query result’ endpoint. Here’s a Python example:
First, create a .env file with the API key you just created.
There are multiple methods to export data via the API, and it’s possible to get data in various formats like JSON and CSV. You can even integrate the data with Google Sheets. For a comprehensive guide, refer to this page.