Get Event Counts
Get the count of events by category, PHQ Label and more.
Last updated
Was this helpful?
Get the count of events by category, PHQ Label and more.
Last updated
Was this helpful?
Get the count of events by category, PHQ Label and more. The Count endpoint supports the same query parameters as the Search Events endpoint.
Filters events that are active on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that are active after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that are active on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that are active before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the active.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
An optional Beam Analysis filter which if provided will calculate the location, rank and categories from the Beam Analysis and optionally the Beam Analysis group (see beam.group_id
).
This is the best way to filter for events relevant to your business based on your Beam Analysis.
If beam.group_id
is provided the categories will be calculated from the feature importance results of the Analysis Group otherwise the categories will be calculated from the feature importance results of the individual Analysis.
If using beam.group_id
the beam.analysis_id
is required.
Whether or not to exclude potentially brand-unsafe events. Potentially brand-unsafe events are included by default.
Examples of brand-unsafe events include content that promotes hate, violence or discrimination, coarse language, content that is sexually suggestive or explicit, etc.
Default: false
Filters events that were cancelled on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that were cancelled after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that were cancelled on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that were cancelled before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the cancelled.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
A comma-separated list of categories.
Take a look at the Event Categories page for an overview of the different categories.
Example: concerts,sports
A comma-separated list of 2-letter country codes.
Example: US
A comma-separated list of deleted reasons for the events.
Example: cancelled,duplicate
Filters events that end on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that end after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that end on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that end before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the end.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
Fuzzy date search around event end datetime. When using end_around.*
params, origin
is required.
Can influence relevance
.
Example: 2025-02-01
The number of days from the origin before the score starts to decay (optional).
Example: 5d
Default: 0d
^\d{1,3}d$
Distance from origin +/- offset at which the score will equal the decay value (optional).
Example: 10d
Default: 3d
^\d{1,3}d$
Score value at the scale distance (optional).
Example: 0.9
Default: 0.5
A comma-separated list of Entity identifiers.
Example: XABWvihQAj8TnjvF6WNzLW
Filters events that were first seen in our system on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that were first seen in our system after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that were first seen in our system on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that were first seen in our system before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the first_seen.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
A comma-separated list of Event identifiers.
Example: z13B3870YOgv
Filters events that are predicted to have an impact on or after the specified date.
The Predicted Impact Pattern of events can be larger than the actual event date range.
These parameters work similarly to the active.*
parameter, but it uses an industry-specific Predicted Impact Pattern date range of an event where applicable.
You must also specify the industry (see impact.industry
).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that are predicted to have an impact after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that are predicted to have an impact on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that are predicted to have an impact before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the impact.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
Selected industry for the Predicted Impact Patterns.
If no industry is selected, impact.*
will function effectively the same as active.*
.
Example: accommodation
Legacy labels to further categorise the event.
["entertainment","family"]
Filters events with a Local Rank greater than or equal to the specified value.
Events without a Local Rank will not be returned.
Example: 80
Filters events with a Local Rank greater than the specified value.
Events without a Local Rank will not be returned.
Filters events with a Local Rank less than or equal to the specified value.
Events without a Local Rank will not be returned.
Example: 90
Filters events with a Local Rank less than the specified value.
Events without a Local Rank will not be returned.
A comma-separated list of numbers between 1 and 5, corresponding to the Local Rank levels.
Possible values:
Example: 4,5
Fuzzy location search around event location. When using location_around.*
params, origin
is required.
Please note this affects the relevance
value and does not restrict search results to the specified latitude/longitude and offset. Read more in the Relevance guide and combine with the within
parameter to restrict results to a specified latitude/longitude and radius.
Example: 40.730610,-73.935242
^-?\d+(\.\d+)?,-?\d+(\.\d+)?$
The distance before decay is applied (optional).
Distance unit can be one of m
, km
, ft
, mi
.
Example: 2mi
Default: 0km
^\d+(m|km|ft|mi)$
Distance from origin + offset at which the score will equal decay value (optional).
Distance unit can be one of m
, km
, ft
, mi
.
Example: 4mi
Default: 2km
^\d+(m|km|ft|mi)$
Score value at the scale
distance (optional).
Example: 0.9
Default: 0.5
A unique attribute to Predicted Events that were generated from analyzing sets of recurring events. The score ranges from 1 to 5, representing the event’s propensity to change location with each recurrence. Higher scores indicate a higher consistency in location, while lower scores indicate the event’s location is more likely to shift once additional details become available.
Filters events with a location confidence score greater than the specified score (exclusive).
Filters events with a location confidence score less than or equal to the specified score.
Filters events with a location confidence score less than the specified score (exclusive).
Whether or not to include parent events / exclude child events.
Note that child events are those events that have a link to a parent event. Parent events are all the other events, whether they have children or not.
See the documentation on umbrella events for more information on parent and child events.
Default: true
Filters events with a Predicted Attendance greater than or equal to the specified value.
Example: 2000
Filters events with a Predicted Attendance greater than the specified value.
Filters events with a Predicted Attendance less than or equal to the specified value.
Example: 10000
Filters events with a Predicted Attendance less than the specified value.
A comma-separated list of PHQ labels.
PHQ Labels leverage AI and classifier models for more accurate labelling.
Please note that all event labels are lowercase and that the search is case sensitive.
Take a look at PHQ Label Values to get a list of possible values.
Example: agriculture-forestry-and-fisheries,food-and-beverage
Whether to find events with any
or all
the specified labels.
Default: any
A comma-separated list of PHQ labels to exclude. This will filter for events that do not have the specified labels.
Please note that all event labels are lowercase and that the search is case sensitive.
Example: lifestyle
Whether to exclude events with any
or all
the specified labels.
Default: any
A comma-separated list of Place IDs and/or IATA (3 character), ICAO (4 character), and UN/LOCODE (5 character) airport codes where the events occur.
A CSV file of all supported airport codes and their respective Place IDs is available to download.
Results will contain events that apply to the parent and children places of the specified place. E.g. National, regional and local school holidays that apply to a region.
Example: 5128638,SFO
A comma-separated list of Place IDs and/or IATA (3 character), ICAO (4 character), and UN/LOCODE (5 character) airport codes where the events occur.
Results will contain events that apply to the specified place only. E.g. Regional school holidays only.
A comma-separated list of Placekeys (See placekey.io). Returns events that have a Placekey value matching this filter.
There are 2 parts to a Placekey: what@where
what
Contains 2 part in the form {address}-{poi}
.
where
An H3 hexagon index (resolution 10) of the event.This filter supports entering a full Placekey to match events having that specific Placekey or a partial Placekey (such as just the @where
part) to perform a partial match on Placekey. You can use the following Placekey format in this filter:
{address}-{poi}@{where}
- only returns events with a full matching placekey (an exact match){address}@{where}
- matches events where the the address and where part match (even if poi is different)@{where}
- matches events for which the @where
part matches, ignores the {address}-{poi}
parts. You can perform a partial match on the @where
part to find nearby events. The minimum amount of characters that can be matched on is 5. See using Placekey for more details.Note that Placekey applies to our attended event categories. Some events do not contain a Placekey.
Example: 225@63j-rqb-j7q,@627-s8j-z2k
Filters events that were marked as postponed on or after the specified date.
Note when filtering on postponed, events that are not postponed will not be returned.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that were marked as postponed after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that were marked as postponed on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that were marked as postponed before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the postponed.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
Filters events that are predicted to end on or after the specified date.
Note when filtering on postponed, events that are not postponed will not be returned.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that are predicted to end after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that are predicted to end on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that are predicted to end before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the predicted_end.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
Filters events with a Predicted Event Spend (USD) greater or equal to the specified value.
Note: When using this filter events that do not have a predicted_event_spend will not be returned.
Example: 80000
Filters events with a Predicted Event Spend greater than the specified value (exclusive).
Filters events with a Predicted Event Spend less than or equal to the specified value.
Example: 200000
Filters events with a Predicted Event Spend less than the specified value (exclusive).
The Predicted Event Spend for a given industry in USD.
Supported industries:
The format of this parameter name is: predicted_event_spend_industry.<industry>.<suffix>
Supports gt
, gte
, lt
and lte
suffixes in the same way other range parameters are supported.
Please note that use of a suffix is required.
Note: When using this filter events that do not have a predicted_event_spend
will not be returned.
A full-text search query.
Can influence relevance
.
Example: katy perry
Filters events with a PHQ Rank greater than or equal to the specified value.
Example: 80
Filters events with a PHQ Rank greater than the specified value.
Filters events with a PHQ Rank less than or equal to the specified value.
Example: 90
Filters events with a PHQ Rank less than the specified value.
A comma-separated list of numbers between 1 and 5, corresponding to the PHQ Rank levels.
Possible values:
Example: 4,5
A comma-separated list of components to include when calculating the relevance
field of an event. The relevance components are multiplied together to produce the overall relevance.
Parameter Components: These components correspond to search parameters that can influence relevance. If the parameter isn't provided as part of a search its component will be ignored. By default, relevance includes the components of each relevance-influencing parameter in a search.
Field Components: These components correspond to event fields that can be included in relevance. They are not included in relevance by default.
Example: q,rank,location_around
A comma-separated list of saved location identifiers. Up to a maximum of 20 identifiers. This filters the events returned to events within the locations specified. Refer to the Saved Locations API for more details on managing locations.
Example: sFlb8HlsLa1j-S4UDEMEkQ
A comma-separated list of fields to sort results by. The default is relevance,-start
.
Prefix the field name with -
for reverse order.
Note when sorting on predicted_end
or local_rank
(regardless of sort order), events that do not have a predicted_end
, local_rank
will be placed last.
When sorting by relevance
the most relevant results are sorted first, regardless of sort order.
Example: country,-start
Filters events that start on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that start after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that start on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that start before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the start.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
Fuzzy date search around event start datetime. When using start_around.*
params, origin
is required.
Can influence relevance
.
Example: 2025-02-01
The number of days from the origin before the score starts to decay (optional).
Example: 5d
Default: 0d
^\d{1,3}d$
Distance from origin +/- offset at which the score will equal the decay value (optional).
Example: 10d
Default: 3d
^\d{1,3}d$
Score value at the scale distance (optional).
Example: 0.9
Default: 0.5
A unique attribute to Predicted Events that were generated from analyzing sets of recurring events. The score ranges from 1 to 5, representing the event’s consistency in being held around the same date with each recurrence. Higher scores indicate the event is held at mostly the same date each year, while lower scores indicate a greater variation in start date, meaning that details are more likely to change as new details become available.
Filters events with a start date confidence score greater than the specified score (exclusive).
Filters events with a start date confidence score less than or equal to the specified score.
Filters events with a start date confidence score less than the specified score (exclusive).
A comma-separated list of states for the events.
This parameter is useful in conjunction with updated
when you cache events and are interested in retrieving a list of all events that have changed since a specific date and time.
Example: active,deleted
Default: active
Filters events that were last modified on or after the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-01-01
Filters events that were last modified after the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Filters events that were last modified on or before the specified date.
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Example: 2025-02-01
Filters events that were last modified before the specified date (exclusive).
Expected format: YYYY-MM-DD
or YYYY-MM-DDThh:mm:ss
.
Specifies the timezone for the updated.*
date parameters.
Timezone must be in the TZ Database format (e.g. America/Los_Angeles
).
Default: UTC
A geo center and radius in the form {radius}{unit}@{latitude},{longitude}
, where the radius unit can be one of: m
, km
, ft
, mi
.
When using the units of km
and mi
you can enter whole numbers or floats e.g. 5mi
, 1.5km
or 1.2mi
.
When using the units ft
or m
you must enter whole numbers (you cannot enter a fraction of a meter or foot).
Note that results may contain events that apply to a parent scope of the specified area.
Note we always recommend using our Suggested Radius API to determine the relevant impact zone around your location.
Example: 2.5mi@-36.844480,174.768368
^(?:(?:[1-9]\d*(?:\.\d+)?(km|mi))|(?:[1-9]\d*(m|ft)))@-?\d+(?:\.\d+)?,\-?\d+(?:\.\d+)?$
The aggregated counts of events matching your filters.
Successful Response