You can also upload CSV through the Dune UI by pressing the “create” dropdown.
For working with uploads, keep in mind that:
- File has to be < 200 MB
- Column names in the table can’t start with a special character or digits.
- Private uploads require a Premium subscription.
- If you upload to an existing table name, it will delete the old data and overwite it with your new data. Appends are only supported for the
/create
,/insert
endpoints. - To delete an upload table, you must go to
user settings (dune.com) -> data -> delete
.
Upload via google sheet
To automate the upload of a Google Sheet’s contents to Dune via API, use the following Google Apps Script:- Open your Google Sheet
- Navigate to Extensions → Apps Script
- Replace the script with the code above
- Save and run uploadToDune
- (Optional) For easier execution, you can assign this script to a button in your Google Sheet:
- Click “Insert” in the Google Sheets menu
- Select “Drawing”
- Create a button shape and add text like “Upload to Dune”
- Click “Save and Close”
- Right-click the button and select “Assign script”
- Enter “uploadToDune” as the function name
- Clicking the button will now upload your active sheet’s data to Dune!
Headers
API Key for the service
Query Parameters
Alternative to using the X-Dune-Api-Key header
Body
*/*
payload
The body is of type object
.
Response
OK
The response is of type object
.