zapi.
APIsPricingDocsMCP
APIsPricingDocsMCP
Sign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCP
Sign in
Finance/Histdata
Logo Histdata

Histdata

Which years exist for a pair, and in what unit each is served. HistData chunks

5 endpoints5 endpoints on this scraper433 calls433 calls so farupdated last monthLast updated 8/21/2026, 2:23:28 AMBusy: 10+ calls so farllms.txt
Endpoints5

5/5 passing
checked 21 hours ago · daily 01:00 WIB

Coverage

Which years exist for a pair, and in what unit each is served. HistData chunks

GET/v1/finance:histdata/coverage1d cache2 paramschecking key…
Parameters
pairstringrequired

Instrument code as HistData spells it, e.g. XAUUSD, EURUSD, SPXUSD.

timeframeenum

m1 (1-minute bars) or tick. Default m1.

·
Response
EXAMPLE
{
  "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"
}

Code

Coverage
index.ts
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("finance:histdata", "coverage", {
  "pair": "XAUUSD",
  "timeframe": "m1"
});
console.log(data);
Recommended · typed errors, safe retries and bulk jobsSDK reference

Full reference

5 endpoints · plain text
GET
Coverage/v1/finance:histdata/coverage
2 params

Which years exist for a pair, and in what unit each is served. HistData chunks

Parameters

pairstringrequired
Instrument code as HistData spells it, e.g. XAUUSD, EURUSD, SPXUSD.
timeframeenumoptional
m1 (1-minute bars) or tick. Default m1. Values: m1, tick.

Request

curl -X GET "https://api.zapi.ink/v1/finance:histdata/coverage?pair=XAUUSD&timeframe=m1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "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"
}
GET
Gap Report/v1/finance:histdata/gap-report
5 params

HistData's own audit of where its data is missing, for one file. Cheap — it is

Parameters

pairstringrequired
Instrument code as HistData spells it.
yearnumberrequired
Calendar year of the file. The current year has no report until it closes.
monthnumberoptional
Month 1-12. Required for tick and for the current year; omit for a closed year of M1.
timeframeenumoptional
m1 (1-minute bars) or tick. Default m1. Values: m1, tick.
sessionBreaksenumoptional
Whether to keep the daily 17:00-18:00 EST rollover gaps. Default exclude. Values: include, exclude.

Request

curl -X GET "https://api.zapi.ink/v1/finance:histdata/gap-report?pair=XAUUSD&year=2024&month=7&timeframe=m1&sessionBreaks=exclude" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "file": "DAT_ASCII_XAUUSD_M1_2024.csv",
  "pair": "XAUUSD",
  "year": 2024,
  "count": 5,
  "items": [
    {
      "to": "2024-04-10T18:01:06-05:00",
      "from": "2024-04-10T16:59:59-05:00",
      "seconds": 3660,
      "sessionBreak": false
    },
    {
      "to": "2024-10-09T20:11:48-05:00",
      "from": "2024-10-09T19:05:51-05:00",
      "seconds": 3951,
      "sessionBreak": false
    },
    {
      "to": "2024-11-21T18:00:00-05:00",
      "from": "2024-11-21T16:59:34-05:00",
      "seconds": 3619,
      "sessionBreak": false
    },
    {
      "to": "2024-12-11T18:02:01-05:00",
      "from": "2024-12-11T16:59:59-05:00",
      "seconds": 3715,
      "sessionBreak": false
    },
    {
      "to": "2024-12-26T18:05:00-05:00",
      "from": "2024-12-26T16:59:59-05:00",
      "seconds": 3894,
      "sessionBreak": false
    }
  ],
  "month": null,
  "dataset": "gap-report",
  "provider": "histdata",
  "timezone": "EST-no-DST",
  "timeframe": "M1",
  "totalGaps": 313,
  "sessionBreaks": "exclude",
  "sessionBreakGaps": 308,
  "longestGapSeconds": 3951
}
GET
List Instruments/v1/finance:histdata/list-instruments
4 params

Every instrument HistData publishes, with the month its history starts.

Parameters

