Volver al catálogo

PredictHQ

predicthq

PredictHQ provides event intelligence, demand forecasting, and location analytics APIs for anticipating changes in demand.

Acciones
62
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Calculate 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

  • bodyobjectObligatorio

    Structured PredictHQ Features API request body.

  • limitinteger

    Maximum results to return.

  • acceptstringenum

    Response media type: application/json or text/csv.

    application/jsontext/csv
  • cursorstring

    Continuation cursor returned by a previous JSON response.

  • offsetinteger

    Result offset.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Count BroadcastsPREDICTHQ_COUNT_BROADCASTSAcción

Return 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_gtstring

    Find broadcasts starting after this date or date-time.

  • start_ltstring

    Find broadcasts starting before this date or date-time.

  • start_tzstring

    TZ Database time zone used for start filters. Defaults to UTC upstream.

  • start_gtestring

    Find broadcasts starting at or after this date or date-time.

  • start_ltestring

    Find broadcasts starting at or before this date or date-time.

  • updated_gtstring

    Find broadcasts updated after this date or date-time.

  • updated_ltstring

    Find broadcasts updated before this date or date-time.

  • updated_tzstring

    TZ 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_gtestring

    Find broadcasts updated at or after this date or date-time.

  • updated_ltestring

    Find broadcasts updated at or before this date or date-time.

  • broadcast_idstring[]

    Find broadcasts by a list of unique identifiers.

  • first_seen_gtstring

    Find broadcasts first seen after this date or date-time.

  • first_seen_ltstring

    Find broadcasts first seen before this date or date-time.

  • first_seen_tzstring

    TZ 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_gtestring

    Find broadcasts first seen at or after this date or date-time.

  • first_seen_ltestring

    Find 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_originstring

    Find 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_gtinteger

    Find broadcasts with PHQ Viewership above this value.

  • phq_viewership_ltinteger

    Find broadcasts with PHQ Viewership below this value.

  • phq_viewership_gteinteger

    Find broadcasts with PHQ Viewership at or above this value.

  • phq_viewership_lteinteger

    Find broadcasts with PHQ Viewership at or below this value.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Count EventsPREDICTHQ_COUNT_EVENTSAcción

