Latest Observation
GET /v1/observations/latest returns the latest row for an indicator and optional region. This endpoint requires an API key or x402 payment.
Request
curl "https://api.creativeforesight.io/v1/observations/latest?indicator=UNRATE®ion=US" \
-H "Authorization: Bearer $FORESIGHT_API_KEY"Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
indicator | string | Yes | Indicator code, such as UNRATE or cf:labor_composite. |
source | string | No | Source slug for duplicate provider codes. |
region | string | No | Region code. Uses the indicator default region when omitted. |
as_of | date | No | The latest value that had been published by the end of this day (UTC). See point-in-time reads. |
Latest observation object
| Field | Type | Description |
|---|---|---|
indicator | string | Indicator code. |
region | string | Region code. |
period_start | date | First day of the period. |
period_end | date or null | Last day of the period. |
period_type | string or null | daily, weekly, monthly, quarterly or annual. |
value | number | Latest value. |
unit | string or null | Unit, from the unit vocabulary. |
revision | integer or null | How many earlier values this period has had. 0 is the first value Foresight holds. |
is_preliminary | boolean or null | true when the source marks the value preliminary or an early estimate it will revise on schedule. |
estimate | string or null | The source’s name for this estimate, where it publishes a run of them: advance, second or third for BEA’s national accounts. |
source_updated_at | date-time or null | When the source last updated the data this value comes from (FRED’s series update time, BEA’s table revision date), when the source states one. |
Response
{
"data": {
"indicator": "UNRATE",
"region": "US",
"period_start": "2026-10-01",
"period_end": "2026-10-31",
"period_type": "monthly",
"value": 4.1,
"unit": "percent"
},
"meta": {
"indicator": "UNRATE",
"region": "US",
"unit": "percent",
"total": 1,
"limit": 1,
"offset": 0,
"source_attribution": "Contains FRED® data © Federal Reserve Bank of St. Louis"
}
}If the series is not held for the region you ask for, the answer is 404 naming the regions it is held for and, when one exists, the indicator to use instead (details.available_regions, details.suggested_indicator). A lower-case series code (unrate) finds the same series as its upper-case code.
Errors
| Status | Code | Meaning |
|---|---|---|
400 | INVALID_PARAMETER | Required or optional query parameters are invalid. |
401 | INVALID_API_KEY | The request did not include a valid API key and was not a settled x402 request. |
404 | RESOURCE_NOT_FOUND | The requested indicator or region was not found. |
429 | RATE_LIMIT_EXCEEDED | The API key exceeded its one-minute request limit. |
500 | INTERNAL_SERVER_ERROR | Latest observation data could not be loaded. |
Last updated on