PredictHQ’s Demand Intelligence APIs

Make your forecasts and operations more real world aware with our APIs built for scale, speed and accuracy. PredictHQ provides options for different API access points to suit your needs, from a featurized API to build models faster to a granular event API for better explainability.
Pick your API

What are your business needs?

Depending on what you are looking for, we’ll make sure we get you set up with the right API to start getting value out of PredictHQ’s demand intelligence as soon as possible.

Event API

Access to individual event data

Events vary in type, size, location, duration and impact. They also frequently cluster, creating outsize impact. We aggregate and verify millions of events so data science teams have enough high-quality data to identify correlation between demand spikes and events, unlocking new opportunities.
import requests
response = requests.get(
    url="https://api.predicthq.com/v1/events/",
    headers={
      "Authorization": "Bearer $ACCESS_TOKEN",
      "Accept": "application/json"
    },
    params={
        "id": "e5c55724e854289204"
    }
)
print(response.json())
Features API

Save time with prebuilt intelligence and features

With the Features API, no need to build complex data handling systems or build features on your own. We handle the post processing work so you can focus on enabling your teams to extract value from event data rapidly. You can insert directly into your forecasting models.
import requests
data = {
    "active": {
        "gte": "2019-11-28",
        "lte": "2019-11-29"
    },
    "location": {
        "place_id": [
            5224323,
            5811704,
            4887398
        ]
    },
    "phq_attendance_conferences": {
        "stats": [
            "min",
            "max"
        ]
    },
    "phq_attendance_sports": True,
    "phq_attendance_concerts": True,
    "phq_rank_public_holidays": True
}
response = requests.post(
    url="https://api.predicthq.com/v1/features",
    headers={
      "Authorization": "Bearer $ACCESS_TOKEN",
      "Accept": "application/json"
    },
    json=data
)
print(response.json())
Live TV Events API

Access to historical and predicted viewership data

Better predict surges in demand caused by televised events such as sports. Filter by city or county to access relevant data rather than by broad designated market areas (DMAs) used by other providers. Access to county-level viewership data enables you to confidently forecast at a more granular level, such as for individual stores if you’re a quick-service restaurant or grocery store.
import requests

response = requests.get(
    url="https://api.predicthq.com/v1/broadcasts/",
    headers={
        "Accept": "application/json",
        "Authorization": "Bearer $ACCESS_TOKEN"
    },
    params={
        "location.place_id": "5368381,5391832",
        "start.gte": "2020-11-01",
        "start.lte": "2020-11-30",
        "start.tz": "America/Los_Angeles"
    }
)

print(response.json())
Forecast ready Features

Regardless of the API you choose, get up and running quickly

We’ve created Jupyter notebooks on how to integrate our 19 (and counting) event categories into your models to help your Data Science teams get up and running quickly. It includes guides to using our APIs and data with common Data Science tools and libraries in Python.
Jupyter Notebook Screenshots

Create a new access token via API clients

Customer Stories

Demand intelligence gets results

Our customers include leading companies across retail, transport, accommodation and financial service sectors. They use our intelligent event data for labor optimization, demand forecasting, dynamic pricing, supply chain optimization and more.
Don't underestimate how much effort it takes to work with event data... Being able to rely on a company whose sole purpose is to remove the ambiguity of event data has been game-changing for us.
Read Legion’s Story

Which plan is right for me?

From a 14-day free developer plan to fully customized subscriptions plans, our pricing is tailored to fit your needs.

Developer

Test our API for FREE for 14 days

Future event visibility
Historical event visibility
Events returned per page/request
Maximum pages
Global Locations
Commercial use allowed
Display without attribution
Caching allowed
Priority support

Premium

Priced for your needs as you scale

Premium

Increase your limits to get the data your business needs. We'll partner with you to find the right solution.

Commercial use allowed
Display without attribution
Caching allowed
Priority support

You can’t prepare for what you don’t see coming

Harness the power of demand intelligence

Knowing the impact of demand causal factors like events will transform your business. The American Society of Hematology has a $45M estimated economic impact — and that's only one event in one city.

  • 0
    data points enriching
  • 0
    events across
  • 0
    cities, accessed via
    1 API

Get Started

Contact our data science experts to find out the best solutions for your business. We'll get back to you within 1 business day.

Talk to an Expert

Products/Features I'm Interested In *