Get 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.

  • querystring

    Full-text event search query.

  • statestring[]

    Event states to include; the provider default is active.

  • end_gtstring

    Return events ending after this date or date-time.

  • end_ltstring

    Return events ending before this date or date-time.

  • end_tzstring

    TZ Database timezone for end date filters.

  • withinstring

    Geographic radius filter formatted as radius and unit at latitude,longitude.

  • countrystring[]

    Two-letter country codes; cannot be combined with beam_analysis_id.

  • end_gtestring

    Return events ending on or after this date or date-time.

  • end_ltestring

    Return events ending on or before this date or date-time.

  • rank_gtinteger

    Minimum PHQ Rank, exclusive.

  • rank_ltinteger

    Maximum PHQ Rank, exclusive.

  • categorystring[]

    Event categories; cannot be combined with beam_analysis_id.

  • placekeystring[]

    Full or partial Placekeys to match.

  • rank_gteinteger

    Minimum PHQ Rank, inclusive.

  • rank_lteinteger

    Maximum PHQ Rank, inclusive.

  • start_gtstring

    Return events starting after this date or date-time.

  • start_ltstring

    Return events starting before this date or date-time.

  • start_tzstring

    TZ Database timezone for start date filters.

  • active_gtstring

    Return events active after this date or date-time.

  • active_ltstring

    Return events active before this date or date-time.

  • active_tzstring

    TZ Database timezone for active date filters; defaults to UTC.

  • entity_idstring[]

    Entity IDs to include.

  • impact_gtstring

    Return events whose predicted impact starts after this date.

  • impact_ltstring

    Return events whose predicted impact ends before this date.

  • impact_tzstring

    TZ Database timezone for predicted-impact date filters.

  • phq_labelstring[]

    Case-sensitive lowercase PHQ labels to include.

  • start_gtestring

    Return events starting on or after this date or date-time.

  • start_ltestring

    Return events starting on or before this date or date-time.

  • active_gtestring

    Return events active on or after this date or date-time.

  • active_ltestring

    Return events active on or before this date or date-time.

  • impact_gtestring

    Return events whose predicted impact starts on or after this date.

  • impact_ltestring

    Return events whose predicted impact ends on or before this date.

  • rank_levelinteger[]

    PHQ Rank levels from 1 (minor) through 5 (major).

  • updated_gtstring

    Return events updated after this date or date-time.

  • updated_ltstring

    Return events updated before this date or date-time.

  • updated_tzstring

    TZ 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_gtestring

    Return events updated on or after this date or date-time.

  • updated_ltestring

    Return events updated on or before this date or date-time.

  • cancelled_gtstring

    Return events cancelled after this date or date-time.

  • cancelled_ltstring

    Return events cancelled before this date or date-time.

  • cancelled_tzstring

    TZ Database timezone for cancelled date filters.

  • phq_label_opstringenum

    Require all or any supplied PHQ labels.

    allany
  • postponed_gtstring

    Return events postponed after this date or date-time.

  • postponed_ltstring

    Return events postponed before this date or date-time.

  • postponed_tzstring

    TZ Database timezone for postponed date filters.

  • beam_group_idstring

    Beam Analysis group ID; requires beam_analysis_id.

  • cancelled_gtestring

    Return events cancelled on or after this date or date-time.

  • cancelled_ltestring

    Return events cancelled on or before this date or date-time.

  • first_seen_gtstring

    Return events first seen after this date or date-time.

  • first_seen_ltstring

    Return events first seen before this date or date-time.

  • first_seen_tzstring

    TZ Database timezone for first-seen date filters.

  • local_rank_gtinteger

    Minimum Local Rank, exclusive.

  • local_rank_ltinteger

    Maximum Local Rank, exclusive.

  • postponed_gtestring

    Return events postponed on or after this date or date-time.

  • postponed_ltestring

    Return events postponed on or before this date or date-time.

  • deleted_reasonstring[]

    Deletion reasons to include.

  • first_seen_gtestring

    Return events first seen on or after this date or date-time.

  • first_seen_ltestring

    Return events first seen on or before this date or date-time.

  • local_rank_gteinteger

    Minimum Local Rank, inclusive.

  • local_rank_lteinteger

    Maximum Local Rank, inclusive.

  • parent_includestringenum

    Include parent events, exclude them, or return only parents.

    truefalseonly
  • impact_industrystringenum

    Industry used for Predicted Impact Pattern date filters.

    accommodationcpgtourismmarketingparkingrestaurantsretailtransportation
  • private_includestringenum

    Include private events, exclude them, or return only private events.

    truefalseonly
  • private_user_idstring[]

    User IDs associated with private events; requires private_include.

  • beam_analysis_idstring

    Beam Analysis ID used to derive location, rank, and category filters.

  • local_rank_levelinteger[]

    Local Rank levels from 1 (minor) through 5 (major).

  • predicted_end_gtstring

    Return events predicted to end after this date.

  • predicted_end_ltstring

    Return events predicted to end before this date.

  • predicted_end_tzstring

    TZ Database timezone for predicted-end date filters.

  • phq_attendance_gtinteger

    Minimum Predicted Attendance, exclusive.

  • phq_attendance_ltinteger

    Maximum Predicted Attendance, exclusive.

  • phq_label_excludestring[]

    Case-sensitive lowercase PHQ labels to exclude.

  • predicted_end_gtestring

    Return events predicted to end on or after this date.

  • predicted_end_ltestring

    Return events predicted to end on or before this date.

  • phq_attendance_gteinteger

    Minimum Predicted Attendance, inclusive.

  • phq_attendance_lteinteger

    Maximum Predicted Attendance, inclusive.

  • private_org_reviewstring[]

    Organization review statuses for private events.

  • brand_unsafe_excludestringenum

    Exclude potentially brand-unsafe events.

    truefalse
  • phq_label_exclude_opstringenum

    Exclude events matching all or any excluded PHQ labels.

    allany
  • predicted_event_spend_gtinteger

    Minimum Predicted Event Spend in USD, exclusive.

  • predicted_event_spend_ltinteger

    Maximum Predicted Event Spend in USD, exclusive.

  • predicted_event_spend_gteinteger

    Minimum Predicted Event Spend in USD, inclusive.

  • predicted_event_spend_lteinteger

    Maximum Predicted Event Spend in USD, inclusive.

  • saved_location_location_idstring[]

    Up to 20 saved-location IDs to include.

  • location_confidence_score_gtinteger

    Minimum location confidence score, exclusive.

  • location_confidence_score_ltinteger

    Maximum location confidence score, exclusive.

  • location_confidence_score_gteinteger

    Minimum location confidence score, inclusive.

  • location_confidence_score_lteinteger

    Maximum location confidence score, inclusive.

  • predicted_event_spend_industrystringenum

    Industry segment for the industry-specific Predicted Event Spend filter.

    accommodationhospitalitytransportation
  • start_date_confidence_score_gtinteger

    Minimum start-date confidence score, exclusive.

  • start_date_confidence_score_ltinteger

    Maximum start-date confidence score, exclusive.

  • start_date_confidence_score_gteinteger

    Minimum start-date confidence score, inclusive.

  • start_date_confidence_score_lteinteger

    Maximum start-date confidence score, inclusive.

  • predicted_event_spend_industry_valueinteger

    Industry-specific Predicted Event Spend in USD; set its industry and operator fields too.

  • predicted_event_spend_industry_operatorstringenum

    Comparison operator for the industry-specific Predicted Event Spend filter.

    gtgteltlte

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Beam AnalysisPREDICTHQ_CREATE_BEAM_ANALYSISAcción

Create a Beam analysis that correlates an owned location's events with uploaded demand data.

Parámetros de entrada

  • bodyobjectObligatorio

    Complete documented PredictHQ Beam analysis creation body.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Beam Analysis GroupPREDICTHQ_CREATE_BEAM_ANALYSIS_GROUPAcción

Create a Beam analysis group that aggregates feature importance across compatible analyses.

