Explore documentation
Generate client-facing APIs
Get client-facing APIs with JSON, CSV or TSV for your saved queries.
JSON, CSV or TSV
Simply adjust the generated URL to get a different format.
CSV export
curl "https://eu-nbg-2-connect.betterstackdata.com/query/ti1Mweu5FCyTCEIlNNRAYzm1l5rAyL9n.csv"
JSON format
curl "https://eu-nbg-2-connect.betterstackdata.com/query/ti1Mweu5FCyTCEIlNNRAYzm1l5rAyL9n.json"
Pass variables into your saved queries
Specify {{my_variable}}
in your SQL query similarly to:
And set the value of ?my_variable
as a GET
attribute when calling the API.
Pass variable as a GET parameter
curl https://us-east-9-connect.betterstackdata.com/query/ETz5pa7597O8Sc3S3Zd9vGqilr9yrXsY.json?my_variable=my_value
Optimized for high request throughput
Better Stack Warehouse client-facing APIs are optimized for many HTTP requests. They will survive your website making it to the homepage of Reddit.