For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get ML Features

Prebuilt event-based features for Machine Learning models.

Access prebuilt event-based Machine Learning features that will take your forecast models and results to the next level, fast.

We've built up years of expertise in transforming raw event data into meaningful demand signals. Across industries, we’ve consistently seen that naïve aggregation produces noise rather than uplift. The Features API encapsulates that experience - delivering proven, engineered signals that improve forecast accuracy without the heavy lifting.

Get ML Features

post

Returns aggregated ML-ready features for the specified location and date range.

Returns pre-built ML-ready features for the specified location and date range, aggregated per day or per week. Features are opt-in: only features included in the request body are returned.

Beam (recommended): Provide a beam object with an analysis_id to automatically derive location, interval, and feature selection from a Beam analysis. This is the recommended approach. When beam.analysis_id is provided, you must not specify location, interval, or individual features separately — these are determined by the analysis and the request will be rejected if they are included.

Manual configuration: If not using Beam, location must be specified via location.geo (lat/lon + radius), location.place_id, or location.saved_location_id, and features must be explicitly requested.

Feature families: phq_attendance_*, phq_impact_*, phq_spend_*, and phq_viewership_* features return statistical summaries (count, sum, min, max, avg, median, std_dev) — pass true for defaults (count and sum), or a criteria object to customise stats and filter by phq_rank or local_rank. phq_rank_* features return a rank_levels object (counts bucketed into 5 severity levels) and are requested by setting the field to true.

Date range (active) is required in all cases and uses local time. Multi-day occurrences are included for each day they are active within the range. Results are paginated with offset and limit, and can be returned as JSON or CSV via the Accept header.

Authorizations
AuthorizationstringRequired

Enter your PredictHQ API key. The Bearer prefix is added automatically.

When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating

Query parameters
offsetintegerOptional

Offset the results.

Default: 0
limitintegerOptional

Limit the number of results.

Default: 10
Header parameters
acceptstring · enumOptional

Receive results in JSON or CSV by specifying the appropriate Accept header. Supported values:

        - application/json

        - text/csv
Default: application/jsonPossible values:
Body
intervalstring · enumOptional

Aggregation interval. Must not be specified when beam.analysis_id is provided — the interval is derived from the Beam analysis and the request will be rejected if both are included.

Possible values:

  • day (default) for daily aggregation
  • week for weekly aggregation
Default: dayPossible values:
week_start_daystring · enumOptional

The weekday to be treated as the start of the week.

Possible values:

  • monday (default)
  • tuesday
  • wednesday
  • thursday
  • friday
  • saturday
  • sunday

Only applicable when interval is set to week. When beam.analysis_id is provided, the interval and week start day are derived from the Beam analysis.

Default: mondayPossible values:
phq_attendance_academic_graduationany ofOptional

Academic - Graduation

booleanOptional
or
phq_attendance_academic_socialany ofOptional

Academic - Social

booleanOptional
or
phq_attendance_communityany ofOptional

Community

booleanOptional
or
phq_attendance_concertsany ofOptional

Concerts

booleanOptional
or
phq_attendance_conferencesany ofOptional

Conferences

booleanOptional
or
phq_attendance_exposany ofOptional

Expos

booleanOptional
or
phq_attendance_festivalsany ofOptional

Festivals

booleanOptional
or
phq_attendance_performing_artsany ofOptional

Performing Arts

booleanOptional
or
phq_attendance_sportsany ofOptional

Sports

booleanOptional
or
phq_attendance_school_holidaysany ofOptional

School Holidays

booleanOptional
or
phq_attendance_community_accommodationany ofOptional

Community accommodation impact

booleanOptional
or
phq_attendance_concerts_accommodationany ofOptional

Concerts accommodation impact

booleanOptional
or
phq_attendance_conferences_accommodationany ofOptional

Conferences accommodation impact

booleanOptional
or
phq_attendance_expos_accommodationany ofOptional

Expos accommodation impact

booleanOptional
or
phq_attendance_festivals_accommodationany ofOptional

