API Quickstart
Get your API key, make your first call, and understand how PredictHQ fits into a production integration.
What you need
Create an API Key
Authorization: Bearer $API_TOKENMake Your First Call
import requests
response = requests.get(
url="https://api.predicthq.com/v1/events/",
headers={
"Authorization": "Bearer $API_TOKEN",
"Accept": "application/json"
},
params={
"place.scope": "5128581", # New York City
"category": "concerts,sports,conferences",
"active.gte": "2026-06-01",
"active.lte": "2026-06-30",
"limit": 10
}
)
print(response.json())How PredictHQ APIs Work Together
What to Do Next
Last updated
Was this helpful?