Economic Indicator Historical Data

Returns historical data for a specific economic indicator by indicator name or ID.
Author:Will ShawWill Shaw
Reviewed by:Charlie TianCharlie Tian
Fact checked by:Vera YuanVera Yuan
Updated May 27, 2026
GET/economic/{nameOrId}

Path Parameters

Name Type Example Description
nameOrIdstring1 Year Treasury RateEconomic 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 NameField NameTypeRequiredDescription
Indicator Name or IDnameOrIdstringYesEconomic 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.