Parámetros de entrada

  • bodyobjectObligatorio

    Complete documented PredictHQ Beam analysis group creation body.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Forecast ModelPREDICTHQ_CREATE_FORECAST_MODELAcción

Create 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

  • bodyobjectObligatorio

    Documented PredictHQ forecast model creation body.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Loop LinkPREDICTHQ_CREATE_LOOP_LINKAcción

Create 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

  • bodyobjectObligatorio

    Complete Loop Link creation body. All properties are optional; an empty object creates a default-named active link.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Saved LocationPREDICTHQ_CREATE_SAVED_LOCATIONAcción

Create a reusable PredictHQ Saved Location from an exact business point, a custom GeoJSON area, or Geonames place IDs.

Parámetros de entrada

  • bodyobjectObligatorio

    Saved Location fields. Provide exactly one location representation: geojson, place_ids, or origin_geojson.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Saved Location ClosurePREDICTHQ_CREATE_SAVED_LOCATION_CLOSUREAcción

Create a closure period for a PredictHQ Saved Location. The date range must not overlap an existing closure for the location.

Parámetros de entrada

  • bodyobjectObligatorio

    Complete documented closure creation body.

  • location_idstringObligatorio

    Existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Saved Location Opening HoursPREDICTHQ_CREATE_SAVED_LOCATION_OPENING_HOURSAcción

Create 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

  • bodyobjectObligatorio

    Complete opening-hours record to create.

  • location_idstringObligatorio

    ID of the existing Saved Location.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Beam AnalysisPREDICTHQ_DELETE_BEAM_ANALYSISAcción

Soft-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_idstringObligatorio

    An existing Beam Analysis ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Beam Analysis GroupPREDICTHQ_DELETE_BEAM_ANALYSIS_GROUPAcción

Delete an existing Beam Analysis Group without deleting the individual analyses in the group.

Parámetros de entrada

  • group_idstringObligatorio

    An existing Beam Analysis Group ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Forecast ModelPREDICTHQ_DELETE_FORECAST_MODELAcción

Permanently 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_idstringObligatorio

    The unique identifier of the forecast model to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Loop LinkPREDICTHQ_DELETE_LOOP_LINKAcción

Soft-delete a Loop link. The record remains retrievable with `status=deleted`.

Parámetros de entrada

  • link_idstringObligatorio

    An existing Loop Link ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Saved LocationPREDICTHQ_DELETE_SAVED_LOCATIONAcción

Permanently delete a Saved Location and all of its associated insights data. This action is irreversible.

Parámetros de entrada

  • location_idstringObligatorio

    An existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Saved Location ClosurePREDICTHQ_DELETE_SAVED_LOCATION_CLOSUREAcción

Delete a closure by ID from the specified PredictHQ Saved Location. This action is irreversible.

Parámetros de entrada

  • closure_idstringObligatorio

    An existing closure record ID.

  • location_idstringObligatorio

    An existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Saved Location Opening HoursPREDICTHQ_DELETE_SAVED_LOCATION_OPENING_HOURSAcción

Delete an opening hours record by ID from the specified PredictHQ Saved Location. This action is irreversible.

Parámetros de entrada

  • location_idstringObligatorio

    An existing Saved Location ID.

  • opening_hours_idstringObligatorio

    An existing opening hours record ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Beam AnalysisPREDICTHQ_GET_BEAM_ANALYSISAcción

Return the full details of one Beam Analysis, including its location, demand type, rank, readiness status, and processing state.

Parámetros de entrada

  • analysis_idstringObligatorio

    An existing Beam Analysis ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Beam Analysis Feature ImportancePREDICTHQ_GET_BEAM_ANALYSIS_FEATURE_IMPORTANCEAcción

Return 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_idstringObligatorio

    An existing Beam Analysis ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Beam Analysis GroupPREDICTHQ_GET_BEAM_ANALYSIS_GROUPAcción

Return the full details of one Beam Analysis Group, including its member analyses, demand type, readiness status, and processing state.

Parámetros de entrada

  • group_idstringObligatorio

    An existing Beam Analysis Group ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Beam Analysis Group Feature ImportancePREDICTHQ_GET_BEAM_ANALYSIS_GROUP_FEATURE_IMPORTANCEAcción

Return 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_idstringObligatorio

    An Analysis Group ID whose aggregated feature importance to return.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Demand SurgesPREDICTHQ_GET_DEMAND_SURGESAcción

Return dates with at least the requested demand-surge intensity for a required date and location, including summed predicted attendance.

Parámetros de entrada

  • date_fromstringObligatoriodate

    Start 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_radiusstring

    Radius 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_intensitystringObligatorioenum

    Minimum demand-surge intensity to return: s, m, l, or xl.

    smlxl

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Forecast ModelPREDICTHQ_GET_FORECAST_MODELAcción

Retrieves a forecast model by ID, including its readiness status, configuration, accuracy metrics, and location details.

Parámetros de entrada

  • model_idstringObligatorio

    The unique identifier of the forecast model.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Loop LinkPREDICTHQ_GET_LOOP_LINKAcción

Return one Loop Link, including its status, metadata, expiry, and hosted event-submission and event-feedback URLs.

