API Usage Examples

Below you can find a few example scripts that use our API for various tasks:

Export All Your Queries as Files


Given an API key, it will export all the account queries as simple files on your file system. Can be useful for backups or to sync a git repository.

Poll for Fresh Query Results (including parameters)


This example uses the refresh API to make Redash refresh a query to make sure you get fresh results and then poll the API until a result is ready. Can be used for queries with or without parameters.

Still need help? Contact Us Contact Us