Get an Analysis
Get an existing Analysis.
Returns the full details of a single Analysis, including its location, demand type, rank, readiness status, and processing state.
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
An existing Beam Analysis ID.
Successful Response
Name of the Analysis.
Analysis 1Identifier of the user who owns the Analysis.
Access level for the Analysis.
fullPossible values: Status of the Analysis.
activePossible values: The processing status of the analysis (e.g. pending, ready, failed, stale).
readyPossible values: IDs of the groups this Analysis belongs to.
The time zone of the Analysis in TZ Database format.
Note: this field is populated automatically based on the location of the Analysis.
Pacific/AucklandDate and time when the Analysis was created (ISO 8601).
Date and time when the Analysis was last updated (ISO 8601).
Date and time when the Analysis processing completed (ISO 8601).
External identifier associated with the Analysis (optional, user-defined).
abc123Comma-separated list of labels that can be used to search and filter analyses.
["label1","label2","label3"]Bad Request
Unauthorized
Bearer token scope insufficient
Analysis not found
GET /v1/beam/analyses/{analysis_id} HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "Analysis 1",
"create_dt": "2023-03-01T23:03:19.403859+00:00",
"update_dt": "2023-03-01T23:49:39.464011+00:00",
"processed_dt": "2023-03-01T23:43:52.253150+00:00",
"user_id": null,
"external_id": "id1",
"label": [
"label1",
"label2",
"label3"
],
"location": {
"geopoint": {
"lat": "-36.849761",
"lon": "174.7628903"
},
"radius": 1.2,
"unit": "km"
},
"demand_type": {
"interval": "week",
"week_start_day": "monday",
"industry": "restaurants"
},
"rank": {
"type": "phq",
"levels": {
"phq": {
"min": 51
}
}
},
"tz": "UTC",
"readiness_status": "ready",
"readiness_checks": {
"date_range": {
"start": "2017-01-01",
"end": "2017-12-31"
},
"validation_response": {
"missing_data_percentage": 0,
"consecutive_nan": 0
}
},
"processing_completed": {
"correlation": true,
"feature_importance": true
},
"access_type": "full",
"status": "active"
}Examples
Get an Analysis by its ID:
OpenAPI spec
Read the Beam API OpenAPI spec.
Guides
The following guides are relevant to this API:
Last updated
Was this helpful?