Parámetros de entrada

  • link_idstringObligatorio

    The unique identifier of the Loop Link to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Loop SettingsPREDICTHQ_GET_LOOP_SETTINGSAcción

Return the organization name displayed in the hosted Loop interface.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Predicted Impact AreaPREDICTHQ_GET_PREDICTED_IMPACT_AREAAcción

Calculate a polygonal or radial Predicted Impact Area for a business location and industry, returned as GeoJSON.

Parámetros de entrada

  • industrystringenum

    Business industry used to calibrate the event impact area.

    accommodationrestaurantsretailparkingcpgtourismmarketingtransportationother
  • area_typestringenum

    Return a precise polygonal area or a simpler circular radius area.

    polygonradius
  • radius_unitstringenum

    Radius unit when area_type is radius: meters, kilometers, feet, or miles.

    mkmftmi
  • location_originstringObligatorio

    Business latitude and longitude formatted as latitude,longitude.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Saved LocationPREDICTHQ_GET_SAVED_LOCATIONAcción

Retrieve a Saved Location by ID, including its geometry, enrichment status, labels, resolved places, summary insights, opening hours, and closures.

Parámetros de entrada

  • location_idstringObligatorio

    The unique identifier of the Saved Location to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Saved Location ClosurePREDICTHQ_GET_SAVED_LOCATION_CLOSUREAcción

Return a single closure by ID for the specified Saved Location.

Parámetros de entrada

  • closure_idstringObligatorio

    An existing closure record ID.

  • location_idstringObligatorio

    An existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Saved Location Opening HoursPREDICTHQ_GET_SAVED_LOCATION_OPENING_HOURSAcción

Return one opening hours record by its ID for a specified PredictHQ Saved Location.

Parámetros de entrada

  • location_idstringObligatorio

    An existing Saved Location ID.

  • opening_hours_idstringObligatorio

    An existing opening hours record ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Beam AnalysesPREDICTHQ_LIST_BEAM_ANALYSESAcción

Return 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.

  • limitinteger

    Maximum number of records to return on this page.

  • querystring

    Search analysis names using partial or prefix matching.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number 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_gtstring

    Return analyses updated after this date, exclusively.

  • updated_ltstring

    Return analyses updated before this date, exclusively.

  • external_idstring[]

    External IDs to match.

  • updated_gtestring

    Return analyses updated on or after this date.

  • updated_ltestring

    Return 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Beam Analysis Correlation ResultsPREDICTHQ_LIST_BEAM_ANALYSIS_CORRELATION_RESULTSAcción

Return 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

  • limitinteger

    Maximum number of correlation results to return. Defaults to 30.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number of matching records to skip.

  • date_gtstring

    Filter results after this date (exclusive), in YYYY-MM-DD format.

  • date_ltstring

    Filter results before this date (exclusive), in YYYY-MM-DD format.

  • date_gtestring

    Filter results on or after this date, in YYYY-MM-DD format.

  • date_ltestring

    Filter results on or before this date, in YYYY-MM-DD format.

  • analysis_idstringObligatorio

    An existing Beam Analysis ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Beam Analysis GroupsPREDICTHQ_LIST_BEAM_ANALYSIS_GROUPSAcción

Return 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.

  • limitinteger

    Maximum number of records to return on this page.

  • querystring

    Search group names using partial or prefix matching.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number of matching records to skip.

  • statusstring[]

    Group statuses to match: active or deleted.

  • updated_gtstring

    Return groups updated after this date, exclusively.

  • updated_ltstring

    Return groups updated before this date, exclusively.

  • updated_gtestring

    Return groups updated on or after this date.

  • updated_ltestring

    Return 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Forecast AlgorithmsPREDICTHQ_LIST_FORECAST_ALGORITHMSAcción

Returns 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Forecast Model DemandPREDICTHQ_LIST_FORECAST_MODEL_DEMANDAcción

Return 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

  • limitinteger

    Maximum number of demand records to return. Defaults to 10.

  • cursorstring

    Continuation cursor returned by a previous JSON response.

  • offsetinteger

    Number of matching demand records to skip. Defaults to 0.

  • date_gtstring

    Return demand after this date (exclusive), in YYYY-MM-DD format.

  • date_ltstring

    Return demand before this date (exclusive), in YYYY-MM-DD format.

  • date_gtestring

    Return demand on or after this date, in YYYY-MM-DD format.

  • date_ltestring

    Return demand on or before this date, in YYYY-MM-DD format.

  • model_idstringObligatorio

    Unique identifier of the forecast model.

  • response_formatstringenum

    Response format: json, csv, or ndjson. Defaults to json.

    jsoncsvndjson

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Forecast ModelsPREDICTHQ_LIST_FORECAST_MODELSAcción

Return one page of forecast models belonging to the authenticated organization, optionally filtered by text, Saved Location, or readiness status.

Parámetros de entrada

  • limitinteger

    Maximum number of models to return on this page. Defaults to 10.

  • querystring

    Full-text search across model name, label, and external ID.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Loop Event SubmissionsPREDICTHQ_LIST_LOOP_EVENT_SUBMISSIONSAcción

