Supporting REST API as DataSource

Is there currently a DataSource which allows us to periodically query a RESTful API endpoint, e.g. AWS API Gateway, and displayed the resulting data on the Dashboard.

If no would it be possible to write one ? Which query_runner would be the closes to start from and
modify ?

Many thanks

Technical details:

  • Redash Version: 8

Hi, @ttydash

I think Python Datasource or Script Datasource will suit you if you are using Redash as self-hosted.

Or you can create your own Datasource.

1 Like

Hi,
Thank you for your response. I think I’m missing something but how can I use the Python or Script Datasource ? There doesn’t seem to be an entry from “New Data Source” on the hosted website.
Do you have a documentation link on using Python Datasource ?

Thanks

Hi, @ttydash

Unfortunately. hosted Redash doesn’t support these data sources.
https://redash.io/help/data-sources/setup/supported-data-sources

I guess you have another option. It’s called JSON data source.
https://redash.io/help/data-sources/setup/json

Thanks,

1 Like

In most cases, the JSON datasource should be enough to query REST APIs. This is what it was built for.

1 Like