Added
v1.9.2 - GMSI Index Daily Interval
about 2 months ago by ReadMe GitHub Action
The GMSI index endpoints now support daily aggregation alongside the existing hourly granularity.
Added
interval parameter on GMSI index endpoints
interval parameter on GMSI index endpointsBoth the live and historical GMSI index endpoints accept a new interval query parameter:
| Value | Granularity | Live lookback | Backed by |
|---|---|---|---|
HOUR (default) | Hourly | Past 24 hours | macro_sentiment_indices_mv |
DAY | Daily | Past 30 days | macro_sentiment_indices_daily_mv |
GET /v1/headlines/index/gmsi/live/{country}
GET /v1/headlines/index/gmsi/live/{country}GET /v1/headlines/index/gmsi/live/US?topic=Inflation-Food&interval=DAY
interval=HOUR— Returns hourly sentiment index aggregates over the past 24 hours. This is the default and preserves existing behaviour.interval=DAY— Returns daily sentiment index aggregates over the past 30 days. Each data point represents one calendar day of aggregated headline sentiment for the given topic.
All other parameters (topic, sentiment_type, index_type, limit) apply to both intervals.
GET /v1/headlines/index/gmsi/historical/{country}
GET /v1/headlines/index/gmsi/historical/{country}GET /v1/headlines/index/gmsi/historical/US?topic=Inflation-Food&interval=DAY&start_date=2026-01-01
interval=HOUR— Returns paginated hourly aggregates over the requested date range (up to 90 days). This is the default and preserves existing behaviour.interval=DAY— Returns paginated daily aggregates over the requested date range (up to 90 days).
Pagination via next_token is supported for both intervals. The response shape (PaginatedGmsiIndexResponse) is identical regardless of interval.