Festivals accommodation impact

booleanOptional
or
phq_attendance_performing_arts_accommodationany ofOptional

Performing Arts accommodation impact

booleanOptional
or
phq_attendance_sports_accommodationany ofOptional

Sports accommodation impact

booleanOptional
or
phq_attendance_community_hospitalityany ofOptional

Community hospitality impact

booleanOptional
or
phq_attendance_concerts_hospitalityany ofOptional

Concerts hospitality impact

booleanOptional
or
phq_attendance_conferences_hospitalityany ofOptional

Conferences hospitality impact

booleanOptional
or
phq_attendance_expos_hospitalityany ofOptional

Expos hospitality impact

booleanOptional
or
phq_attendance_festivals_hospitalityany ofOptional

Festivals hospitality impact

booleanOptional
or
phq_attendance_performing_arts_hospitalityany ofOptional

Performing Arts hospitality impact

booleanOptional
or
phq_attendance_sports_hospitalityany ofOptional

Sports hospitality impact

booleanOptional
or
phq_attendance_community_retailany ofOptional

Community Retail impact

booleanOptional
or
phq_attendance_concerts_retailany ofOptional

Concerts Retail impact

booleanOptional
or
phq_attendance_conferences_retailany ofOptional

Conferences Retail impact

booleanOptional
or
phq_attendance_expos_retailany ofOptional

Expos Retail impact

booleanOptional
or
phq_attendance_festivals_retailany ofOptional

Festivals Retail impact

booleanOptional
or
phq_attendance_performing_arts_retailany ofOptional

Performing Arts Retail impact

booleanOptional
or
phq_attendance_sports_retailany ofOptional

Sports Retail impact

booleanOptional
or
phq_rank_daylight_savingsbooleanOptional

Daylight Savings
Default: False

phq_rank_health_warningsbooleanOptional

Health Warnings
Default: False

phq_rank_observancesbooleanOptional

Observances
Default: False

phq_rank_public_holidaysbooleanOptional

Public Holidays
Default: False

phq_rank_school_holidaysbooleanOptional

School Holidays
Default: False

phq_rank_politicsbooleanOptional

Politics
Default: False

phq_rank_academic_sessionbooleanOptional

Academic - Session
Default: False

phq_rank_academic_exambooleanOptional

Academic - Exam
Default: False

phq_rank_academic_holidaybooleanOptional

Academic - Holiday
Default: False

phq_impact_observancesany ofOptional

Observances

booleanOptional
or
phq_impact_public_holidaysany ofOptional

Public Holidays

booleanOptional
or
phq_impact_school_holidaysany ofOptional

School Holidays

booleanOptional
or
phq_impact_academic_examany ofOptional

Academic

booleanOptional
or
phq_impact_academic_holidayany ofOptional

Academic

booleanOptional
or
phq_impact_academic_sessionany ofOptional

Academic

booleanOptional
or
phq_impact_observances_accommodationany ofOptional

Observances (Industry: Accommodation)

booleanOptional
or
phq_impact_observances_hospitalityany ofOptional

Observances (Industry: Hospitality/Food & Beverage)

booleanOptional
or
phq_impact_observances_retailany ofOptional

Observances (Industry: Retail)

booleanOptional
or
phq_impact_public_holidays_accommodationany ofOptional

Public Holidays (Industry: Accommodation)

booleanOptional
or
phq_impact_public_holidays_hospitalityany ofOptional

Public Holidays (Industry: Hospitality/Food & Beverage*)

booleanOptional
or
phq_impact_public_holidays_retailany ofOptional

Public Holidays (Industry: Retail)

booleanOptional
or
phq_impact_school_holidays_retailany ofOptional

