Comment on page
This article describes how to quickly create an access token, view and replicate a Streamlit demo app and explore our APIs.
- 2.Select "New Client" and fill in the required information.
- 3.Make sure to keep a copy of your new Client Secret as this cannot be shown to you again.
- 4.Use the new Client Secret to create a new Token.
- 5.Make sure to keep a copy of your new API Token as this cannot be shown to you again.
Now you can use the new API Access Token in the
Authorizationheader of your API requests as in the example below:
response = requests.get(
"Authorization": "Bearer $ACCESS_TOKEN",
"q": "taylor swift"
How to set up and access PredictHQ APIs
To demonstrate how quick and easy it is to build extremely powerful apps using our APIs, we put together some Streamlit demos. All the code is available on GitHub and we encourage you to take the code, modify it, and use your own locations of interest to demo our APIs internally to your team or to simply better understand our technology.
Below is a guide to point you in the right direction if you're new to the PredictHQ APIs:
Aggregated daily-level features ready for use by ML models.
Customers use this API to very quickly get features that can be used by their forecasting (and other) machine-learning models.
This API removes all of the hard, time-consuming work of aggregating the individual events from Events API.
Suggested Radius API
Takes the guesswork out of working out a suitable radius around your location when searching for events.
Customers use this API to more accurately work out a suitable radius around their stores/businesses. Different types of events affect different types of businesses nearer and further away depending on the type.
We strongly recommend using Suggested Radius API for each of your locations to remove the guesswork and improve the accuracy.