Return 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.

  • limitinteger

    Maximum number of records to return on this page.

  • querystring

    Full-text search over submitted event information.

  • statestring[]

    Submitted event lifecycle states to return.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • end_gtstringdate

    Return events ending after this date.

  • end_ltstringdate

    Return events ending before this date.

  • offsetinteger

    Number of matching records to skip.

  • countrystring[]

    Two-letter country codes to return.

  • end_gtestringdate

    Return events ending on or after this date.

  • end_ltestringdate

    Return 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_gtstringdate

    Return events starting after this date.

  • start_ltstringdate

    Return events starting before this date.

  • active_gtstringdate

    Return events active after this date.

  • active_ltstringdate

    Return events active before this date.

  • start_gtestringdate

    Return events starting on or after this date.

  • start_ltestringdate

    Return events starting on or before this date.

  • active_gtestringdate

    Return events active on or after this date.

  • active_ltestringdate

    Return events active on or before this date.

  • created_gtstringdate

    Return submissions created after this date.

  • created_ltstringdate

    Return submissions created before this date.

  • org_reviewstringenum

    Organization review status to return.

    pendingapprovedrejected
  • phq_reviewstringenum

    PredictHQ moderation status to return.

    pendingapprovedrejected
  • updated_gtstringdate

    Return submissions updated after this date.

  • updated_ltstringdate

    Return submissions updated before this date.

  • created_gtestringdate

    Return submissions created on or after this date.

  • created_ltestringdate

    Return submissions created on or before this date.

  • updated_gtestringdate

    Return submissions updated on or after this date.

  • updated_ltestringdate

    Return submissions updated on or before this date.

  • private_includestringenum

    Include public and private events, only public events, or only private events.

    truefalseonly

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Loop Feedback ConversationsPREDICTHQ_LIST_LOOP_FEEDBACK_CONVERSATIONSAcción

Return 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.

  • limitinteger

    Maximum conversations to return on this page.

  • querystring

    Full-text search over feedback conversations.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number 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_gtstring

    Return feedback created after this date-time, exclusively.

  • created_ltstring

    Return feedback created before this date-time, exclusively.

  • updated_gtstring

    Return feedback updated after this date-time, exclusively.

  • updated_ltstring

    Return feedback updated before this date-time, exclusively.

  • created_gtestring

    Return feedback created on or after this date-time.

  • created_ltestring

    Return feedback created on or before this date-time.

  • record_typestring[]

    Record types to match: event-public or event-loop.

  • updated_gtestring

    Return feedback updated on or after this date-time.

  • updated_ltestring

    Return 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Loop LinksPREDICTHQ_LIST_LOOP_LINKSAcción

Return 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.

  • limitinteger

    Maximum number of Loop links to return. Defaults to 10.

  • querystring

    Full-text search across Loop links.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Model Forecast ResultsPREDICTHQ_LIST_MODEL_FORECAST_RESULTSAcción

Return 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

  • limitinteger

    Maximum number of forecast results to return on this page. Defaults to 10.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number of matching forecast results to skip. Defaults to 0.

  • date_gtstring

    Return forecast results after this date (exclusive), in YYYY-MM-DD format.

  • date_ltstring

    Return 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_gtestring

    Return forecast results on or after this date, in YYYY-MM-DD format.

  • date_ltestring

    Return forecast results on or before this date, in YYYY-MM-DD format.

  • model_idstringObligatorio

    The unique identifier of the forecast model.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Place HierarchiesPREDICTHQ_LIST_PLACE_HIERARCHIESAcción

Return one page of administrative hierarchy chains resolved from either place IDs or coordinates.

Parámetros de entrada

  • levelstringenum

    Administrative level at which to return hierarchy results. Omit to use PredictHQ's locality default.

    planetcontinentcountryregioncountylocaladminlocalityneighbourhood
  • limitinteger

    Maximum number of hierarchy chains to return on this page.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Zero-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_originstring

    Coordinates 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Saved Location ClosuresPREDICTHQ_LIST_SAVED_LOCATION_CLOSURESAcción

Return 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

  • limitinteger

    Maximum number of closure records to return. Defaults to 10.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number of matching closure records to skip. Defaults to 0.

  • active_tostring

    Filter to closure records active on or before this date in YYYY-MM-DD format.

  • active_fromstring

    Filter to closure records active on or after this date in YYYY-MM-DD format.

  • location_idstringObligatorio

    An existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Saved Location Insight EventsPREDICTHQ_LIST_SAVED_LOCATION_INSIGHT_EVENTSAcción

Return one page of events that impact a specified PredictHQ Saved Location.

Parámetros de entrada

  • limitinteger

    Maximum number of records to return on this page.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number of matching records to skip.

  • location_idstringObligatorio

    Existing Saved Location ID.

  • date_range_typestring

    Date range used to calculate insights. The supported value is next_90d.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Saved Location Opening HoursPREDICTHQ_LIST_SAVED_LOCATION_OPENING_HOURSAcción

