API Quickstart
This article describes how to quickly create an access token, view and replicate a Streamlit demo app and explore our APIs.
What you need:
Create an Access Token
Access Events API
import requests
response = requests.get(
url="https://api.predicthq.com/v1/events/",
headers={
"Authorization": "Bearer $ACCESS_TOKEN",
"Accept": "application/json"
},
params={
"q": "taylor swift"
}
)
print(response.json())Streamlit Demo Apps
Streamlit Demo AppsExplore the API
Last updated
Was this helpful?