PredictHQ
predicthqPredictHQ provides event intelligence, demand forecasting, and location analytics APIs for anticipating changes in demand.
Acciones disponibles (62)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Calculate Event FeaturesPREDICTHQ_CALCULATE_EVENT_FEATURESAcciónCalculate one page of daily or weekly ML-ready event features for a required date range using either a Beam analysis or a manually configured location and feature set.
PREDICTHQ_CALCULATE_EVENT_FEATURESAcciónCalculate one page of daily or weekly ML-ready event features for a required date range using either a Beam analysis or a manually configured location and feature set.
Parámetros de entrada
bodyobjectObligatorioStructured PredictHQ Features API request body.
limitintegerMaximum results to return.
acceptstringenumResponse media type: application/json or text/csv.
application/jsontext/csvcursorstringContinuation cursor returned by a previous JSON response.
offsetintegerResult offset.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Count BroadcastsPREDICTHQ_COUNT_BROADCASTSAcciónReturn the total number of PredictHQ broadcast records matching optional broadcast, schedule, date, viewership, location, and event filters, without returning result records.
PREDICTHQ_COUNT_BROADCASTSAcciónReturn the total number of PredictHQ broadcast records matching optional broadcast, schedule, date, viewership, location, and event filters, without returning result records.
Parámetros de entrada
start_gtstringFind broadcasts starting after this date or date-time.
start_ltstringFind broadcasts starting before this date or date-time.
start_tzstringTZ Database time zone used for start filters. Defaults to UTC upstream.
start_gtestringFind broadcasts starting at or after this date or date-time.
start_ltestringFind broadcasts starting at or before this date or date-time.
updated_gtstringFind broadcasts updated after this date or date-time.
updated_ltstringFind broadcasts updated before this date or date-time.
updated_tzstringTZ Database time zone used for updated filters. Defaults to UTC upstream.
event_labelstring[]Find broadcasts whose physical events have any of these case-sensitive, lowercase labels.
updated_gtestringFind broadcasts updated at or after this date or date-time.
updated_ltestringFind broadcasts updated at or before this date or date-time.
broadcast_idstring[]Find broadcasts by a list of unique identifiers.
first_seen_gtstringFind broadcasts first seen after this date or date-time.
first_seen_ltstringFind broadcasts first seen before this date or date-time.
first_seen_tzstringTZ Database time zone used for first-seen filters. Defaults to UTC upstream.
record_statusstring[]Find broadcasts by record status. Values are active (valid), deleted (no longer valid), or duplicate (duplicates an active record). Defaults to active.
event_categorystring[]Find broadcasts whose physical events have any of these categories.
event_event_idstring[]Find broadcasts for a list of physical PredictHQ event IDs.
first_seen_gtestringFind broadcasts first seen at or after this date or date-time.
first_seen_ltestringFind broadcasts first seen at or before this date or date-time.
event_entity_idstring[]Find broadcasts associated with these PredictHQ event entity IDs, such as team or venue IDs.
location_originstringFind broadcasts in the county containing this latitude,longitude geopoint.
broadcast_statusstring[]Find broadcasts by a list of schedule statuses: scheduled, predicted, or cancelled.
location_place_idstring[]Find broadcasts in these PredictHQ Place IDs. Counties match directly; higher-level places include their counties, and lower-level places match their containing county.
phq_viewership_gtintegerFind broadcasts with PHQ Viewership above this value.
phq_viewership_ltintegerFind broadcasts with PHQ Viewership below this value.
phq_viewership_gteintegerFind broadcasts with PHQ Viewership at or above this value.
phq_viewership_lteintegerFind broadcasts with PHQ Viewership at or below this value.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Count EventsPREDICTHQ_COUNT_EVENTSAcciónGet aggregate event counts by category, label, rank level, and the same date, location, rank, attendance, spend, and event filters supported by search.
PREDICTHQ_COUNT_EVENTSAcciónGet aggregate event counts by category, label, rank level, and the same date, location, rank, attendance, spend, and event filters supported by search.
Parámetros de entrada
idstring[]Event IDs to include.
sortstring[]Fields and directions used to sort matching events.
labelstring[]Deprecated legacy labels to include; prefer phq_label.
querystringFull-text event search query.
statestring[]Event states to include; the provider default is active.
end_gtstringReturn events ending after this date or date-time.
end_ltstringReturn events ending before this date or date-time.
end_tzstringTZ Database timezone for end date filters.
withinstringGeographic radius filter formatted as radius and unit at latitude,longitude.
countrystring[]Two-letter country codes; cannot be combined with beam_analysis_id.
end_gtestringReturn events ending on or after this date or date-time.
end_ltestringReturn events ending on or before this date or date-time.
rank_gtintegerMinimum PHQ Rank, exclusive.
rank_ltintegerMaximum PHQ Rank, exclusive.
categorystring[]Event categories; cannot be combined with beam_analysis_id.
placekeystring[]Full or partial Placekeys to match.
rank_gteintegerMinimum PHQ Rank, inclusive.
rank_lteintegerMaximum PHQ Rank, inclusive.
start_gtstringReturn events starting after this date or date-time.
start_ltstringReturn events starting before this date or date-time.
start_tzstringTZ Database timezone for start date filters.
active_gtstringReturn events active after this date or date-time.
active_ltstringReturn events active before this date or date-time.
active_tzstringTZ Database timezone for active date filters; defaults to UTC.
entity_idstring[]Entity IDs to include.
impact_gtstringReturn events whose predicted impact starts after this date.
impact_ltstringReturn events whose predicted impact ends before this date.
impact_tzstringTZ Database timezone for predicted-impact date filters.
phq_labelstring[]Case-sensitive lowercase PHQ labels to include.
start_gtestringReturn events starting on or after this date or date-time.
start_ltestringReturn events starting on or before this date or date-time.
active_gtestringReturn events active on or after this date or date-time.
active_ltestringReturn events active on or before this date or date-time.
impact_gtestringReturn events whose predicted impact starts on or after this date.
impact_ltestringReturn events whose predicted impact ends on or before this date.
rank_levelinteger[]PHQ Rank levels from 1 (minor) through 5 (major).
updated_gtstringReturn events updated after this date or date-time.
updated_ltstringReturn events updated before this date or date-time.
updated_tzstringTZ Database timezone for updated date filters.
place_exactstring[]Place IDs or airport codes matched exactly.
place_scopestring[]Place IDs or airport codes, including parent and child places.
updated_gtestringReturn events updated on or after this date or date-time.
updated_ltestringReturn events updated on or before this date or date-time.
cancelled_gtstringReturn events cancelled after this date or date-time.
cancelled_ltstringReturn events cancelled before this date or date-time.
cancelled_tzstringTZ Database timezone for cancelled date filters.
phq_label_opstringenumRequire all or any supplied PHQ labels.
allanypostponed_gtstringReturn events postponed after this date or date-time.
postponed_ltstringReturn events postponed before this date or date-time.
postponed_tzstringTZ Database timezone for postponed date filters.
beam_group_idstringBeam Analysis group ID; requires beam_analysis_id.
cancelled_gtestringReturn events cancelled on or after this date or date-time.
cancelled_ltestringReturn events cancelled on or before this date or date-time.
first_seen_gtstringReturn events first seen after this date or date-time.
first_seen_ltstringReturn events first seen before this date or date-time.
first_seen_tzstringTZ Database timezone for first-seen date filters.
local_rank_gtintegerMinimum Local Rank, exclusive.
local_rank_ltintegerMaximum Local Rank, exclusive.
postponed_gtestringReturn events postponed on or after this date or date-time.
postponed_ltestringReturn events postponed on or before this date or date-time.
deleted_reasonstring[]Deletion reasons to include.
first_seen_gtestringReturn events first seen on or after this date or date-time.
first_seen_ltestringReturn events first seen on or before this date or date-time.
local_rank_gteintegerMinimum Local Rank, inclusive.
local_rank_lteintegerMaximum Local Rank, inclusive.
parent_includestringenumInclude parent events, exclude them, or return only parents.
truefalseonlyimpact_industrystringenumIndustry used for Predicted Impact Pattern date filters.
accommodationcpgtourismmarketingparkingrestaurantsretailtransportationprivate_includestringenumInclude private events, exclude them, or return only private events.
truefalseonlyprivate_user_idstring[]User IDs associated with private events; requires private_include.
beam_analysis_idstringBeam Analysis ID used to derive location, rank, and category filters.
local_rank_levelinteger[]Local Rank levels from 1 (minor) through 5 (major).
predicted_end_gtstringReturn events predicted to end after this date.
predicted_end_ltstringReturn events predicted to end before this date.
predicted_end_tzstringTZ Database timezone for predicted-end date filters.
phq_attendance_gtintegerMinimum Predicted Attendance, exclusive.
phq_attendance_ltintegerMaximum Predicted Attendance, exclusive.
phq_label_excludestring[]Case-sensitive lowercase PHQ labels to exclude.
predicted_end_gtestringReturn events predicted to end on or after this date.
predicted_end_ltestringReturn events predicted to end on or before this date.
phq_attendance_gteintegerMinimum Predicted Attendance, inclusive.
phq_attendance_lteintegerMaximum Predicted Attendance, inclusive.
private_org_reviewstring[]Organization review statuses for private events.
brand_unsafe_excludestringenumExclude potentially brand-unsafe events.
truefalsephq_label_exclude_opstringenumExclude events matching all or any excluded PHQ labels.
allanypredicted_event_spend_gtintegerMinimum Predicted Event Spend in USD, exclusive.
predicted_event_spend_ltintegerMaximum Predicted Event Spend in USD, exclusive.
predicted_event_spend_gteintegerMinimum Predicted Event Spend in USD, inclusive.
predicted_event_spend_lteintegerMaximum Predicted Event Spend in USD, inclusive.
saved_location_location_idstring[]Up to 20 saved-location IDs to include.
location_confidence_score_gtintegerMinimum location confidence score, exclusive.
location_confidence_score_ltintegerMaximum location confidence score, exclusive.
location_confidence_score_gteintegerMinimum location confidence score, inclusive.
location_confidence_score_lteintegerMaximum location confidence score, inclusive.
predicted_event_spend_industrystringenumIndustry segment for the industry-specific Predicted Event Spend filter.
accommodationhospitalitytransportationstart_date_confidence_score_gtintegerMinimum start-date confidence score, exclusive.
start_date_confidence_score_ltintegerMaximum start-date confidence score, exclusive.
start_date_confidence_score_gteintegerMinimum start-date confidence score, inclusive.
start_date_confidence_score_lteintegerMaximum start-date confidence score, inclusive.
predicted_event_spend_industry_valueintegerIndustry-specific Predicted Event Spend in USD; set its industry and operator fields too.
predicted_event_spend_industry_operatorstringenumComparison operator for the industry-specific Predicted Event Spend filter.
gtgteltlte
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Beam AnalysisPREDICTHQ_CREATE_BEAM_ANALYSISAcciónCreate a Beam analysis that correlates an owned location's events with uploaded demand data.
PREDICTHQ_CREATE_BEAM_ANALYSISAcciónCreate a Beam analysis that correlates an owned location's events with uploaded demand data.
Parámetros de entrada
bodyobjectObligatorioComplete documented PredictHQ Beam analysis creation body.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Beam Analysis GroupPREDICTHQ_CREATE_BEAM_ANALYSIS_GROUPAcciónCreate a Beam analysis group that aggregates feature importance across compatible analyses.
PREDICTHQ_CREATE_BEAM_ANALYSIS_GROUPAcciónCreate a Beam analysis group that aggregates feature importance across compatible analyses.
Parámetros de entrada
bodyobjectObligatorioComplete documented PredictHQ Beam analysis group creation body.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Forecast ModelPREDICTHQ_CREATE_FORECAST_MODELAcciónCreate a forecast model for a Saved Location. After creation, upload historical demand data and trigger model training with the corresponding Forecasts actions.
PREDICTHQ_CREATE_FORECAST_MODELAcciónCreate a forecast model for a Saved Location. After creation, upload historical demand data and trigger model training with the corresponding Forecasts actions.
Parámetros de entrada
bodyobjectObligatorioDocumented PredictHQ forecast model creation body.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Loop LinkPREDICTHQ_CREATE_LOOP_LINKAcciónCreate a hosted Loop link for end users to submit missing events or event feedback, and return both shareable URLs. An empty body creates a default-named active link.
PREDICTHQ_CREATE_LOOP_LINKAcciónCreate a hosted Loop link for end users to submit missing events or event feedback, and return both shareable URLs. An empty body creates a default-named active link.
Parámetros de entrada
bodyobjectObligatorioComplete Loop Link creation body. All properties are optional; an empty object creates a default-named active link.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Saved LocationPREDICTHQ_CREATE_SAVED_LOCATIONAcciónCreate a reusable PredictHQ Saved Location from an exact business point, a custom GeoJSON area, or Geonames place IDs.
PREDICTHQ_CREATE_SAVED_LOCATIONAcciónCreate a reusable PredictHQ Saved Location from an exact business point, a custom GeoJSON area, or Geonames place IDs.
Parámetros de entrada
bodyobjectObligatorioSaved Location fields. Provide exactly one location representation: geojson, place_ids, or origin_geojson.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Saved Location ClosurePREDICTHQ_CREATE_SAVED_LOCATION_CLOSUREAcciónCreate a closure period for a PredictHQ Saved Location. The date range must not overlap an existing closure for the location.
PREDICTHQ_CREATE_SAVED_LOCATION_CLOSUREAcciónCreate a closure period for a PredictHQ Saved Location. The date range must not overlap an existing closure for the location.
Parámetros de entrada
bodyobjectObligatorioComplete documented closure creation body.
location_idstringObligatorioExisting Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Saved Location Opening HoursPREDICTHQ_CREATE_SAVED_LOCATION_OPENING_HOURSAcciónCreate opening hours for a Saved Location. The effective date range must not overlap another opening-hours record for the same location.
PREDICTHQ_CREATE_SAVED_LOCATION_OPENING_HOURSAcciónCreate opening hours for a Saved Location. The effective date range must not overlap another opening-hours record for the same location.
Parámetros de entrada
bodyobjectObligatorioComplete opening-hours record to create.
location_idstringObligatorioID of the existing Saved Location.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Beam AnalysisPREDICTHQ_DELETE_BEAM_ANALYSISAcciónSoft-delete a Beam Analysis. The analysis remains retrievable when filtering for deleted analyses, and containing Analysis Groups are refreshed automatically.
PREDICTHQ_DELETE_BEAM_ANALYSISAcciónSoft-delete a Beam Analysis. The analysis remains retrievable when filtering for deleted analyses, and containing Analysis Groups are refreshed automatically.
Parámetros de entrada
analysis_idstringObligatorioAn existing Beam Analysis ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Beam Analysis GroupPREDICTHQ_DELETE_BEAM_ANALYSIS_GROUPAcciónDelete an existing Beam Analysis Group without deleting the individual analyses in the group.
PREDICTHQ_DELETE_BEAM_ANALYSIS_GROUPAcciónDelete an existing Beam Analysis Group without deleting the individual analyses in the group.
Parámetros de entrada
group_idstringObligatorioAn existing Beam Analysis Group ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Forecast ModelPREDICTHQ_DELETE_FORECAST_MODELAcciónPermanently deletes a forecast model and all associated demand data and forecasts. The model must not be in `preparing`, `training`, or `forecasting` status. This action is irreversible.
PREDICTHQ_DELETE_FORECAST_MODELAcciónPermanently deletes a forecast model and all associated demand data and forecasts. The model must not be in `preparing`, `training`, or `forecasting` status. This action is irreversible.
Parámetros de entrada
model_idstringObligatorioThe unique identifier of the forecast model to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Loop LinkPREDICTHQ_DELETE_LOOP_LINKAcciónSoft-delete a Loop link. The record remains retrievable with `status=deleted`.
PREDICTHQ_DELETE_LOOP_LINKAcciónSoft-delete a Loop link. The record remains retrievable with `status=deleted`.
Parámetros de entrada
link_idstringObligatorioAn existing Loop Link ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Saved LocationPREDICTHQ_DELETE_SAVED_LOCATIONAcciónPermanently delete a Saved Location and all of its associated insights data. This action is irreversible.
PREDICTHQ_DELETE_SAVED_LOCATIONAcciónPermanently delete a Saved Location and all of its associated insights data. This action is irreversible.
Parámetros de entrada
location_idstringObligatorioAn existing Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Saved Location ClosurePREDICTHQ_DELETE_SAVED_LOCATION_CLOSUREAcciónDelete a closure by ID from the specified PredictHQ Saved Location. This action is irreversible.
PREDICTHQ_DELETE_SAVED_LOCATION_CLOSUREAcciónDelete a closure by ID from the specified PredictHQ Saved Location. This action is irreversible.
Parámetros de entrada
closure_idstringObligatorioAn existing closure record ID.
location_idstringObligatorioAn existing Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Saved Location Opening HoursPREDICTHQ_DELETE_SAVED_LOCATION_OPENING_HOURSAcciónDelete an opening hours record by ID from the specified PredictHQ Saved Location. This action is irreversible.
PREDICTHQ_DELETE_SAVED_LOCATION_OPENING_HOURSAcciónDelete an opening hours record by ID from the specified PredictHQ Saved Location. This action is irreversible.
Parámetros de entrada
location_idstringObligatorioAn existing Saved Location ID.
opening_hours_idstringObligatorioAn existing opening hours record ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Beam AnalysisPREDICTHQ_GET_BEAM_ANALYSISAcciónReturn the full details of one Beam Analysis, including its location, demand type, rank, readiness status, and processing state.
PREDICTHQ_GET_BEAM_ANALYSISAcciónReturn the full details of one Beam Analysis, including its location, demand type, rank, readiness status, and processing state.
Parámetros de entrada
analysis_idstringObligatorioAn existing Beam Analysis ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Beam Analysis Feature ImportancePREDICTHQ_GET_BEAM_ANALYSIS_FEATURE_IMPORTANCEAcciónReturn the Beam feature groups whose statistical significance indicates how strongly they affect an analysis's demand, including the Features API fields recommended for forecasting models.
PREDICTHQ_GET_BEAM_ANALYSIS_FEATURE_IMPORTANCEAcciónReturn the Beam feature groups whose statistical significance indicates how strongly they affect an analysis's demand, including the Features API fields recommended for forecasting models.
Parámetros de entrada
analysis_idstringObligatorioAn existing Beam Analysis ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Beam Analysis GroupPREDICTHQ_GET_BEAM_ANALYSIS_GROUPAcciónReturn the full details of one Beam Analysis Group, including its member analyses, demand type, readiness status, and processing state.
PREDICTHQ_GET_BEAM_ANALYSIS_GROUPAcciónReturn the full details of one Beam Analysis Group, including its member analyses, demand type, readiness status, and processing state.
Parámetros de entrada
group_idstringObligatorioAn existing Beam Analysis Group ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Beam Analysis Group Feature ImportancePREDICTHQ_GET_BEAM_ANALYSIS_GROUP_FEATURE_IMPORTANCEAcciónReturn feature-importance results aggregated across the analyses in an existing Beam Analysis Group, including each feature group's Features API fields and p-value.
PREDICTHQ_GET_BEAM_ANALYSIS_GROUP_FEATURE_IMPORTANCEAcciónReturn feature-importance results aggregated across the analyses in an existing Beam Analysis Group, including each feature group's Features API fields and p-value.
Parámetros de entrada
group_idstringObligatorioAn Analysis Group ID whose aggregated feature importance to return.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Demand SurgesPREDICTHQ_GET_DEMAND_SURGESAcciónReturn dates with at least the requested demand-surge intensity for a required date and location, including summed predicted attendance.
PREDICTHQ_GET_DEMAND_SURGESAcciónReturn dates with at least the requested demand-surge intensity for a required date and location, including summed predicted attendance.
Parámetros de entrada
date_fromstringObligatoriodateStart date for the 90-day demand-surge search window.
location_originstring[]Location centroid as exactly two values: latitude, then longitude. Required with location_radius unless location_place_id is provided.
location_radiusstringRadius around location_origin, with up to two decimal places and unit m, km, ft, or mi. Required with location_origin unless location_place_id is provided.
location_place_idstring[]PredictHQ Place IDs defining the location. Required unless both location_origin and location_radius are provided; cannot be combined with either field.
min_surge_intensitystringObligatorioenumMinimum demand-surge intensity to return: s, m, l, or xl.
smlxl
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Forecast ModelPREDICTHQ_GET_FORECAST_MODELAcciónRetrieves a forecast model by ID, including its readiness status, configuration, accuracy metrics, and location details.
PREDICTHQ_GET_FORECAST_MODELAcciónRetrieves a forecast model by ID, including its readiness status, configuration, accuracy metrics, and location details.
Parámetros de entrada
model_idstringObligatorioThe unique identifier of the forecast model.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Loop LinkPREDICTHQ_GET_LOOP_LINKAcciónReturn one Loop Link, including its status, metadata, expiry, and hosted event-submission and event-feedback URLs.
PREDICTHQ_GET_LOOP_LINKAcciónReturn one Loop Link, including its status, metadata, expiry, and hosted event-submission and event-feedback URLs.
Parámetros de entrada
link_idstringObligatorioThe unique identifier of the Loop Link to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Loop SettingsPREDICTHQ_GET_LOOP_SETTINGSAcciónReturn the organization name displayed in the hosted Loop interface.
PREDICTHQ_GET_LOOP_SETTINGSAcciónReturn the organization name displayed in the hosted Loop interface.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Predicted Impact AreaPREDICTHQ_GET_PREDICTED_IMPACT_AREAAcciónCalculate a polygonal or radial Predicted Impact Area for a business location and industry, returned as GeoJSON.
PREDICTHQ_GET_PREDICTED_IMPACT_AREAAcciónCalculate a polygonal or radial Predicted Impact Area for a business location and industry, returned as GeoJSON.
Parámetros de entrada
industrystringenumBusiness industry used to calibrate the event impact area.
accommodationrestaurantsretailparkingcpgtourismmarketingtransportationotherarea_typestringenumReturn a precise polygonal area or a simpler circular radius area.
polygonradiusradius_unitstringenumRadius unit when area_type is radius: meters, kilometers, feet, or miles.
mkmftmilocation_originstringObligatorioBusiness latitude and longitude formatted as latitude,longitude.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Saved LocationPREDICTHQ_GET_SAVED_LOCATIONAcciónRetrieve a Saved Location by ID, including its geometry, enrichment status, labels, resolved places, summary insights, opening hours, and closures.
PREDICTHQ_GET_SAVED_LOCATIONAcciónRetrieve a Saved Location by ID, including its geometry, enrichment status, labels, resolved places, summary insights, opening hours, and closures.
Parámetros de entrada
location_idstringObligatorioThe unique identifier of the Saved Location to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Saved Location ClosurePREDICTHQ_GET_SAVED_LOCATION_CLOSUREAcciónReturn a single closure by ID for the specified Saved Location.
PREDICTHQ_GET_SAVED_LOCATION_CLOSUREAcciónReturn a single closure by ID for the specified Saved Location.
Parámetros de entrada
closure_idstringObligatorioAn existing closure record ID.
location_idstringObligatorioAn existing Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Saved Location Opening HoursPREDICTHQ_GET_SAVED_LOCATION_OPENING_HOURSAcciónReturn one opening hours record by its ID for a specified PredictHQ Saved Location.
PREDICTHQ_GET_SAVED_LOCATION_OPENING_HOURSAcciónReturn one opening hours record by its ID for a specified PredictHQ Saved Location.
Parámetros de entrada
location_idstringObligatorioAn existing Saved Location ID.
opening_hours_idstringObligatorioAn existing opening hours record ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Beam AnalysesPREDICTHQ_LIST_BEAM_ANALYSESAcciónReturn one page of Beam Analyses, with filters for lifecycle state, readiness, groups, demand type, location, labels, update date, and name.
PREDICTHQ_LIST_BEAM_ANALYSESAcciónReturn one page of Beam Analyses, with filters for lifecycle state, readiness, groups, demand type, location, labels, update date, and name.
Parámetros de entrada
sortstring[]Sort fields. Prefix a field with '-' to reverse its default direction.
labelstring[]Labels to match.
limitintegerMaximum number of records to return on this page.
querystringSearch analysis names using partial or prefix matching.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching records to skip.
statusstring[]Analysis statuses to match: active or deleted.
group_idstring[]Analysis Group IDs whose member analyses should be returned.
updated_gtstringReturn analyses updated after this date, exclusively.
updated_ltstringReturn analyses updated before this date, exclusively.
external_idstring[]External IDs to match.
updated_gtestringReturn analyses updated on or after this date.
updated_ltestringReturn analyses updated on or before this date.
readiness_statusstring[]Processing statuses to match: pending, failed, ready, or stale.
demand_type_industrystring[]Demand-data industries to match.
demand_type_intervalstring[]Demand-data intervals to match: day or week.
location_saved_location_idstring[]Saved Location IDs to match.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Beam Analysis Correlation ResultsPREDICTHQ_LIST_BEAM_ANALYSIS_CORRELATION_RESULTSAcciónReturn one page of results correlating PredictHQ event data with an analysis's transactional demand data for a required lower and upper date bound.
PREDICTHQ_LIST_BEAM_ANALYSIS_CORRELATION_RESULTSAcciónReturn one page of results correlating PredictHQ event data with an analysis's transactional demand data for a required lower and upper date bound.
Parámetros de entrada
limitintegerMaximum number of correlation results to return. Defaults to 30.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching records to skip.
date_gtstringFilter results after this date (exclusive), in YYYY-MM-DD format.
date_ltstringFilter results before this date (exclusive), in YYYY-MM-DD format.
date_gtestringFilter results on or after this date, in YYYY-MM-DD format.
date_ltestringFilter results on or before this date, in YYYY-MM-DD format.
analysis_idstringObligatorioAn existing Beam Analysis ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Beam Analysis GroupsPREDICTHQ_LIST_BEAM_ANALYSIS_GROUPSAcciónReturn one page of Beam Analysis Groups, optionally filtered by update date, name, lifecycle state, readiness, demand interval, or industry.
PREDICTHQ_LIST_BEAM_ANALYSIS_GROUPSAcciónReturn one page of Beam Analysis Groups, optionally filtered by update date, name, lifecycle state, readiness, demand interval, or industry.
Parámetros de entrada
sortstring[]Sort fields. Prefix a field with '-' to reverse its default direction.
limitintegerMaximum number of records to return on this page.
querystringSearch group names using partial or prefix matching.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching records to skip.
statusstring[]Group statuses to match: active or deleted.
updated_gtstringReturn groups updated after this date, exclusively.
updated_ltstringReturn groups updated before this date, exclusively.
updated_gtestringReturn groups updated on or after this date.
updated_ltestringReturn groups updated on or before this date.
readiness_statusstring[]Processing statuses to match: pending, failed, or ready.
demand_type_industrystring[]Demand-data industries to match.
demand_type_intervalstring[]Demand-data intervals to match: day or week.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Forecast AlgorithmsPREDICTHQ_LIST_FORECAST_ALGORITHMSAcciónReturns the list of available forecasting algorithms. Currently one algorithm is offered (`phq-xgboost`) based on XGBoost.
PREDICTHQ_LIST_FORECAST_ALGORITHMSAcciónReturns the list of available forecasting algorithms. Currently one algorithm is offered (`phq-xgboost`) based on XGBoost.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Forecast Model DemandPREDICTHQ_LIST_FORECAST_MODEL_DEMANDAcciónReturn one page of demand data uploaded to a forecast model, optionally filtered by date, as JSON, CSV, or newline-delimited JSON.
PREDICTHQ_LIST_FORECAST_MODEL_DEMANDAcciónReturn one page of demand data uploaded to a forecast model, optionally filtered by date, as JSON, CSV, or newline-delimited JSON.
Parámetros de entrada
limitintegerMaximum number of demand records to return. Defaults to 10.
cursorstringContinuation cursor returned by a previous JSON response.
offsetintegerNumber of matching demand records to skip. Defaults to 0.
date_gtstringReturn demand after this date (exclusive), in YYYY-MM-DD format.
date_ltstringReturn demand before this date (exclusive), in YYYY-MM-DD format.
date_gtestringReturn demand on or after this date, in YYYY-MM-DD format.
date_ltestringReturn demand on or before this date, in YYYY-MM-DD format.
model_idstringObligatorioUnique identifier of the forecast model.
response_formatstringenumResponse format: json, csv, or ndjson. Defaults to json.
jsoncsvndjson
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Forecast ModelsPREDICTHQ_LIST_FORECAST_MODELSAcciónReturn one page of forecast models belonging to the authenticated organization, optionally filtered by text, Saved Location, or readiness status.
PREDICTHQ_LIST_FORECAST_MODELSAcciónReturn one page of forecast models belonging to the authenticated organization, optionally filtered by text, Saved Location, or readiness status.
Parámetros de entrada
limitintegerMaximum number of models to return on this page. Defaults to 10.
querystringFull-text search across model name, label, and external ID.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching models to skip. Defaults to 0.
readiness_statusstring[]Model lifecycle statuses to match. Accepts a list or comma-separated string.
location_saved_location_idstring[]Saved Location IDs to match. Accepts a list or comma-separated string.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Loop Event SubmissionsPREDICTHQ_LIST_LOOP_EVENT_SUBMISSIONSAcciónReturn one page of Loop-submitted events matching link, event, user, review, state, category, location, and date filters.
PREDICTHQ_LIST_LOOP_EVENT_SUBMISSIONSAcciónReturn one page of Loop-submitted events matching link, event, user, review, state, category, location, and date filters.
Parámetros de entrada
sortstring[]Sort fields in priority order; a leading '-' reverses the documented direction.
labelstring[]Event labels to return.
limitintegerMaximum number of records to return on this page.
querystringFull-text search over submitted event information.
statestring[]Submitted event lifecycle states to return.
cursorstringContinuation cursor from a previous response. Omit for the first page.
end_gtstringdateReturn events ending after this date.
end_ltstringdateReturn events ending before this date.
offsetintegerNumber of matching records to skip.
countrystring[]Two-letter country codes to return.
end_gtestringdateReturn events ending on or after this date.
end_ltestringdateReturn events ending on or before this date.
link_idstring[]Loop Link IDs through which the events were submitted.
user_idstring[]IDs of users who submitted the events.
categorystring[]Event categories to return.
event_idstring[]Specific submitted event IDs to return.
start_gtstringdateReturn events starting after this date.
start_ltstringdateReturn events starting before this date.
active_gtstringdateReturn events active after this date.
active_ltstringdateReturn events active before this date.
start_gtestringdateReturn events starting on or after this date.
start_ltestringdateReturn events starting on or before this date.
active_gtestringdateReturn events active on or after this date.
active_ltestringdateReturn events active on or before this date.
created_gtstringdateReturn submissions created after this date.
created_ltstringdateReturn submissions created before this date.
org_reviewstringenumOrganization review status to return.
pendingapprovedrejectedphq_reviewstringenumPredictHQ moderation status to return.
pendingapprovedrejectedupdated_gtstringdateReturn submissions updated after this date.
updated_ltstringdateReturn submissions updated before this date.
created_gtestringdateReturn submissions created on or after this date.
created_ltestringdateReturn submissions created on or before this date.
updated_gtestringdateReturn submissions updated on or after this date.
updated_ltestringdateReturn submissions updated on or before this date.
private_includestringenumInclude public and private events, only public events, or only private events.
truefalseonly
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Loop Feedback ConversationsPREDICTHQ_LIST_LOOP_FEEDBACK_CONVERSATIONSAcciónReturn one page of Loop feedback conversations matching record, link, user, feedback type, status, text, and date filters.
PREDICTHQ_LIST_LOOP_FEEDBACK_CONVERSATIONSAcciónReturn one page of Loop feedback conversations matching record, link, user, feedback type, status, text, and date filters.
Parámetros de entrada
sortstring[]Sort fields in priority order. Prefix a field with '-' to reverse its default direction.
limitintegerMaximum conversations to return on this page.
querystringFull-text search over feedback conversations.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching conversations to skip.
statusstring[]Feedback statuses to match: open or closed.
link_idstring[]Loop Link IDs through which conversations were created.
user_idstring[]User IDs associated with the conversations.
record_idstring[]Event or Loop Submission record IDs referenced by the feedback.
created_gtstringReturn feedback created after this date-time, exclusively.
created_ltstringReturn feedback created before this date-time, exclusively.
updated_gtstringReturn feedback updated after this date-time, exclusively.
updated_ltstringReturn feedback updated before this date-time, exclusively.
created_gtestringReturn feedback created on or after this date-time.
created_ltestringReturn feedback created on or before this date-time.
record_typestring[]Record types to match: event-public or event-loop.
updated_gtestringReturn feedback updated on or after this date-time.
updated_ltestringReturn feedback updated on or before this date-time.
feedback_typestring[]Feedback types to match.
conversation_idstring[]Conversation IDs to match. Accepts a list or comma-separated string.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Loop LinksPREDICTHQ_LIST_LOOP_LINKSAcciónReturn one page of hosted Loop links matching text, link, user, and sort filters.
PREDICTHQ_LIST_LOOP_LINKSAcciónReturn one page of hosted Loop links matching text, link, user, and sort filters.
Parámetros de entrada
sortstring[]Sort fields in priority order. Prefix a field with '-' for descending order. Accepts a list or comma-separated string.
limitintegerMaximum number of Loop links to return. Defaults to 10.
querystringFull-text search across Loop links.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching Loop links to skip. Defaults to 0.
link_idstring[]Loop Link IDs to match. Accepts a list or comma-separated string.
user_idstring[]User IDs to match. Accepts a list or comma-separated string.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Model Forecast ResultsPREDICTHQ_LIST_MODEL_FORECAST_RESULTSAcciónReturn one page of generated forecast results for a trained model, optionally filtered by date and enriched with features or event explainability.
PREDICTHQ_LIST_MODEL_FORECAST_RESULTSAcciónReturn one page of generated forecast results for a trained model, optionally filtered by date and enriched with features or event explainability.
Parámetros de entrada
limitintegerMaximum number of forecast results to return on this page. Defaults to 10.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching forecast results to skip. Defaults to 0.
date_gtstringReturn forecast results after this date (exclusive), in YYYY-MM-DD format.
date_ltstringReturn forecast results before this date (exclusive), in YYYY-MM-DD format.
includestring[]List of additional fields to include in each result: phq_features and/or phq_explainability.
date_gtestringReturn forecast results on or after this date, in YYYY-MM-DD format.
date_ltestringReturn forecast results on or before this date, in YYYY-MM-DD format.
model_idstringObligatorioThe unique identifier of the forecast model.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Place HierarchiesPREDICTHQ_LIST_PLACE_HIERARCHIESAcciónReturn one page of administrative hierarchy chains resolved from either place IDs or coordinates.
PREDICTHQ_LIST_PLACE_HIERARCHIESAcciónReturn one page of administrative hierarchy chains resolved from either place IDs or coordinates.
Parámetros de entrada
levelstringenumAdministrative level at which to return hierarchy results. Omit to use PredictHQ's locality default.
planetcontinentcountryregioncountylocaladminlocalityneighbourhoodlimitintegerMaximum number of hierarchy chains to return on this page.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerZero-based index of the first hierarchy chain to return.
countrystring[]ISO 3166-1 alpha-2 country codes used to restrict a coordinate lookup. This filter is not applied when looking up place IDs.
location_originstringCoordinates formatted as latitude,longitude. Provide exactly one of this field or location_place_id.
location_place_idstring[]Place IDs whose stored administrative hierarchies to return. Accepts a list or comma-separated string. Provide exactly one of this field or location_origin.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Saved Location ClosuresPREDICTHQ_LIST_SAVED_LOCATION_CLOSURESAcciónReturn one page of closure records for a PredictHQ Saved Location, optionally filtered by the dates on which the records are active.
PREDICTHQ_LIST_SAVED_LOCATION_CLOSURESAcciónReturn one page of closure records for a PredictHQ Saved Location, optionally filtered by the dates on which the records are active.
Parámetros de entrada
limitintegerMaximum number of closure records to return. Defaults to 10.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching closure records to skip. Defaults to 0.
active_tostringFilter to closure records active on or before this date in YYYY-MM-DD format.
active_fromstringFilter to closure records active on or after this date in YYYY-MM-DD format.
location_idstringObligatorioAn existing Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Saved Location Insight EventsPREDICTHQ_LIST_SAVED_LOCATION_INSIGHT_EVENTSAcciónReturn one page of events that impact a specified PredictHQ Saved Location.
PREDICTHQ_LIST_SAVED_LOCATION_INSIGHT_EVENTSAcciónReturn one page of events that impact a specified PredictHQ Saved Location.
Parámetros de entrada
limitintegerMaximum number of records to return on this page.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching records to skip.
location_idstringObligatorioExisting Saved Location ID.
date_range_typestringDate range used to calculate insights. The supported value is next_90d.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Saved Location Opening HoursPREDICTHQ_LIST_SAVED_LOCATION_OPENING_HOURSAcciónReturn one page of opening-hours records for a Saved Location, optionally filtered by the dates on which the records are active.
PREDICTHQ_LIST_SAVED_LOCATION_OPENING_HOURSAcciónReturn one page of opening-hours records for a Saved Location, optionally filtered by the dates on which the records are active.
Parámetros de entrada
limitintegerMaximum number of records to return on this page.
cursorstringContinuation cursor from a previous response. Omit for the first page.
offsetintegerNumber of matching records to skip.
active_tostringReturn opening-hours records active on or before this date in YYYY-MM-DD format.
active_fromstringReturn opening-hours records active on or after this date in YYYY-MM-DD format.
location_idstringObligatorioExisting Saved Location ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Saved LocationsPREDICTHQ_LIST_SAVED_LOCATIONSAcciónSearch and return one page of Saved Locations, including reusable location IDs, geographic definitions, enrichment state, and summary insights.
PREDICTHQ_LIST_SAVED_LOCATIONSAcciónSearch and return one page of Saved Locations, including reusable location IDs, geographic definitions, enrichment state, and summary insights.
Parámetros de entrada
sortstring[]Fields to sort by, in priority order. Prefix a field with '-' for descending order. Accepts a list or comma-separated string.
limitintegerMaximum number of Saved Locations to return. Defaults to 10.
querystringFull-text search across name, description, location code, formatted address, and labels.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching Saved Locations to skip. Defaults to 0.
location_idstring[]Saved Location IDs to return, with at most 100 IDs. Accepts a list or comma-separated string.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refresh Beam AnalysisPREDICTHQ_REFRESH_BEAM_ANALYSISAcciónRerun correlation and analysis processing for an existing Beam Analysis. The analysis readiness status becomes pending until processing completes; the request fails if the analysis is already being processed.
PREDICTHQ_REFRESH_BEAM_ANALYSISAcciónRerun correlation and analysis processing for an existing Beam Analysis. The analysis readiness status becomes pending until processing completes; the request fails if the analysis is already being processed.
Parámetros de entrada
analysis_idstringObligatorioAn existing Beam Analysis ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refresh Beam Analysis GroupPREDICTHQ_REFRESH_BEAM_ANALYSIS_GROUPAcciónRerun aggregation for an existing Beam Analysis Group. The group's readiness status becomes pending until processing completes; the request fails if the group is already being processed.
PREDICTHQ_REFRESH_BEAM_ANALYSIS_GROUPAcciónRerun aggregation for an existing Beam Analysis Group. The group's readiness status becomes pending until processing completes; the request fails if the group is already being processed.
Parámetros de entrada
group_idstringObligatorioAn existing Beam Analysis Group ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Beam AnalysisPREDICTHQ_REPLACE_BEAM_ANALYSISAcciónFully replace an existing Beam analysis using PUT. Retrieve the current analysis first and include every value that must be preserved; omitted optional fields may be lost. Use the partial-update action for PATCH semantics.
PREDICTHQ_REPLACE_BEAM_ANALYSISAcciónFully replace an existing Beam analysis using PUT. Retrieve the current analysis first and include every value that must be preserved; omitted optional fields may be lost. Use the partial-update action for PATCH semantics.
Parámetros de entrada
bodyobjectObligatorioComplete replacement body. Omitted optional fields are not preserved; retrieve the analysis first and include values that must remain.
analysis_idstringObligatorioID of the existing Beam analysis to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Beam Analysis GroupPREDICTHQ_REPLACE_BEAM_ANALYSIS_GROUPAcciónFully replace an existing Beam analysis group using PUT. Retrieve the current group first and include all values that must be preserved; use the partial-update action when omitted fields should remain unchanged.
PREDICTHQ_REPLACE_BEAM_ANALYSIS_GROUPAcciónFully replace an existing Beam analysis group using PUT. Retrieve the current group first and include all values that must be preserved; use the partial-update action when omitted fields should remain unchanged.
Parámetros de entrada
bodyobjectObligatorioComplete replacement body. Retrieve the group first and include every value that must be preserved.
group_idstringObligatorioID of the existing Beam analysis group to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Forecast ModelPREDICTHQ_REPLACE_FORECAST_MODELAcciónFully replace an existing forecast model's mutable configuration. This is the PUT replacement operation, not the partial PATCH update. Configuration changes may make the model stale and require retraining, and are blocked while it is preparing, training, or forecasting.
PREDICTHQ_REPLACE_FORECAST_MODELAcciónFully replace an existing forecast model's mutable configuration. This is the PUT replacement operation, not the partial PATCH update. Configuration changes may make the model stale and require retraining, and are blocked while it is preparing, training, or forecasting.
Parámetros de entrada
bodyobjectObligatorioComplete replacement configuration. This PUT replaces the model's mutable configuration rather than partially updating it.
model_idstringObligatorioUnique ID of the forecast model to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Loop LinkPREDICTHQ_REPLACE_LOOP_LINKAcciónFully replace the mutable name, expiry, and metadata of an existing PredictHQ Loop Link using PUT.
PREDICTHQ_REPLACE_LOOP_LINKAcciónFully replace the mutable name, expiry, and metadata of an existing PredictHQ Loop Link using PUT.
Parámetros de entrada
bodyobjectObligatorioComplete replacement body for the Loop Link's mutable name, expiry, and metadata fields.
link_idstringObligatorioID of the existing Loop Link to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Saved LocationPREDICTHQ_REPLACE_SAVED_LOCATIONAcciónFully replace an existing PredictHQ Saved Location using PUT. Include every value that must be preserved. To recalculate its Predicted Impact Area, provide origin_geojson without geojson or place_ids.
PREDICTHQ_REPLACE_SAVED_LOCATIONAcciónFully replace an existing PredictHQ Saved Location using PUT. Include every value that must be preserved. To recalculate its Predicted Impact Area, provide origin_geojson without geojson or place_ids.
Parámetros de entrada
bodyobjectObligatorioComplete replacement body. Retrieve the Saved Location first and include every value that must be preserved.
location_idstringObligatorioID of the existing Saved Location to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Saved Location Opening HoursPREDICTHQ_REPLACE_SAVED_LOCATION_OPENING_HOURSAcciónFully replace one PredictHQ Saved Location opening-hours record. This PUT operation replaces the complete record and rejects date ranges that overlap another opening-hours record for the location.
PREDICTHQ_REPLACE_SAVED_LOCATION_OPENING_HOURSAcciónFully replace one PredictHQ Saved Location opening-hours record. This PUT operation replaces the complete record and rejects date ranges that overlap another opening-hours record for the location.
Parámetros de entrada
bodyobjectObligatorioComplete replacement opening-hours body. Its date range must not overlap another opening-hours record for this location.
location_idstringObligatorioID of the existing Saved Location.
opening_hours_idstringObligatorioID of the existing opening-hours record to replace.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search BroadcastsPREDICTHQ_SEARCH_BROADCASTSAcciónReturn one page of US county-level live-TV broadcast records matching event, geography, status, and date filters.
PREDICTHQ_SEARCH_BROADCASTSAcciónReturn one page of US county-level live-TV broadcast records matching event, geography, status, and date filters.
Parámetros de entrada
sortstring[]Sort fields. Prefix a field with '-' for descending order; defaults to start ascending.
limitintegerMaximum records to return on this page (1-500).
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerNumber of matching records to skip. Defaults to 0 and cannot exceed 5000.
start_gtstringMatch broadcasts starting after this date or date-time.
start_ltstringMatch broadcasts starting before this date or date-time.
start_tzstringTZ Database timezone used to interpret start filters; defaults to UTC.
start_gtestringMatch broadcasts starting on or after this date or date-time.
start_ltestringMatch broadcasts starting on or before this date or date-time.
updated_gtstringMatch broadcasts updated after this date or date-time.
updated_ltstringMatch broadcasts updated before this date or date-time.
updated_tzstringTZ Database timezone used to interpret updated filters; defaults to UTC.
event_labelstring[]Case-sensitive lowercase event labels to match; any supplied label may match.
updated_gtestringMatch broadcasts updated on or after this date or date-time.
updated_ltestringMatch broadcasts updated on or before this date or date-time.
broadcast_idstring[]Broadcast IDs to match. Multiple IDs may be supplied as a list or comma-separated string.
first_seen_gtstringMatch broadcasts first seen after this date or date-time.
first_seen_ltstringMatch broadcasts first seen before this date or date-time.
first_seen_tzstringTZ Database timezone used to interpret first-seen filters; defaults to UTC.
record_statusstring[]Record statuses to match: active, deleted, or duplicate. Defaults to active.
event_categorystring[]Physical event categories to match.
event_event_idstring[]Physical event IDs whose broadcasts should be returned.
first_seen_gtestringMatch broadcasts first seen on or after this date or date-time.
first_seen_ltestringMatch broadcasts first seen on or before this date or date-time.
event_entity_idstring[]Event entity IDs to match, such as team or venue IDs.
location_originstringLatitude and longitude used to search the containing county, formatted as latitude,longitude.
broadcast_statusstring[]Schedule statuses to match: scheduled, predicted, or cancelled.
location_place_idstring[]Place IDs whose counties should be searched. State and sub-county place IDs resolve to their covered counties.
phq_viewership_gtintegerMatch broadcasts with PHQ Viewership greater than this value.
phq_viewership_ltintegerMatch broadcasts with PHQ Viewership less than this value.
phq_viewership_gteintegerMatch broadcasts with PHQ Viewership greater than or equal to this value.
phq_viewership_lteintegerMatch broadcasts with PHQ Viewership less than or equal to this value.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search EventsPREDICTHQ_SEARCH_EVENTSAcciónSearch for events happening in a location and date range using PredictHQ's event, location, rank, label, attendance, spend, and lifecycle filters. Returns one page and a continuation cursor.
PREDICTHQ_SEARCH_EVENTSAcciónSearch for events happening in a location and date range using PredictHQ's event, location, rank, label, attendance, spend, and lifecycle filters. Returns one page and a continuation cursor.
Parámetros de entrada
idstring[]Event IDs to return.
sortstring[]Fields to sort by. Prefix a field with '-' to reverse its documented direction.
labelstring[]Deprecated legacy event labels; use phq_label instead.
limitintegerMaximum events to return on this page.
querystringFull-text event search query.
statestring[]Event publication states; defaults to active.
cursorstringContinuation cursor from a previous response. Omit for the first page.
end_gtstringReturn events ending after this ISO 8601 date or timestamp.
end_ltstringReturn events ending before this ISO 8601 date or timestamp.
end_tzstringTZ Database timezone used by end date filters; defaults to UTC.
offsetintegerZero-based result offset.
withinstringRadius and center as {radius}{unit}@{latitude},{longitude}; cannot be combined with beam_analysis_id.
countrystring[]Two-letter country codes. Cannot be combined with beam_analysis_id.
end_gtestringReturn events ending on or after this ISO 8601 date or timestamp.
end_ltestringReturn events ending on or before this ISO 8601 date or timestamp.
rank_gtintegerMinimum PHQ Rank, exclusive; cannot be combined with beam_analysis_id.
rank_ltintegerMaximum PHQ Rank, exclusive; cannot be combined with beam_analysis_id.
categorystring[]Event categories. Cannot be combined with beam_analysis_id.
placekeystring[]Full or partial Placekeys; cannot be combined with beam_analysis_id.
rank_gteintegerMinimum PHQ Rank, inclusive; cannot be combined with beam_analysis_id.
rank_lteintegerMaximum PHQ Rank, inclusive; cannot be combined with beam_analysis_id.
start_gtstringReturn events starting after this ISO 8601 date or timestamp.
start_ltstringReturn events starting before this ISO 8601 date or timestamp.
start_tzstringTZ Database timezone used by start date filters; defaults to UTC.
active_gtstringReturn events active after this ISO 8601 date or timestamp.
active_ltstringReturn events active before this ISO 8601 date or timestamp.
active_tzstringTZ Database timezone used by active date filters; defaults to UTC.
entity_idstring[]Entity IDs linked to returned events.
impact_gtstringReturn events whose predicted impact begins after this ISO 8601 date; use with impact_industry.
impact_ltstringReturn events whose predicted impact ends before this ISO 8601 date; use with impact_industry.
impact_tzstringTZ Database timezone used by impact date filters; defaults to UTC.
phq_labelstring[]Case-sensitive lowercase PHQ labels.
start_gtestringReturn events starting on or after this ISO 8601 date or timestamp.
start_ltestringReturn events starting on or before this ISO 8601 date or timestamp.
active_gtestringReturn events active on or after this ISO 8601 date or timestamp.
active_ltestringReturn events active on or before this ISO 8601 date or timestamp.
impact_gtestringReturn events whose predicted impact begins on or after this ISO 8601 date; use with impact_industry.
impact_ltestringReturn events whose predicted impact ends on or before this ISO 8601 date; use with impact_industry.
rank_levelinteger[]PHQ Rank levels from 1 (minor) through 5 (major); cannot be combined with beam_analysis_id.
updated_gtstringReturn events updated after this ISO 8601 date or timestamp.
updated_ltstringReturn events updated before this ISO 8601 date or timestamp.
updated_tzstringTZ Database timezone used by updated date filters; defaults to UTC.
place_exactstring[]Exact Place IDs or airport codes; cannot be combined with beam_analysis_id.
place_scopestring[]Place IDs or airport codes, including parent and child places; cannot be combined with beam_analysis_id.
updated_gtestringReturn events updated on or after this ISO 8601 date or timestamp.
updated_ltestringReturn events updated on or before this ISO 8601 date or timestamp.
cancelled_gtstringReturn events cancelled after this ISO 8601 date or timestamp.
cancelled_ltstringReturn events cancelled before this ISO 8601 date or timestamp.
cancelled_tzstringTZ Database timezone used by cancelled date filters; defaults to UTC.
phq_label_opstringenumRequire all or any included PHQ labels; defaults to any.
allanypostponed_gtstringReturn events postponed after this ISO 8601 date or timestamp.
postponed_ltstringReturn events postponed before this ISO 8601 date or timestamp.
postponed_tzstringTZ Database timezone used by postponed date filters; defaults to UTC.
beam_group_idstringBeam Analysis Group ID; requires beam_analysis_id.
cancelled_gtestringReturn events cancelled on or after this ISO 8601 date or timestamp.
cancelled_ltestringReturn events cancelled on or before this ISO 8601 date or timestamp.
first_seen_gtstringReturn events first seen after this ISO 8601 date or timestamp.
first_seen_ltstringReturn events first seen before this ISO 8601 date or timestamp.
first_seen_tzstringTZ Database timezone used by first-seen filters; defaults to UTC.
local_rank_gtintegerMinimum Local Rank, exclusive; cannot be combined with beam_analysis_id.
local_rank_ltintegerMaximum Local Rank, exclusive; cannot be combined with beam_analysis_id.
postponed_gtestringReturn events postponed on or after this ISO 8601 date or timestamp.
postponed_ltestringReturn events postponed on or before this ISO 8601 date or timestamp.
deleted_reasonstring[]Reasons deleted events were removed.
first_seen_gtestringReturn events first seen on or after this ISO 8601 date or timestamp.
first_seen_ltestringReturn events first seen on or before this ISO 8601 date or timestamp.
local_rank_gteintegerMinimum Local Rank, inclusive; cannot be combined with beam_analysis_id.
local_rank_lteintegerMaximum Local Rank, inclusive; cannot be combined with beam_analysis_id.
parent_includestringenumInclude parent events, exclude them, or return only parents; defaults to true.
truefalseonlyimpact_industrystringenumIndustry used to calculate predicted impact patterns.
accommodationcpgtourismmarketingparkingrestaurantsretailtransportationprivate_includestringenumInclude private events, exclude them, or return only private events; defaults to false.
truefalseonlyprivate_user_idstring[]User IDs associated with private events; requires private_include=true or only.
beam_analysis_idstringBeam Analysis ID used to derive location, rank, and categories; mutually exclusive with explicit location, category, and rank filters.
local_rank_levelinteger[]Local Rank levels from 1 (minor) through 5 (major); cannot be combined with beam_analysis_id.
predicted_end_gtstringReturn events predicted to end after this ISO 8601 date or timestamp.
predicted_end_ltstringReturn events predicted to end before this ISO 8601 date or timestamp.
predicted_end_tzstringTZ Database timezone used by predicted-end filters; defaults to UTC.
phq_attendance_gtintegerMinimum predicted attendance, exclusive.
phq_attendance_ltintegerMaximum predicted attendance, exclusive.
phq_label_excludestring[]Case-sensitive lowercase PHQ labels to exclude.
predicted_end_gtestringReturn events predicted to end on or after this ISO 8601 date or timestamp.
predicted_end_ltestringReturn events predicted to end on or before this ISO 8601 date or timestamp.
phq_attendance_gteintegerMinimum predicted attendance, inclusive.
phq_attendance_lteintegerMaximum predicted attendance, inclusive.
private_org_reviewstring[]Organization review statuses for private events; requires private_include=true or only.
brand_unsafe_excludestringenumWhether to exclude potentially brand-unsafe events; defaults to false.
truefalsephq_label_exclude_opstringenumExclude events matching all or any excluded PHQ labels; defaults to any.
allanypredicted_event_spend_gtintegerMinimum total Predicted Event Spend in USD, exclusive.
predicted_event_spend_ltintegerMaximum total Predicted Event Spend in USD, exclusive.
predicted_event_spend_gteintegerMinimum total Predicted Event Spend in USD, inclusive.
predicted_event_spend_lteintegerMaximum total Predicted Event Spend in USD, inclusive.
saved_location_location_idstring[]Up to 20 saved-location IDs; cannot be combined with beam_analysis_id.
location_confidence_score_gtintegerMinimum predicted-event location confidence score, exclusive.
location_confidence_score_ltintegerMaximum predicted-event location confidence score, exclusive.
location_confidence_score_gteintegerMinimum predicted-event location confidence score, inclusive.
location_confidence_score_lteintegerMaximum predicted-event location confidence score, inclusive.
predicted_event_spend_industrystringenumIndustry segment for the industry-specific Predicted Event Spend filter.
accommodationhospitalitytransportationstart_date_confidence_score_gtintegerMinimum predicted-event start-date confidence score, exclusive.
start_date_confidence_score_ltintegerMaximum predicted-event start-date confidence score, exclusive.
start_date_confidence_score_gteintegerMinimum predicted-event start-date confidence score, inclusive.
start_date_confidence_score_lteintegerMaximum predicted-event start-date confidence score, inclusive.
predicted_event_spend_industry_valueintegerIndustry-specific Predicted Event Spend in USD; set its industry and operator fields too.
predicted_event_spend_industry_operatorstringenumComparison operator for the industry-specific Predicted Event Spend filter.
gtgteltlte
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search PlacesPREDICTHQ_SEARCH_PLACESAcciónReturn one page of places matching text, country, coordinates, place IDs, or administrative type filters.
PREDICTHQ_SEARCH_PLACESAcciónReturn one page of places matching text, country, coordinates, place IDs, or administrative type filters.
Parámetros de entrada
idstring[]Place IDs to match. Supply a list or comma-separated string.
typestring[]Place types to match. Supply administrative levels or the major, metro, or local aliases as a list or comma-separated string.
limitintegerMaximum number of places to return on this page (1-10000).
querystringFull-text place-name search query.
cursorstringContinuation cursor returned by a previous call. Omit for the first page.
offsetintegerZero-based index of the first result to return.
countrystring[]ISO 3166-1 alpha-2 country codes to match. Supply a list or comma-separated string.
locationstringCoordinates as @latitude,longitude or latitude,longitude.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Train Forecast ModelPREDICTHQ_TRAIN_FORECAST_MODELAcciónTriggers asynchronous training for a forecast model that has uploaded demand data and is in an eligible readiness state. Poll the model's `readiness.status` field to monitor progress.
PREDICTHQ_TRAIN_FORECAST_MODELAcciónTriggers asynchronous training for a forecast model that has uploaded demand data and is in an eligible readiness state. Poll the model's `readiness.status` field to monitor progress.
Parámetros de entrada
model_idstringObligatorioThe unique identifier of the forecast model to train.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Beam AnalysisPREDICTHQ_UPDATE_BEAM_ANALYSISAcciónPartially update one or more fields on an existing Beam analysis without replacing fields that are omitted.
PREDICTHQ_UPDATE_BEAM_ANALYSISAcciónPartially update one or more fields on an existing Beam analysis without replacing fields that are omitted.
Parámetros de entrada
bodyobjectObligatorioOne or more Beam analysis fields to update; omitted fields remain unchanged.
analysis_idstringObligatorioUnique identifier of the existing Beam analysis to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Beam Analysis GroupPREDICTHQ_UPDATE_BEAM_ANALYSIS_GROUPAcciónPartially update an existing Beam analysis group using PATCH. Only fields provided in the request are changed; use the replacement action to replace all fields.
PREDICTHQ_UPDATE_BEAM_ANALYSIS_GROUPAcciónPartially update an existing Beam analysis group using PATCH. Only fields provided in the request are changed; use the replacement action to replace all fields.
Parámetros de entrada
bodyobjectObligatorioOne or more analysis group fields to update; omitted fields remain unchanged.
group_idstringObligatorioID of the existing Beam analysis group to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Forecast ModelPREDICTHQ_UPDATE_FORECAST_MODELAcciónPartially update a forecast model. Changes to location, demand type, forecast window, algorithm, or baseline generation are blocked while the model is preparing, training, or forecasting, and otherwise make it stale until it is retrained.
PREDICTHQ_UPDATE_FORECAST_MODELAcciónPartially update a forecast model. Changes to location, demand type, forecast window, algorithm, or baseline generation are blocked while the model is preparing, training, or forecasting, and otherwise make it stale until it is retrained.
Parámetros de entrada
bodyobjectObligatorioFields to update. Omitted fields remain unchanged.
model_idstringObligatorioUnique identifier of the forecast model to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload Beam Analysis DemandPREDICTHQ_UPLOAD_BEAM_ANALYSIS_DEMANDAcciónUpload daily or weekly demand data to an existing Beam analysis. New values replace existing values for matching dates, and individual dates cannot be removed. The complete stored series must remain valid after each upload.
PREDICTHQ_UPLOAD_BEAM_ANALYSIS_DEMANDAcciónUpload daily or weekly demand data to an existing Beam analysis. New values replace existing values for matching dates, and individual dates cannot be removed. The complete stored series must remain valid after each upload.
Parámetros de entrada
bodyanyObligatorioPayload matching content_type. For application/json, provide one typed object containing date and demand. For CSV, provide lowercase date,demand headers and rows. For NDJSON or deprecated LDJSON, provide one date and demand JSON object per line.
analysis_idstringObligatorioUnique identifier of the existing Beam analysis receiving demand data.
content_typestringenumPayload representation. Use application/json for a typed data point, application/x-ndjson for newline-delimited JSON, text/csv for CSV, or deprecated application/x-ldjson only for legacy newline-delimited JSON.
application/jsonapplication/x-ldjsonapplication/x-ndjsontext/csv
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload Forecast Model DemandPREDICTHQ_UPLOAD_FORECAST_MODEL_DEMANDAcciónUpload historical demand data to an existing forecast model as typed JSON, CSV, or newline-delimited JSON. The upload changes the model's training data and requires paid Forecasts access.
PREDICTHQ_UPLOAD_FORECAST_MODEL_DEMANDAcciónUpload historical demand data to an existing forecast model as typed JSON, CSV, or newline-delimited JSON. The upload changes the model's training data and requires paid Forecasts access.
Parámetros de entrada
bodyanyObligatorioPayload matching content_type. For application/json, provide an object with a non-empty demand array. For application/x-ndjson, provide one {date, demand} JSON object per line. For text/csv, provide lowercase date,demand headers followed by data rows.
model_idstringObligatorioUnique identifier of the forecast model receiving the demand data.
content_typestringObligatorioenumPayload representation: application/json for a typed demand object, application/x-ndjson for newline-delimited objects, or text/csv for lowercase date,demand columns.
application/jsonapplication/x-ndjsontext/csv
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert Loop SettingsPREDICTHQ_UPSERT_LOOP_SETTINGSAcciónCreate or replace the organization-wide display name used by the hosted Loop interface. WARNING: this changes the Loop UI for the entire organization. Read and save the current settings first, obtain explicit approval, and have an unconditional restoration plan before calling.
PREDICTHQ_UPSERT_LOOP_SETTINGSAcciónCreate or replace the organization-wide display name used by the hosted Loop interface. WARNING: this changes the Loop UI for the entire organization. Read and save the current settings first, obtain explicit approval, and have an unconditional restoration plan before calling.
Parámetros de entrada
bodyobjectObligatorioComplete organization-wide Loop settings body. This replaces the display name for every user of the organization's hosted Loop UI.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not