Sources › Finance › MacroMicro › Chart

MacroMicro Chart API
Series values, render config and the source stat ids behind them, for up to 12 charts in one call.
Request
https://api.zapi.ink/v1/finance:macromicro/chart/:idSend 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
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | path | Yes | Chart ids, comma-separated, up to 12. Take them from `charts`, `collection` or `market`. Example: 55744 |
| from | string | query | No | Drop observations before this date, YYYY-MM-DD. Example: 2020-01-01 |
| to | string | query | No | Drop observations after this date, YYYY-MM-DD. Example: 2026-08-29 |
| length | number | query | No | Observations per series, newest first (default 100, max 20000) Example: 100 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:macromicro/chart/55744?from=2020-01-01&to=2026-08-29&length=100" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:macromicro/chart/55744?from=2020-01-01&to=2026-08-29&length=100", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:macromicro/chart/55744", params={"from":"2020-01-01","to":"2026-08-29","length":"100"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:macromicro", "data": { "to": null, "from": "2015-01-01", "count": 2, "items": [ { "url": "https://en.macromicro.me/charts/55744/global-citi-earnings-revision-index", "slug": "global-citi-earnings-revision-index", "type": 1, "nameEn": "World - Citi Earnings Revision Index", "nameSc": "全球-花旗盈利修正指数", "nameTc": "全球-花旗盈利修正指數", "series": [ { "color": "#3bafda", "count": 8, "stats": [ { "units": "idx", "nameEn": "World - Citigroup Earnings Revision Index", "nameSc": "全球-花旗盈利修正指数", "nameTc": "全球-花旗盈利修正指數", "statId": 22951, "category": 21, "frequency": "W", "operation": "lin", "categoryV2": 100003, "aggregation": "eop", "frequencyName": "Weekly", "unitsOriginal": "idx", "frequencyOriginal": "W" } ], "total": 607, "units": "idx", "nameEn": "World", "nameSc": "全球-花旗盈利修正指数", "nameTc": "全球-花旗盈利修正指數", "axisType": "linear", "lastDate": "2026-08-14", "lineType": "column", "firstDate": "2015-01-04", "frequency": "W", "lineWidth": 2, "operation": "lin", "axisOffset": 0, "axisPosition": 1, "axisReversed": false, "observations": [ { "date": "2026-08-14", "value": 0.18 }, { "date": "2026-08-07", "value": 0.26 } ], "frequencyName": "Weekly", "unitsOriginal": "idx", "frequencyOriginal": "W" }, { "color": "#e9573f", "count": 8, "stats": [ { "units": "idx", "nameEn": "DM - Citigroup Earnings Revision Index", "nameSc": "成熟市场-花旗盈利修正指数", "nameTc": "成熟市場-花旗盈利修正指數", "statId": 22952, "category": 21, "frequency": "W", "operation": "lin", "categoryV2": 100003, "aggregation": "eop", "frequencyName": "Weekly", "unitsOriginal": "idx", "frequencyOriginal": "W" } ], "total": 607, "units": "idx", "nameEn": "Developed Markets", "nameSc": "成熟市场-花旗盈利修正指数", "nameTc": "成熟市場-花旗盈利修正指數", "axisType": "linear", "lastDate": "2026-08-14", "lineType": "line", "firstDate": "2015-01-04", "frequency": "W", "lineWidth": 2, "operation": "lin", "axisOffset": 0, "axisPosition": 1, "axisReversed": false, "observations": [ { "date": "2026-08-14", "value": 0.24 }, { "date": "2026-08-07", "value": 0.29 } ], "frequencyName": "Weekly", "unitsOriginal": "idx", "frequencyOriginal": "W" } ], "chartId": 55744, "seriesCount": 4, "sortBarChart": false, "descriptionEn": "The Citi Earnings Revision Index is calculated as “Proportion of Companies Revising EPS (%)” − “Proportion of Companies Revising EPS Down (%)” (compared to last week). When the ind…", "descriptionSc": "花旗盈利修正指数计算方式为「上调 EPS 的公司比例(%)」−「下调 EPS 的公司比例(%)」(与上周相比)。该指数位于零轴之上时,代表平均而言分析师对于企业盈利展望持乐观态度,反之则表示相对而言分析师持较悲观看法。", "descriptionTc": "花旗盈利修正指數計算方式為「上調 EPS 的公司比例(%)」−「下調 EPS 的公司比例(%)」(與上週相比)。該指數位於零軸之上時,代表平均而言分析師對於企業盈利展望持樂觀態度,反之則表示相對而言分析師持較悲觀看法。", "valueDecimals": 2 }, { "url": "https://en.macromicro.me/charts/26279/us-epu", "slug": "us-epu", "type": 1, "nameEn": "US - Economic Policy Uncertainty Index", "nameSc": "美国-经济不确定指数", "nameTc": "美國-經濟不確定指數", "series": [ { "color": "#3bafda", "count": 8, "stats": [ { "units": "idx", "nameEn": "US - Economic Policy Uncertainty Index", "nameSc": "美国-经济不确定指数", "nameTc": "美國-經濟不確定指數", "statId": 7909, "country": "us", "category": 1, "frequency": "D", "operation": "lin", "categoryV2": 100001, "aggregation": "eop", "frequencyName": "Daily", "unitsOriginal": "idx", "frequencyOriginal": "D" } ], "total": 4258, "units": "idx", "nameEn": "US Economic Policy Uncertainty Index", "nameSc": "美国-经济不确定指数", "nameTc": "美國-經濟不確定指數", "axisType": "linear", "lastDate": "2026-08-28", "lineType": "line", "firstDate": "2015-01-01", "frequency": "D", "lineWidth": 2, "operation": "lin", "axisOffset": 0, "operationN": "7", "axisPosition": 1, "axisReversed": false, "observations": [ { "date": "2026-08-28", "value": 252.08 }, { "date": "2026-08-27", "value": 168.85 } ], "frequencyName": "Daily", "unitsOriginal": "idx", "frequencyOriginal": "D" }, { "color": "#e9573f", "count": 8, "stats": [ { "units": "idx", "nameEn": "US - Economic Policy Uncertainty Index (MA30)", "nameSc": "美国-经济不确定指数(MA30)", "nameTc": "美國-經濟不確定指數(MA30)", "statId": 7911, "country": "us", "category": 1, "frequency": "D", "operation": "lin", "categoryV2": 100001, "aggregation": "eop", "frequencyName": "Daily", "unitsOriginal": "idx", "frequencyOriginal": "D" } ], "total": 4258, "units": "idx", "nameEn": "US Economic Policy Uncertainty Index (MA30)", "nameSc": "美国-经济不确定指数(MA30)", "nameTc": "美國-經濟不確定指數(MA30)", "axisType": "linear", "lastDate": "2026-08-28", "lineType": "line", "firstDate": "2015-01-01", "frequency": "D", "lineWidth": 2, "operation": "lin", "axisOffset": 0, "axisPosition": 1, "axisReversed": false, "observations": [ { "date": "2026-08-28", "value": 243.5297 }, { "date": "2026-08-27", "value": 242.9523 } ], "frequencyName": "Daily", "unitsOriginal": "idx", "frequencyOriginal": "D" } ], "chartId": 26279, "country": "us", "seriesCount": 2, "sortBarChart": false, "descriptionEn": "The primary measure for this index is the number of articles that contain at least one term from each of 3 sets of terms. The first set is economic or economy. The second is uncert…", "descriptionSc": "美国经济不确定指数以文本探勘的方式分析美国超过 1000 报纸,若当日报纸提到关于经济、不确定性、法规、国会、美联储、白宫等有关词彙越多,该指数越高。\n\n该指标以新闻报导的角度去衡量美国经济不确定性的状况,若该指数越高,代表美国经济不确定性较高。", "descriptionTc": "美國經濟不確定指數以文本探勘的方式分析美國超過 1000 報紙,若當日報紙提到關於經濟、不確定性、法規、國會、聯準會、白宮等有關詞彙越多,該指數越高。\n\n該指標以新聞報導的角度去衡量美國經濟不確定性的狀況,若該指數越高,代表美國經濟不確定性較高。", "valueDecimals": 2 } ], "total": 2, "charts": [ 55744, 26279 ], "length": 8, "dataset": "chart", "missing": [], "provider": "macromicro", "resolved": [ 55744, 26279 ] }, "timestamp": "2026-08-29T09:27:18Z" }
Frequently asked questions
How do I call the MacroMicro Chart API?
Send a GET request to https://api.zapi.ink/v1/finance:macromicro/chart/55744 with your Zapi key in the x-api-key header. Parameters — required: id; optional: from, to, length. The response is JSON in the { project, data, timestamp } envelope.
What does the MacroMicro Chart API return?
Series values, render config and the source stat ids behind them, for up to 12 charts in one call. The example response has the fields to, from, count, items, total, charts, length, dataset. Each item in items has fields such as url, slug, type, nameEn, nameSc, nameTc, series, chartId.
Is the MacroMicro Chart 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 2 Zap. Paid plans raise the limits.
Can an AI assistant call the MacroMicro Chart 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 "macromicro" and endpoint "chart".
What other MacroMicro API endpoints are there?
It has 4 endpoints. Besides Chart: Charts, Market, Calendar Macro.