timeframeenumoptional
Which index to read: m1 (1-minute bars) or tick. Default m1. Values: m1, tick.
querystringoptional
Filter by instrument code or display name, case-insensitive.
pagenumberoptional
Page of instruments. Default 1.
limitnumberoptional
Instruments per page. Default 50, max 100.

Request

curl -X GET "https://api.zapi.ink/v1/finance:histdata/list-instruments?timeframe=m1&query=xau&page=1&limit=50" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "page": 1,
  "count": 50,
  "items": [
    {
      "name": "EUR/USD",
      "pair": "EURUSD",
      "startsAt": "2000-05",
      "startYear": 2000,
      "startMonth": 5
    },
    {
      "name": "EUR/CHF",
      "pair": "EURCHF",
      "startsAt": "2002-03",
      "startYear": 2002,
      "startMonth": 3
    },
    {
      "name": "EUR/GBP",
      "pair": "EURGBP",
      "startsAt": "2002-03",
      "startYear": 2002,
      "startMonth": 3
    },
    {
      "name": "EUR/JPY",
      "pair": "EURJPY",
      "startsAt": "2002-03",
      "startYear": 2002,
      "startMonth": 3
    },
    {
      "name": "EUR/AUD",
      "pair": "EURAUD",
      "startsAt": "2002-08",
      "startYear": 2002,
      "startMonth": 8
    },
    {
      "name": "USD/CAD",
      "pair": "USDCAD",
      "startsAt": "2000-06",
      "startYear": 2000,
      "startMonth": 6
    },
    {
      "name": "USD/CHF",
      "pair": "USDCHF",
      "startsAt": "2000-05",
      "startYear": 2000,
      "startMonth": 5
    },
    {
      "name": "USD/JPY",
      "pair": "USDJPY",
      "startsAt": "2000-05",
      "startYear": 2000,
      "startMonth": 5
    }
  ],
  "query": null,
  "total": 66,
  "dataset": "instruments",
  "hasMore": true,
  "nextPage": 2,
  "provider": "histdata",
  "timeframe": "m1"
}
GET
Download M1/v1/finance:histdata/download-m1
5 params

One-minute OHLC bars from HistData — the fallback book behind `finance/dukascopy`

Parameters

pairstringrequired
Instrument code as HistData spells it. XAUUSD starts 2009-03.
yearnumberrequired
Calendar year to download.
monthnumberoptional
Month 1-12. Required for the current year, which ships month by month; narrows a closed year.
pagenumberoptional
Page of bars. Default 1.
limitnumberoptional
Bars per page. Default 5000, max 20000.

Request

curl -X GET "https://api.zapi.ink/v1/finance:histdata/download-m1?pair=XAUUSD&year=2023&month=7&page=1&limit=5000" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "file": "DAT_ASCII_XAUUSD_M1_2023.csv",
  "page": 1,
  "pair": "XAUUSD",
  "unit": "year",
  "year": 2023,
  "count": 5000,
  "items": [
    {
      "low": 1826.617,
      "high": 1827.337,
      "open": 1826.837,
      "time": "2023-01-02T18:00:00-05:00",
      "close": 1826.637
    },
    {
      "low": 1826.137,
      "high": 1827.357,
      "open": 1826.537,
      "time": "2023-01-02T18:01:00-05:00",
      "close": 1826.537
    },
    {
      "low": 1826.137,
      "high": 1826.737,
      "open": 1826.137,
      "time": "2023-01-02T18:02:00-05:00",
      "close": 1826.737
    },
    {
      "low": 1827.187,
      "high": 1828.867,
      "open": 1827.187,
      "time": "2023-01-02T18:05:00-05:00",
      "close": 1828.738
    },
    {
      "low": 1828.758,
      "high": 1829.958,
      "open": 1828.758,
      "time": "2023-01-02T18:06:00-05:00",
      "close": 1829.497
    },
    {
      "low": 1828.117,
      "high": 1829.507,
      "open": 1829.497,
      "time": "2023-01-02T18:07:00-05:00",
      "close": 1829.397
    },
    {
      "low": 1828.718,
      "high": 1829.357,
      "open": 1829.357,
      "time": "2023-01-02T18:08:00-05:00",
      "close": 1829.277
    },
    {
      "low": 1828.757,
      "high": 1829.488,
      "open": 1829.277,
      "time": "2023-01-02T18:09:00-05:00",
      "close": 1829.298
    }
  ],
  "month": null,
  "total": 308812,
  "dataset": "m1",
  "hasMore": true,
  "nextPage": 2,
  "provider": "histdata",
  "timezone": "EST-no-DST",
  "priceSide": "bid",
  "timeframe": "M1"
}
GET
Download Tick/v1/finance:histdata/download-tick
4 params

