Sources › Finance › Histdata › Download Tick

Histdata Download Tick API

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

HistdataGET /download-tickAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:histdata/download-tick

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. XAUUSD starts 2009-03. Example: XAUUSD
datestringqueryYesOne trading day, YYYY-MM-DD. A whole tick month is millions of rows and is never served at once. Example: 2026-07-15
pagenumberqueryNoPage of ticks. Default 1. Example: 1
limitnumberqueryNoTicks per page. Default 5000, max 20000. Example: 5000

Code examples

cURL
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"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:histdata/download-tick?pair=XAUUSD&date=2026-07-15&page=1&limit=5000", {
  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/download-tick",
    params={"pair":"XAUUSD","date":"2026-07-15","page":"1","limit":"5000"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:histdata",
  "data": {
    "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"
  },
  "timestamp": "2026-08-21T02:23:28Z"
}

Frequently asked questions

How do I call the Histdata Download Tick API?

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

What does the Histdata Download Tick API return?

Tick quotes from HistData — bid AND ask, so a real spread per tick, which the. The example response has the fields date, file, page, pair, unit, count, items, total. Each item in items has fields such as ask, bid, time, spread.

Is the Histdata Download Tick 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 Download Tick 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 "download-tick".

What other Histdata API endpoints are there?

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