GET/economic/{nameOrId}
Path Parameters
| Name | Type | Example | Description |
|---|---|---|---|
| nameOrId | string | 1 Year Treasury Rate | Economic indicator name or id. |
Auth
headers: { 'Authorization': 'Replace with your API token' }
Examples
fetch('https://api.gurufocus.com/data/economic/NAMEORID', { method: 'GET', headers: { 'Authorization': 'Replace with your API token' }})
Responses
Successful response. The exact payload fields depend on this endpoint.
Example Body (Field Reference)
{ "id": 39, "indicator": "1 Year Treasury Rate", "Data": [ { "date": "1962-01-02", "value": 3.22 }, { "date": "1962-01-03", "value": 3.24 }, { "date": "... and more data available in the actual API response" }, { "date": "2026-04-29", "value": 3.756 }, { "date": "2026-04-30", "value": 3.729 }, { "date": "2026-05-01", "value": 3.718 }, { "date": "2026-05-04", "value": 3.766 }, { "date": "2026-05-05", "value": 3.758 }, { "date": "2026-05-06", "value": 3.741 }, { "date": "2026-05-07", "value": 3.747 } ]}
Introduction
Returns the data series for a specific economic indicator. The nameOrId path parameter accepts either the indicator name or the indicator ID.
Example:
/economic/1 Year Treasury Rate/economic/123
If you do not know the exact indicator name or ID, first call /economic/list.
Path Parameters
| Display Name | Field Name | Type | Required | Description |
|---|---|---|---|---|
| Indicator Name or ID | nameOrId | string | Yes | Economic indicator name or ID. Example: 1 Year Treasury Rate. |
Response Notes
The response returns the requested economic indicator together with its historical data series.
Typical response areas include:
- Indicator metadata such as name or identifier
- Time-series observations
- Date and value pairs for each observation
Usage Notes
- Use the exact indicator name when possible to avoid ambiguous matches.
- Numeric IDs are useful when you want a stable identifier from
/economic/list. - URL-encode indicator names that contain spaces or special characters when calling the endpoint directly.