Sources › Finance › Histdata › Coverage

Histdata Coverage API

Coverage, one of the endpoints of the Histdata API.

HistdataGET /coverageAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:histdata/coverage

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 day.

Parameters

NameTypeInRequiredDescription
pairstringqueryYesInstrument code as HistData spells it, e.g. XAUUSD, EURUSD, SPXUSD. Example: XAUUSD
timeframeenum: m1 | tickqueryNom1 (1-minute bars) or tick. Default m1. Example: m1

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:histdata/coverage?pair=XAUUSD&timeframe=m1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:histdata/coverage?pair=XAUUSD&timeframe=m1", {
  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:histdata/coverage",
    params={"pair":"XAUUSD","timeframe":"m1"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:histdata",
  "data": {
    "pair": "XAUUSD",
    "count": 18,
    "items": [
      {
        "unit": "month",
        "year": 2026,
        "months": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ]
      },
      {
        "unit": "year",
        "year": 2025,
        "months": []
      },
      {
        "unit": "year",
        "year": 2024,
        "months": []
      },
      {
        "unit": "year",
        "year": 2023,
        "months": []
      },
      {
        "unit": "year",
        "year": 2022,
        "months": []
      },
      {
        "unit": "year",
        "year": 2021,
        "months": []
      },
      {
        "unit": "year",
        "year": 2020,
        "months": []
      },
      {
        "unit": "year",
        "year": 2019,
        "months": []
      }
    ],
    "dataset": "coverage",
    "lastYear": 2026,
    "provider": "histdata",
    "firstYear": 2009,
    "timeframe": "m1"
  },
  "timestamp": "2026-08-21T02:23:28Z"
}

Frequently asked questions

How do I call the Histdata Coverage API?

Send a GET request to https://api.zapi.ink/v1/finance:histdata/coverage?pair=XAUUSD with your Zapi key in the x-api-key header. Parameters — required: pair; optional: timeframe. The response is JSON in the { project, data, timestamp } envelope.

What does the Histdata Coverage API return?

The example response has the fields pair, count, items, dataset, lastYear, provider, firstYear, timeframe. Each item in items has fields such as unit, year, months.

Is the Histdata Coverage 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 Histdata Coverage 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 "histdata" and endpoint "coverage".

What other Histdata API endpoints are there?

It has 5 endpoints. Besides Coverage: Gap Report, List Instruments, Download M1, Download Tick.