Return 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

  • limitinteger

    Maximum number of records to return on this page.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • offsetinteger

    Number of matching records to skip.

  • active_tostring

    Return opening-hours records active on or before this date in YYYY-MM-DD format.

  • active_fromstring

    Return opening-hours records active on or after this date in YYYY-MM-DD format.

  • location_idstringObligatorio

    Existing Saved Location ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Saved LocationsPREDICTHQ_LIST_SAVED_LOCATIONSAcción

Search 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.

  • limitinteger

    Maximum number of Saved Locations to return. Defaults to 10.

  • querystring

    Full-text search across name, description, location code, formatted address, and labels.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Refresh Beam AnalysisPREDICTHQ_REFRESH_BEAM_ANALYSISAcción

Rerun 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_idstringObligatorio

    An existing Beam Analysis ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Refresh Beam Analysis GroupPREDICTHQ_REFRESH_BEAM_ANALYSIS_GROUPAcción

Rerun 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_idstringObligatorio

    An existing Beam Analysis Group ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Beam AnalysisPREDICTHQ_REPLACE_BEAM_ANALYSISAcción

Fully 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

  • bodyobjectObligatorio

    Complete replacement body. Omitted optional fields are not preserved; retrieve the analysis first and include values that must remain.

  • analysis_idstringObligatorio

    ID of the existing Beam analysis to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Beam Analysis GroupPREDICTHQ_REPLACE_BEAM_ANALYSIS_GROUPAcción

Fully 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

  • bodyobjectObligatorio

    Complete replacement body. Retrieve the group first and include every value that must be preserved.

  • group_idstringObligatorio

    ID of the existing Beam analysis group to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Forecast ModelPREDICTHQ_REPLACE_FORECAST_MODELAcción

Fully 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

  • bodyobjectObligatorio

    Complete replacement configuration. This PUT replaces the model's mutable configuration rather than partially updating it.

  • model_idstringObligatorio

    Unique ID of the forecast model to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Loop LinkPREDICTHQ_REPLACE_LOOP_LINKAcción

Fully replace the mutable name, expiry, and metadata of an existing PredictHQ Loop Link using PUT.

Parámetros de entrada

  • bodyobjectObligatorio

    Complete replacement body for the Loop Link's mutable name, expiry, and metadata fields.

  • link_idstringObligatorio

    ID of the existing Loop Link to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Saved LocationPREDICTHQ_REPLACE_SAVED_LOCATIONAcción

Fully 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

  • bodyobjectObligatorio

    Complete replacement body. Retrieve the Saved Location first and include every value that must be preserved.

  • location_idstringObligatorio

    ID of the existing Saved Location to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Saved Location Opening HoursPREDICTHQ_REPLACE_SAVED_LOCATION_OPENING_HOURSAcción

Fully 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

  • bodyobjectObligatorio

    Complete replacement opening-hours body. Its date range must not overlap another opening-hours record for this location.

  • location_idstringObligatorio

    ID of the existing Saved Location.

  • opening_hours_idstringObligatorio

    ID of the existing opening-hours record to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Search BroadcastsPREDICTHQ_SEARCH_BROADCASTSAcción

Return 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.

  • limitinteger

    Maximum records to return on this page (1-500).

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Number of matching records to skip. Defaults to 0 and cannot exceed 5000.

  • start_gtstring

    Match broadcasts starting after this date or date-time.

  • start_ltstring

    Match broadcasts starting before this date or date-time.

  • start_tzstring

    TZ Database timezone used to interpret start filters; defaults to UTC.

  • start_gtestring

    Match broadcasts starting on or after this date or date-time.

  • start_ltestring

    Match broadcasts starting on or before this date or date-time.

  • updated_gtstring

    Match broadcasts updated after this date or date-time.

  • updated_ltstring

    Match broadcasts updated before this date or date-time.

  • updated_tzstring

    TZ 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_gtestring

    Match broadcasts updated on or after this date or date-time.

  • updated_ltestring

    Match 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_gtstring

    Match broadcasts first seen after this date or date-time.

  • first_seen_ltstring

    Match broadcasts first seen before this date or date-time.

  • first_seen_tzstring

    TZ 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_gtestring

    Match broadcasts first seen on or after this date or date-time.

  • first_seen_ltestring

    Match 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_originstring

    Latitude 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_gtinteger

    Match broadcasts with PHQ Viewership greater than this value.

  • phq_viewership_ltinteger

    Match broadcasts with PHQ Viewership less than this value.

  • phq_viewership_gteinteger

    Match broadcasts with PHQ Viewership greater than or equal to this value.

  • phq_viewership_lteinteger

    Match broadcasts with PHQ Viewership less than or equal to this value.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Search EventsPREDICTHQ_SEARCH_EVENTSAcción

