Added
v1.6.4 - Interval Parameter for Macro Regional Sentiment & Removal of Historical Endpoints
27 days ago by ReadMe GitHub Action
The macro regional sentiment endpoints now support an interval parameter (HOUR or DAY) to control the granularity of the time-series response. The legacy historical data endpoints have been removed.
Added
-
intervalparameter for macro regional sentiment endpoints - All three macro regional sentiment endpoints now accept anintervalquery/body parameter (HOURorDAY, defaultHOUR) controlling the time granularity of the dense time-series response:GET /headlines/index/macro/live/regional/{model_id}GET /headlines/index/macro/historical/regional/{model_id}POST /headlines/index/macro/query/regional
When
interval=DAYis specified, allpublication_timevalues are truncated to midnight (00:00:00) and one record per day (per topic/country combination) is returned instead of one per hour. Thealign_to_period_endflag shifts timestamps by the full interval step —1 hourforHOURand1 dayforDAY.
Removed
- Historical data endpoints - The following endpoints have been removed:
GET /historical/versions- List all available historical data versionsGET /historical/version/{version_id}- Retrieve metadata for a specific historical versionGET /historical/version/{version_id}/download- Generate a presigned S3 download URL for a historical version