Tick quotes from HistData — bid AND ask, so a real spread per tick, which the

Parameters

pairstringrequired
Instrument code as HistData spells it. XAUUSD starts 2009-03.
datestringrequired
One trading day, YYYY-MM-DD. A whole tick month is millions of rows and is never served at once.
pagenumberoptional
Page of ticks. Default 1.
limitnumberoptional
Ticks per page. Default 5000, max 20000.

Request

curl -X GET "https://api.zapi.ink/v1/finance:histdata/download-tick?pair=XAUUSD&date=2026-07-15&page=1&limit=5000" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "date": "2026-07-15",
  "file": "DAT_ASCII_XAUUSD_T_202607.csv",
  "page": 1,
  "pair": "XAUUSD",
  "unit": "month",
  "count": 5000,
  "items": [
    {
      "ask": 4031.865,
      "bid": 4031.085,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.78
    },
    {
      "ask": 4031.865,
      "bid": 4031.065,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.8
    },
    {
      "ask": 4031.905,
      "bid": 4031.185,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.72
    },
    {
      "ask": 4031.905,
      "bid": 4031.145,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.76
    },
    {
      "ask": 4031.875,
      "bid": 4031.165,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.71
    },
    {
      "ask": 4031.875,
      "bid": 4031.105,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.77
    },
    {
      "ask": 4031.875,
      "bid": 4031.085,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.79
    },
    {
      "ask": 4031.745,
      "bid": 4030.945,
      "time": "2026-07-15T00:00:00.000-05:00",
      "spread": 0.8
    }
  ],
  "total": 379210,
  "dataset": "tick",
  "hasMore": true,
  "nextPage": 2,
  "provider": "histdata",
  "timezone": "EST-no-DST",
  "timeframe": "T"
}

Related APIs

More in finance

Pluang

financepluang

Data pasar Pluang lintas aset: order book, running trade, tradebook dan ringkasan broker per saham IDX, plus saham Amerika, emas, kripto, sinyal analis dan berita.

1.7M1.7M calls so far1dResponses cached for 1d
Busy: 10+ calls so far

IDX (Bursa Efek Indonesia)

financeidx

Data Bursa Efek Indonesia: ringkasan saham & indeks, top movers, broker, emiten, laporan keuangan, berita, dan passthrough ke ratusan endpoint /primary/.

772.4K772.4K calls so far1dResponses cached for 1d
Busy: 10+ calls so far

TradingView

financetradingview

Screener, charts, technical indicators, fundamentals, news and the macro calendar across 16 markets — Indonesian equities, US equities, crypto, forex and futures.

342.8K342.8K calls so far1dResponses cached for 1d
Busy: 10+ calls so far

Stockbit

financestockbit

Data saham IDX dari Stockbit: harga, chart intraday, profil emiten, diskusi komunitas, dan kamus investasi.

116.4K116.4K calls so far1dResponses cached for 1d
Busy: 10+ calls so far

Investing

financeinvesting

Data pasar finansial lengkap — quote saham/forex/crypto/komoditas, teknikal, OHLCV historis, berita, analisis, dan kalender ekonomi.

69.7K69.7K calls so far1hResponses cached for 1h
Busy: 10+ calls so far

Binance Futures

financebinance-futures

USD-M perpetual futures market data: funding, premium index, open interest, long/short ratios, candles and depth.

40.3K40.3K calls so far10mResponses cached for 10m
Busy: 10+ calls so far
zapi.

One key, one response shape. We keep the scrapers working.

Get an API key
ProductBrowse APIsPricingDocsMCP server
DevelopersSDK on npmGitHubOpenAPI specllms.txt
SupportReport an issueDiscord
LegalTermsPrivacyCookiesAUPRefunds
© 2026 ZapiPublic web data, one API.
zapi.