Search 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.

  • limitinteger

    Maximum events to return on this page.

  • querystring

    Full-text event search query.

  • statestring[]

    Event publication states; defaults to active.

  • cursorstring

    Continuation cursor from a previous response. Omit for the first page.

  • end_gtstring

    Return events ending after this ISO 8601 date or timestamp.

  • end_ltstring

    Return events ending before this ISO 8601 date or timestamp.

  • end_tzstring

    TZ Database timezone used by end date filters; defaults to UTC.

  • offsetinteger

    Zero-based result offset.

  • withinstring

    Radius 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_gtestring

    Return events ending on or after this ISO 8601 date or timestamp.

  • end_ltestring

    Return events ending on or before this ISO 8601 date or timestamp.

  • rank_gtinteger

    Minimum PHQ Rank, exclusive; cannot be combined with beam_analysis_id.

  • rank_ltinteger

    Maximum 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_gteinteger

    Minimum PHQ Rank, inclusive; cannot be combined with beam_analysis_id.

  • rank_lteinteger

    Maximum PHQ Rank, inclusive; cannot be combined with beam_analysis_id.

  • start_gtstring

    Return events starting after this ISO 8601 date or timestamp.

  • start_ltstring

    Return events starting before this ISO 8601 date or timestamp.

  • start_tzstring

    TZ Database timezone used by start date filters; defaults to UTC.

  • active_gtstring

    Return events active after this ISO 8601 date or timestamp.

  • active_ltstring

    Return events active before this ISO 8601 date or timestamp.

  • active_tzstring

    TZ Database timezone used by active date filters; defaults to UTC.

  • entity_idstring[]

    Entity IDs linked to returned events.

  • impact_gtstring

    Return events whose predicted impact begins after this ISO 8601 date; use with impact_industry.

  • impact_ltstring

    Return events whose predicted impact ends before this ISO 8601 date; use with impact_industry.

  • impact_tzstring

    TZ Database timezone used by impact date filters; defaults to UTC.

  • phq_labelstring[]

    Case-sensitive lowercase PHQ labels.

  • start_gtestring

    Return events starting on or after this ISO 8601 date or timestamp.

  • start_ltestring

    Return events starting on or before this ISO 8601 date or timestamp.

  • active_gtestring

    Return events active on or after this ISO 8601 date or timestamp.

  • active_ltestring

    Return events active on or before this ISO 8601 date or timestamp.

  • impact_gtestring

    Return events whose predicted impact begins on or after this ISO 8601 date; use with impact_industry.

  • impact_ltestring

    Return 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_gtstring

    Return events updated after this ISO 8601 date or timestamp.

  • updated_ltstring

    Return events updated before this ISO 8601 date or timestamp.

  • updated_tzstring

    TZ 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_gtestring

    Return events updated on or after this ISO 8601 date or timestamp.

  • updated_ltestring

    Return events updated on or before this ISO 8601 date or timestamp.

  • cancelled_gtstring

    Return events cancelled after this ISO 8601 date or timestamp.

  • cancelled_ltstring

    Return events cancelled before this ISO 8601 date or timestamp.

  • cancelled_tzstring

    TZ Database timezone used by cancelled date filters; defaults to UTC.

  • phq_label_opstringenum

    Require all or any included PHQ labels; defaults to any.

    allany
  • postponed_gtstring

    Return events postponed after this ISO 8601 date or timestamp.

  • postponed_ltstring

    Return events postponed before this ISO 8601 date or timestamp.

  • postponed_tzstring

    TZ Database timezone used by postponed date filters; defaults to UTC.

  • beam_group_idstring

    Beam Analysis Group ID; requires beam_analysis_id.

  • cancelled_gtestring

    Return events cancelled on or after this ISO 8601 date or timestamp.

  • cancelled_ltestring

    Return events cancelled on or before this ISO 8601 date or timestamp.

  • first_seen_gtstring

    Return events first seen after this ISO 8601 date or timestamp.

  • first_seen_ltstring

    Return events first seen before this ISO 8601 date or timestamp.

  • first_seen_tzstring

    TZ Database timezone used by first-seen filters; defaults to UTC.

  • local_rank_gtinteger

    Minimum Local Rank, exclusive; cannot be combined with beam_analysis_id.

  • local_rank_ltinteger

    Maximum Local Rank, exclusive; cannot be combined with beam_analysis_id.

  • postponed_gtestring

    Return events postponed on or after this ISO 8601 date or timestamp.

  • postponed_ltestring

    Return events postponed on or before this ISO 8601 date or timestamp.

  • deleted_reasonstring[]

    Reasons deleted events were removed.

  • first_seen_gtestring

    Return events first seen on or after this ISO 8601 date or timestamp.

  • first_seen_ltestring

    Return events first seen on or before this ISO 8601 date or timestamp.

  • local_rank_gteinteger

    Minimum Local Rank, inclusive; cannot be combined with beam_analysis_id.

  • local_rank_lteinteger

    Maximum Local Rank, inclusive; cannot be combined with beam_analysis_id.

  • parent_includestringenum

    Include parent events, exclude them, or return only parents; defaults to true.

    truefalseonly
  • impact_industrystringenum

    Industry used to calculate predicted impact patterns.

    accommodationcpgtourismmarketingparkingrestaurantsretailtransportation
  • private_includestringenum

    Include private events, exclude them, or return only private events; defaults to false.

    truefalseonly
  • private_user_idstring[]

    User IDs associated with private events; requires private_include=true or only.

  • beam_analysis_idstring

    Beam 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_gtstring

    Return events predicted to end after this ISO 8601 date or timestamp.

  • predicted_end_ltstring

    Return events predicted to end before this ISO 8601 date or timestamp.

  • predicted_end_tzstring

    TZ Database timezone used by predicted-end filters; defaults to UTC.

  • phq_attendance_gtinteger

    Minimum predicted attendance, exclusive.

  • phq_attendance_ltinteger

    Maximum predicted attendance, exclusive.

  • phq_label_excludestring[]

    Case-sensitive lowercase PHQ labels to exclude.

  • predicted_end_gtestring

    Return events predicted to end on or after this ISO 8601 date or timestamp.

  • predicted_end_ltestring

    Return events predicted to end on or before this ISO 8601 date or timestamp.

  • phq_attendance_gteinteger

    Minimum predicted attendance, inclusive.

  • phq_attendance_lteinteger

    Maximum predicted attendance, inclusive.

  • private_org_reviewstring[]

    Organization review statuses for private events; requires private_include=true or only.

  • brand_unsafe_excludestringenum

    Whether to exclude potentially brand-unsafe events; defaults to false.

    truefalse
  • phq_label_exclude_opstringenum

    Exclude events matching all or any excluded PHQ labels; defaults to any.

    allany
  • predicted_event_spend_gtinteger

    Minimum total Predicted Event Spend in USD, exclusive.

  • predicted_event_spend_ltinteger

    Maximum total Predicted Event Spend in USD, exclusive.

  • predicted_event_spend_gteinteger

    Minimum total Predicted Event Spend in USD, inclusive.

  • predicted_event_spend_lteinteger

    Maximum 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_gtinteger

    Minimum predicted-event location confidence score, exclusive.

  • location_confidence_score_ltinteger

    Maximum predicted-event location confidence score, exclusive.

  • location_confidence_score_gteinteger

    Minimum predicted-event location confidence score, inclusive.

  • location_confidence_score_lteinteger

    Maximum predicted-event location confidence score, inclusive.

  • predicted_event_spend_industrystringenum

    Industry segment for the industry-specific Predicted Event Spend filter.

    accommodationhospitalitytransportation
  • start_date_confidence_score_gtinteger

    Minimum predicted-event start-date confidence score, exclusive.

  • start_date_confidence_score_ltinteger

    Maximum predicted-event start-date confidence score, exclusive.

  • start_date_confidence_score_gteinteger

    Minimum predicted-event start-date confidence score, inclusive.

  • start_date_confidence_score_lteinteger

    Maximum predicted-event start-date confidence score, inclusive.

  • predicted_event_spend_industry_valueinteger

    Industry-specific Predicted Event Spend in USD; set its industry and operator fields too.

  • predicted_event_spend_industry_operatorstringenum

    Comparison operator for the industry-specific Predicted Event Spend filter.

    gtgteltlte

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Search PlacesPREDICTHQ_SEARCH_PLACESAcción

