Sources › Finance › Investing › Indicator History

Investing Indicator History API

The full published history of one macro indicator, back to its first print.

InvestingGET /indicator-historyAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:investing/indicator-history

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 hour.

Parameters

NameTypeInRequiredDescription
eventAttrIdnumberqueryYesThe indicator's stable id, as returned in `eventAttrId` by the economic-calendar endpoint Example: 56
countrystringqueryNoTwo-letter code of the country that publishes the indicator, as used in its own chart path. It must match the event's country — the same id under another country is a 404. Default us Example: us
countnumberqueryNoKeep only the most recent N prints. Omit for the whole series Example: 120
orderenum: asc | descqueryNoasc = oldest print first, desc = newest first. Default asc Example: asc

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:investing/indicator-history?eventAttrId=56&country=us&count=120&order=asc" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:investing/indicator-history?eventAttrId=56&country=us&count=120&order=asc", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:investing/indicator-history",
    params={"eventAttrId":"56","country":"us","count":"120","order":"asc"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:investing",
  "data": {
    "count": 120,
    "items": [
      {
        "date": "2016-07-15T12:30:00.000Z",
        "actual": 0.2,
        "forecast": 0.2,
        "timestamp": 1468585800000,
        "actualState": "neutral",
        "actualFormatted": "0.2%",
        "forecastFormatted": "0.2%"
      },
      {
        "date": "2016-08-16T12:30:00.000Z",
        "actual": 0.1,
        "forecast": 0.2,
        "timestamp": 1471350600000,
        "actualState": "down",
        "actualFormatted": "0.1%",
        "forecastFormatted": "0.2%"
      },
      {
        "date": "2016-09-16T12:30:00.000Z",
        "actual": 0.3,
        "forecast": 0.2,
        "timestamp": 1474029000000,
        "actualState": "up",
        "actualFormatted": "0.3%",
        "forecastFormatted": "0.2%"
      },
      {
        "date": "2016-10-18T12:30:00.000Z",
        "actual": 0.1,
        "forecast": 0.2,
        "timestamp": 1476793800000,
        "actualState": "down",
        "actualFormatted": "0.1%",
        "forecastFormatted": "0.2%"
      },
      {
        "date": "2016-11-17T13:30:00.000Z",
        "actual": 0.1,
        "forecast": 0.2,
        "timestamp": 1479389400000,
        "actualState": "down",
        "actualFormatted": "0.1%",
        "forecastFormatted": "0.2%"
      },
      {
        "date": "2016-12-15T13:30:00.000Z",
        "actual": 0.2,
        "forecast": 0.2,
        "timestamp": 1481808600000,
        "actualState": "neutral",
        "actualFormatted": "0.2%",
        "forecastFormatted": "0.2%"
      }
    ],
    "total": 678,
    "country": "us",
    "provider": "investing",
    "lastPrint": "2026-08-12T12:30:00.000Z",
    "firstPrint": "1970-01-01T09:00:00.000Z",
    "eventAttrId": 56
  },
  "timestamp": "2026-06-14T07:37:04Z"
}

Frequently asked questions

How do I call the Investing Indicator History API?

Send a GET request to https://api.zapi.ink/v1/finance:investing/indicator-history?eventAttrId=56 with your Zapi key in the x-api-key header. Parameters — required: eventAttrId; optional: country, count, order. The response is JSON in the { project, data, timestamp } envelope.

What does the Investing Indicator History API return?

The full published history of one macro indicator, back to its first print. The example response has the fields count, items, total, country, provider, lastPrint, firstPrint, eventAttrId. Each item in items has fields such as date, actual, forecast, timestamp, actualState, actualFormatted, forecastFormatted.

Is the Investing Indicator History API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Investing Indicator History API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "investing" and endpoint "indicator-history".

What other Investing API endpoints are there?

It has 15 endpoints. Besides Indicator History: Search, Quote, Technical, Historical, News, Article, and 8 more.