School Holidays (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_air_quality_retailany ofOptional

Severe Weather - Air Quality (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_blizzard_retailany ofOptional

Severe Weather - Blizzard (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_cold_wave_retailany ofOptional

Severe Weather - Cold Wave - (All) (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_cold_wave_snow_retailany ofOptional

Severe Weather - Cold Wave - Snow (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_cold_wave_storm_retailany ofOptional

Severe Weather - Cold Wave - Storm (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_dust_retailany ofOptional

Severe Weather - Dust - (All) (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_dust_storm_retailany ofOptional

Severe Weather - Dust - Storm (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_flood_retailany ofOptional

Severe Weather - Flood (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_heat_wave_retailany ofOptional

Severe Weather - Heat Wave (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_hurricane_retailany ofOptional

Severe Weather - Hurricane (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_thunderstorm_retailany ofOptional

Severe Weather - Thunderstorm (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_tornado_retailany ofOptional

Severe Weather - Tornado (Industry: Severe Weather - Tornado) (Industry: Retail)

booleanOptional
or
phq_impact_severe_weather_tropical_storm_retailany ofOptional

Severe Weather - Tropical Storm (Industry: Retail)

booleanOptional
or
phq_viewership_sportsany ofOptional

Sports - (All)

booleanOptional
or
phq_viewership_sports_american_footballany ofOptional

American Football - (All)

booleanOptional
or
phq_viewership_sports_american_football_ncaa_menany ofOptional

American Football - NCAA Men's

booleanOptional
or
phq_viewership_sports_american_football_nflany ofOptional

American Football - NFL

booleanOptional
or
phq_viewership_sports_auto_racingany ofOptional

Automotive Racing - All

booleanOptional
or
phq_viewership_sports_auto_racing_indy_carany ofOptional

Automotive Racing - Indy Car

booleanOptional
or
phq_viewership_sports_auto_racing_nascarany ofOptional

Automotive Racing - NASCAR

booleanOptional
or
phq_viewership_sports_baseballany ofOptional

Baseball - (All)

booleanOptional
or
phq_viewership_sports_baseball_mlbany ofOptional

Baseball - MLB

booleanOptional
or
phq_viewership_sports_baseball_ncaa_menany ofOptional

Baseball - NCAA Men's

booleanOptional
or
phq_viewership_sports_basketballany ofOptional

Basketball - (All)

booleanOptional
or
phq_viewership_sports_basketball_nbaany ofOptional

Basketball - NBA

booleanOptional
or
phq_viewership_sports_basketball_ncaa_menany ofOptional

Basketball - NCAA Men's

booleanOptional
or
phq_viewership_sports_basketball_ncaa_womenany ofOptional

Basketball - NCAA Women's

booleanOptional
or
phq_viewership_sports_boxingany ofOptional

Boxing - (All)

booleanOptional
or
phq_viewership_sports_golfany ofOptional

Golf - (All)

booleanOptional
or
phq_viewership_sports_golf_mastersany ofOptional

Golf - Masters

booleanOptional
or
phq_viewership_sports_golf_pga_championshipany ofOptional

Golf - PGA Championships

booleanOptional
or
phq_viewership_sports_golf_pga_tourany ofOptional

Golf - PGA Tours

booleanOptional
or
phq_viewership_sports_golf_us_openany ofOptional

Golf - US Open

booleanOptional
or
phq_viewership_sports_horse_racingany ofOptional

Horse Racing - (All)

booleanOptional
or
phq_viewership_sports_horse_racing_belmont_stakesany ofOptional

Horse Racing - Belmont Stakes

booleanOptional
or
phq_viewership_sports_horse_racing_kentucky_derbyany ofOptional

Horse Racing - Kentucky Derby

booleanOptional
or
phq_viewership_sports_horse_racing_preakness_stakesany ofOptional

Horse Racing - Preakness Stakes

booleanOptional
or
phq_viewership_sports_ice_hockeyany ofOptional

Ice Hockey - (All)

booleanOptional
or
phq_viewership_sports_ice_hockey_nhlany ofOptional

Ice Hockey - NHL

booleanOptional
or
phq_viewership_sports_mmaany ofOptional

Mixed Martial Arts - (All)

booleanOptional
or
phq_viewership_sports_mma_ufcany ofOptional

Mixed Martial Arts - UFC

booleanOptional
or
phq_viewership_sports_soccerany ofOptional

Soccer - (All)

booleanOptional
or
phq_viewership_sports_soccer_concacaf_champions_leagueany ofOptional

Soccer - CONCACAF Champions League

booleanOptional
or
phq_viewership_sports_soccer_concacaf_gold_cupany ofOptional

Soccer - CONCACAF Gold Cup

booleanOptional
or
phq_viewership_sports_soccer_copa_america_menany ofOptional

Soccer - COPA America Men's

booleanOptional
or
phq_viewership_sports_soccer_fifa_world_cup_womenany ofOptional

Soccer - FIFA World Cup Women's

booleanOptional
or
phq_viewership_sports_soccer_fifa_world_cup_menany ofOptional

Soccer - FIFA World Cup Men's

booleanOptional
or
phq_viewership_sports_soccer_mlsany ofOptional

Soccer - MLS

booleanOptional
or
phq_viewership_sports_soccer_uefa_champions_league_menany ofOptional

Soccer - UEFA Champions League Men's

booleanOptional
or
phq_viewership_sports_softballany ofOptional

Softball - (All)

booleanOptional
or
phq_viewership_sports_softball_ncaa_womenany ofOptional

Softball - NCAA Women's

booleanOptional
or
phq_viewership_sports_tennisany ofOptional

Tennis - (All)

booleanOptional
or
phq_viewership_sports_tennis_us_openany ofOptional

Tennis - US Open

booleanOptional
or
phq_viewership_sports_tennis_wimbledonany ofOptional

Tennis - Wimbledon

booleanOptional
or
phq_spend_conferencesany ofOptional

Conferences

booleanOptional
or
phq_spend_exposany ofOptional

Expos

booleanOptional
or
phq_spend_sportsany ofOptional

Sports

booleanOptional
or
phq_spend_communityany ofOptional

Community

booleanOptional
or
phq_spend_concertsany ofOptional

Concerts

booleanOptional
or
phq_spend_festivalsany ofOptional

Festivals

booleanOptional
or
phq_spend_performing_artsany ofOptional

Performing Arts

booleanOptional
or
phq_spend_conferences_accommodationany ofOptional

Conferences - Accommodation

booleanOptional
or
phq_spend_expos_accommodationany ofOptional

Expos - Accommodation

booleanOptional
or
phq_spend_sports_accommodationany ofOptional

Sports - Accommodation

booleanOptional
or
phq_spend_community_accommodationany ofOptional

Community - Accommodation

booleanOptional
or
phq_spend_concerts_accommodationany ofOptional

Concerts - Accommodation

booleanOptional
or
phq_spend_festivals_accommodationany ofOptional

Festivals - Accommodation

booleanOptional
or
phq_spend_performing_arts_accommodationany ofOptional

Performing Arts - Accommodation

booleanOptional
or
phq_spend_conferences_hospitalityany ofOptional

Conferences - Hospitality

booleanOptional
or
phq_spend_expos_hospitalityany ofOptional

Expos - Hospitality

booleanOptional
or
phq_spend_sports_hospitalityany ofOptional

Sports - Hospitality

booleanOptional
or
phq_spend_community_hospitalityany ofOptional

Community - Hospitality

booleanOptional
or
phq_spend_concerts_hospitalityany ofOptional

Concerts - Hospitality

booleanOptional
or
phq_spend_festivals_hospitalityany ofOptional

Festivals - Hospitality

booleanOptional
or
phq_spend_performing_arts_hospitalityany ofOptional

Performing Arts - Hospitality

booleanOptional
or
phq_spend_conferences_transportationany ofOptional

Conferences - Transportation

booleanOptional
or
phq_spend_expos_transportationany ofOptional

Expos - Transportation

booleanOptional
or
phq_spend_sports_transportationany ofOptional

Sports - Transportation

booleanOptional
or
phq_spend_community_transportationany ofOptional

Community - Transportation

booleanOptional
or
phq_spend_concerts_transportationany ofOptional

Concerts - Transportation

booleanOptional
or
phq_spend_festivals_transportationany ofOptional

Festivals - Transportation

booleanOptional
or
phq_spend_performing_arts_transportationany ofOptional

Performing Arts - Transportation

booleanOptional
or
Responses
200

Successful Response

countintegerOptional

Total number of results

nextanyOptional

URL to next page

previousanyOptional

URL to previous page

post/v1/features/

Available Features

PHQ Attendance features provide daily-level aggregated stats based on the number of people who we predict will attend events on a given day. This takes into account complications like distributing attendance across multi-day events.

Attended Events Generic Features

Use the generic features in this table if you are not in one of the industries covered by the impact pattern features listed below.

Feature
Description

phq_attendance_academic_graduation

Academic - Graduation

phq_attendance_academic_social

Academic - Social

phq_attendance_community

Community

phq_attendance_concerts

Concerts

phq_attendance_conferences

Conferences

phq_attendance_expos

Expos

phq_attendance_festivals

Festivals

phq_attendance_performing_arts

Performing Arts

phq_attendance_sports

Sports

phq_attendance_school_holidays

School Holidays

Attended Events Impact Pattern Features

Predicted Impact Patterns model the impact of leading days (days before the event), lagging days (days after an event), and the days the event occurs. In the Features API, Impact Patterns are provided as different features with a feature per industry. We have impact pattern features for the accommodation, hospitality (which covers food & beverage including restaurants), and retail industries.

The features above are generic features and the features in the table below are the impact pattern features per industry. For example, if you were in the accommodation industry and wanted a feature for the conferences category you'd use phq_attendance_conferences_accommodation.

Feature
Description

phq_attendance_community_accommodation

Community accommodation impact

phq_attendance_concerts_accommodation

Concerts accommodation impact

phq_attendance_conferences_accommodation

Conferences accommodation impact

phq_attendance_expos_accommodation

Expos accommodation impact

phq_attendance_festivals_accommodation

Festivals accommodation impact

phq_attendance_performing_arts_accommodation

Performing Arts accommodation impact

phq_attendance_sports_accommodation

Sports accommodation impact

phq_attendance_community_hospitality

Community hospitality impact

phq_attendance_concerts_hospitality

Concerts hospitality impact

phq_attendance_conferences_hospitality

Conferences hospitality impact

phq_attendance_expos_hospitality

Expos hospitality impact

phq_attendance_festivals_hospitality

Festivals hospitality impact

phq_attendance_performing_arts_hospitality

Performing Arts hospitality impact

phq_attendance_sports_hospitality

Sports hospitality impact

phq_attendance_community_retail

Community Retail impact

phq_attendance_concerts_retail

Concerts Retail impact

phq_attendance_conferences_retail

Conferences Retail impact

phq_attendance_expos_retail

Expos Retail impact

phq_attendance_festivals_retail

Festivals Retail impact

phq_attendance_performing_arts_retail

Performing Arts Retail impact

phq_attendance_sports_retail

Sports Retail impact

Configuration

You can configure PHQ Attendance features using the options below.

Field
Description

stats object optional

You can optionally configure which fields are calculated for each of these features by providing the list of stats fields you would like.

Default fields are count and sum.

Supported fields are:

  • count

  • sum

  • min

  • max

  • avg

  • median

  • std_dev

E.g.

phq_rank object optional

Filter for events with a PHQ Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

local_rank object optional

Filter for events with a Local Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

PHQ Impact features provide daily-level aggregated stats based on the predicted impact of an event. This takes into account complications like Impact Patterns (leading and lagging effects of an event).

Holidays and Observances Impact Pattern Features

These features include the Predicted Impact Patterns for public holidays and observances. For example, these features will show when people typically arrive and book accommodation before a holiday and if they tend to leave after the holiday. See Predicted Impact Patterns

Feature
Category
Industry

phq_impact_public_holidays

Public Holidays

N/A

phq_impact_public_holidays_accommodation

Public Holidays

Accomodation

phq_impact_public_holidays_hospitality

Public Holidays

Hospitality/Food & Beverage*

phq_impact_public_holidays_retail

Public Holidays

Retail

phq_impact_observances

Observances

N/A

phq_impact_observances_accommodation

Observances

Accomodation

phq_impact_observances_retail

Observances

Retail

phq_impact_observances_hospitality

Observances

Hospitality/Food & Beverage

phq_impact_school_holidays

School Holidays

N/A

phq_impact_school_holidays_retail

School Holidays

Retail

phq_impact_academic_exam

Academic

N/A

phq_impact_academic_holiday

Academic

N/A

phq_impact_academic_session

Academic

N/A

Severe Weather Impact Features

Currently supported industries are: Retail.

Feature
Description
Industry

phq_impact_severe_weather_air_quality_retail

Severe Weather - Air Quality

Retail

phq_impact_severe_weather_blizzard_retail

Severe Weather - Blizzard

Retail

phq_impact_severe_weather_cold_wave_retail

Severe Weather - Cold Wave - (All)

Retail

phq_impact_severe_weather_cold_wave_snow_retail

Severe Weather - Cold Wave - Snow

Retail

phq_impact_severe_weather_cold_wave_storm_retail

Severe Weather - Cold Wave - Storm

Retail

phq_impact_severe_weather_dust_retail

Severe Weather - Dust - (All)

Retail

phq_impact_severe_weather_dust_storm_retail

Severe Weather - Dust - Storm

Retail

phq_impact_severe_weather_flood_retail

Severe Weather - Flood

Retail

phq_impact_severe_weather_heat_wave_retail

Severe Weather - Heat Wave

Retail

phq_impact_severe_weather_hurricane_retail

Severe Weather - Hurricane

Retail

phq_impact_severe_weather_thunderstorm_retail

Severe Weather - Thunderstorm

Retail

phq_impact_severe_weather_tornado_retail

Severe Weather - Tornado

Retail

phq_impact_severe_weather_tropical_storm_retail

Severe Weather - Tropical Storm

Retail

Attended Events Impact Features

See Get ML Features

Configuration

You can configure PHQ Impact features using the options below.

Field
Description

stats object optional

You can optionally configure which fields are calculated for each of these features by providing the list of stats fields you would like.

Default fields are count and sum.

Supported fields are:

  • count

  • sum

  • min

  • max

  • avg

  • median

  • std_dev

E.g.

phq_rank object optional

Filter for events with a PHQ Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

local_rank object optional

Filter for events with a Local Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

PHQ Spend features provide daily-level aggregated stats based on total USD we predict will be spent during events on a given day. This takes into account complications like distributing attendance across multi-day events.

You can request industry-specific features which are tuned to one of three potential industries:

  • Accommodation: Event spend relating to hotels and hosts for the purposes of staying at during events. Spend can extend before and after an event actually starts/ends.

  • Hospitality: Event spend on restaurants, food and drinks. Hotel restaurants are included in this industry.

  • Transportation: Ground-based transportation for the purposes of getting to and from an event. Includes public and private transport, such as taxis, rails, busses and rideshares.

Feature
Description

phq_spend_conferences

Conferences

phq_spend_expos

Expos

phq_spend_sports

Sports

phq_spend_community

Community

phq_spend_concerts

Concerts

phq_spend_festivals

Festivals

phq_spend_performing_arts

Performing Arts

phq_spend_conferences_accommodation

Conferences - Accommodation

phq_spend_expos_accommodation

Expos - Accommodation

phq_spend_sports_accommodation

Sports - Accommodation

phq_spend_community_accommodation

Community - Accommodation

phq_spend_concerts_accommodation

Concerts - Accommodation

phq_spend_festivals_accommodation

Festivals - Accommodation

phq_spend_performing_arts_accommodation

Performing Arts - Accommodation

phq_spend_conferences_hospitality

Conferences - Hospitality

phq_spend_expos_hospitality

Expos - Hospitality

phq_spend_sports_hospitality

Sports - Hospitality

phq_spend_community_hospitality

Community - Hospitality

phq_spend_concerts_hospitality

Concerts - Hospitality

phq_spend_festivals_hospitality

Festivals - Hospitality

phq_spend_performing_arts_hospitality

Performing Arts - Hospitality

phq_spend_conferences_transportation

Conferences - Transportation

phq_spend_expos_transportation

Expos - Transportation

phq_spend_sports_transportation

Sports - Transportation

phq_spend_community_transportation

Community - Transportation

phq_spend_concerts_transportation

Concerts - Transportation

phq_spend_festivals_transportation

Festivals - Transportation

phq_spend_performing_arts_transportation

Performing Arts - Transportation

Configuration

You can configure PHQ Spend features using the options below.

Field
Description

stats object optional

You can optionally configure which fields are calculated for each of these features by providing the list of stats fields you would like.

Default fields are count and sum.

Supported fields are:

  • count

  • sum

  • min

  • max

  • avg

  • median

  • std_dev

E.g.

phq_rank object optional

Filter for events with a PHQ Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

local_rank object optional

Filter for events with a Local Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

PHQ Viewership features provide daily-level aggregated stats based on the number of people who we predict will view broadcasts on a given day.

Feature
Description

phq_viewership_sports

Sports - (All)

phq_viewership_sports_american_football

American Football - (All)

phq_viewership_sports_american_football_ncaa_men

American Footbal - NCAA Men's

phq_viewership_sports_american_football_nfl

American Football - NFL

phq_viewership_sports_auto_racing

Automotive Racing - All

phq_viewership_sports_auto_racing_indy_car

Automotive Racing - Indy Car

phq_viewership_sports_auto_racing_nascar

Automotive Racing - NASCAR

phq_viewership_sports_baseball

Baseball - (All)

phq_viewership_sports_baseball_mlb

Baseball - MLB

phq_viewership_sports_baseball_ncaa_men

Baseball - NCAA Men's

phq_viewership_sports_basketball

Basketball - (All)

phq_viewership_sports_basketball_nba

Basketball - NBA

phq_viewership_sports_basketball_ncaa_men

Basketball - NCAA Men's

phq_viewership_sports_basketball_ncaa_women

Basketball - NCAA Women's

phq_viewership_sports_boxing

Boxing - (All)

phq_viewership_sports_golf

Golf - (All)

phq_viewership_sports_golf_masters

Golf - Masters

phq_viewership_sports_golf_pga_championship

Golf - PGA Championships

phq_viewership_sports_golf_pga_tour

Golf - PGA Tours

phq_viewership_sports_golf_us_open

Golf - US Open

phq_viewership_sports_horse_racing

Horse Racing - (All)

phq_viewership_sports_horse_racing_belmont_stakes

Horse Racing - Belmont Stakes

phq_viewership_sports_horse_racing_kentucky_derby

Horse Racing - Kentucky Derby

phq_viewership_sports_horse_racing_preakness_stakes

Horse Racing - Preakness Stakes

phq_viewership_sports_ice_hockey

Ice Hockey - (All)

phq_viewership_sports_ice_hockey_nhl

Ice Hockey - NHL

phq_viewership_sports_mma

Mixed Martial Arts - (All)

phq_viewership_sports_mma_ufc

Mixed Martial Arts - UFC

phq_viewership_sports_soccer

Soccer - (All)

phq_viewership_sports_soccer_concacaf_champions_league

Soccer - CONCACAF Champions League

phq_viewership_sports_soccer_concacaf_gold_cup

Soccer - CONCACAF Gold Cup

phq_viewership_sports_soccer_copa_america_men

Soccer - COPA America Men's

phq_viewership_sports_soccer_fifa_world_cup_women

Soccer - FIFA World Cup Women's

phq_viewership_sports_soccer_fifa_world_cup_men

Soccer - FIFA World Cup Men's

phq_viewership_sports_soccer_mls

Soccer - MLS

phq_viewership_sports_soccer_uefa_champions_league_men

Soccer - UEFA Champions League Men's

phq_viewership_sports_softball

Softball - (All)

phq_viewership_sports_softball_ncaa_women

Softball - NCAA Women's

phq_viewership_sports_tennis

Tennis - (All)

phq_viewership_sports_tennis_us_open

Tennis - US Open

phq_viewership_sports_tennis_wimbledon

Tennis - Wimbledon

Configuration

You can configure PHQ Attendance features using the options below.

Field
Description

stats object optional

You can optionally configure which fields are calculated for each of these features by providing the list of stats fields you would like.

Default fields are count and sum.

Supported fields are:

  • count

  • sum

  • min

  • max

  • avg

  • median

  • std_dev

E.g.

phq_rank object optional

Filter for events with a PHQ Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

local_rank object optiona

Filter for events with a Local Rank within a certain range.

Supports the following fields:

  • gt - greater than

  • gte - greater than or equal

  • lt - less than

  • lte - less than or equal

E.g.

PHQ Rank features provide the daily-level aggregated sum of events bucketed by PHQ Rank level (1-5).

PHQ Rank Impact Pattern Features

See the "Holidays and Observances Impact Pattern Features" under PHQ Impact in the tab above. These features cover the Accommodation, Retail, and Hospitality (Food & Beverage) industries.

PHQ Rank Generic Features

These are generic features that do not include Predicted Impact Patterns and should be used if you are not in one of the industries that we have impact patterns for.

Feature
Description

phq_rank_observances

Observances

phq_rank_public_holidays

Public Holidays

phq_rank_school_holidays

School Holidays

phq_rank_academic_session

Academic - Session

phq_rank_academic_exam

Academic - Exam

phq_rank_academic_holiday

Academic - Holiday

phq_rank_daylight_savings

Daylight savings

phq_rank_health_warnings

Health Warnings

phq_rank_politics

Politics

Configuration

PHQ Rank features cannot currently be configured further. When requesting phq_rank_* features set the value as true indicating you require the default calculations.

Feature Response Fields

Other than the date, the structure of each result here will depend on how you configured the feature in your request and the type of feature.

Field
Description

date string

Date in local time. E.g. 2023-10-01

<phq_attendance_*> object

Daily-level feature result. The structure of the result here will depend on how you configured the feature in your request.

PHQ Attendance features are stats-based.

Default fields are count and sum.

E.g.

Field
Description

date string

Date in local time. E.g. 2023-10-01

<phq_impact_*> object

Daily-level feature result. The structure of the result here will depend on how you configured the feature in your request.

PHQ Impact features are stats-based.

Default fields are count and sum.

E.g.

Field
Description

date string

Date in local time. E.g. 2023-10-01

<phq_rank_*> object

Daily-level feature result. The structure of the result here is always the same as PHQ Rank features cannot currently be configured.

Will contain a rank_levels field which indicates the sum of matching events active on the date at each PHQ Rank level.

PHQ Rank is on a scale of 0 to 100 and the levels are bucketed as:

  • 1 - Minor (rank between 0 and 20).

  • 2 - Moderate (rank between 21 and 40).

  • 3 - Important (rank between 41 and 60).

  • 4 - Significant (rank between 61 and 80).

  • 5 - Major (rank between 81 and 100).

E.g.

Field
Description

date string

Date in local time. E.g. 2023-10-01

<phq_spend_*> object

Daily-level feature result. The structure of the result here will depend on how you configured the feature in your request.

PHQ Spend features are stats-based.

Default fields are count and sum.

E.g.

Field
Description

date string

Date in local time. E.g. 2023-10-01

<phq_viewership_*> object

Daily-level feature result. The structure of the result here will depend on how you configured the feature in your request.

PHQ Viewership features are stats-based.

Default fields are count and sum.

E.g.

Examples

OpenAPI Spec

The OpenAPI spec for Features API can be found here.

Guides

Below are some guides relevant to this API:

Last updated

Was this helpful?