Return 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.

  • limitinteger

    Maximum number of places to return on this page (1-10000).

  • querystring

    Full-text place-name search query.

  • cursorstring

    Continuation cursor returned by a previous call. Omit for the first page.

  • offsetinteger

    Zero-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.

  • locationstring

    Coordinates as @latitude,longitude or latitude,longitude.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Train Forecast ModelPREDICTHQ_TRAIN_FORECAST_MODELAcción

Triggers 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_idstringObligatorio

    The unique identifier of the forecast model to train.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Beam AnalysisPREDICTHQ_UPDATE_BEAM_ANALYSISAcción

Partially update one or more fields on an existing Beam analysis without replacing fields that are omitted.

Parámetros de entrada

  • bodyobjectObligatorio

    One or more Beam analysis fields to update; omitted fields remain unchanged.

  • analysis_idstringObligatorio

    Unique identifier of the existing Beam analysis to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Beam Analysis GroupPREDICTHQ_UPDATE_BEAM_ANALYSIS_GROUPAcción

Partially 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

  • bodyobjectObligatorio

    One or more analysis group fields to update; omitted fields remain unchanged.

  • group_idstringObligatorio

    ID of the existing Beam analysis group to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Forecast ModelPREDICTHQ_UPDATE_FORECAST_MODELAcción

Partially 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

  • bodyobjectObligatorio

    Fields to update. Omitted fields remain unchanged.

  • model_idstringObligatorio

    Unique identifier of the forecast model to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Upload Beam Analysis DemandPREDICTHQ_UPLOAD_BEAM_ANALYSIS_DEMANDAcción

Upload 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

  • bodyanyObligatorio

    Payload 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_idstringObligatorio

    Unique identifier of the existing Beam analysis receiving demand data.

  • content_typestringenum

    Payload 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Upload Forecast Model DemandPREDICTHQ_UPLOAD_FORECAST_MODEL_DEMANDAcción

Upload 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

  • bodyanyObligatorio

    Payload 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_idstringObligatorio

    Unique identifier of the forecast model receiving the demand data.

  • content_typestringObligatorioenum

    Payload 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Upsert Loop SettingsPREDICTHQ_UPSERT_LOOP_SETTINGSAcción

Create 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

  • bodyobjectObligatorio

    Complete organization-wide Loop settings body. This replaces the display name for every user of the organization's hosted Loop UI.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not