Request
https://api.zapi.ink/v1/finance:cftc/commitmentsSend 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 6 hours.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| market | string | query | No | Match against the contract name (case-insensitive substring). Example: WHEAT |
| from | string | query | No | Earliest report date (YYYY-MM-DD). Example: 2026-01-01 |
| length | number | query | No | Rows to return (default 50, max 500) Example: 50 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:cftc/commitments?market=WHEAT&from=2026-01-01&length=50" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:cftc/commitments?market=WHEAT&from=2026-01-01&length=50", { 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:cftc/commitments", params={"market":"WHEAT","from":"2026-01-01","length":"50"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:cftc", "data": { "from": "2026-01-01", "count": 50, "items": [ { "date": "2026-08-11", "market": "GULF # 6 FUEL OIL CRACK", "exchange": "GULF # 6 FUEL OIL CRACK - NEW YORK MERCANTILE EXCHANGE", "commodity": "FUEL OIL/CRUDE OIL", "openInterest": 10102, "commercialNet": -263, "commercialLong": 7142, "commercialShort": 7405, "nonCommercialNet": 253, "nonCommercialLong": 1405, "nonReportableLong": 10, "nonCommercialShort": 1152, "nonReportableShort": 0, "nonCommercialSpread": 1545 }, { "date": "2026-08-11", "market": "GULF JET NY HEAT OIL SPR", "exchange": "GULF JET NY HEAT OIL SPR - NEW YORK MERCANTILE EXCHANGE", "commodity": "JET FUEL/HEATING OIL", "openInterest": 12106, "commercialNet": -290, "commercialLong": 11816, "commercialShort": 12106, "nonCommercialNet": 100, "nonCommercialLong": 100, "nonReportableLong": 190, "nonCommercialShort": 0, "nonReportableShort": 0, "nonCommercialSpread": 0 }, { "date": "2026-08-11", "market": "PGP PROPYLENE (PCW) CAL", "exchange": "PGP PROPYLENE (PCW) CAL - NEW YORK MERCANTILE EXCHANGE", "commodity": "PROPYLENE", "openInterest": 7012, "commercialNet": 3127, "commercialLong": 4028, "commercialShort": 901, "nonCommercialNet": -3181, "nonCommercialLong": 1841, "nonReportableLong": 198, "nonCommercialShort": 5022, "nonReportableShort": 144, "nonCommercialSpread": 945 }, { "date": "2026-08-11", "market": "7 YEAR ERIS SOFR SWAP", "exchange": "7 YEAR ERIS SOFR SWAP - CHICAGO BOARD OF TRADE", "commodity": "2-7-YEAR INTEREST RATE SWAPS ERIS & MAC", "openInterest": 33099, "commercialNet": -6584, "commercialLong": 375, "commercialShort": 6959, "nonCommercialNet": 6582, "nonCommercialLong": 16239, "nonReportableLong": 18, "nonCommercialShort": 9657, "nonReportableShort": 16, "nonCommercialSpread": 16467 }, { "date": "2026-08-11", "market": "5 YEAR ERIS SOFR SWAP", "exchange": "5 YEAR ERIS SOFR SWAP - CHICAGO BOARD OF TRADE", "commodity": "2-7-YEAR INTEREST RATE SWAPS ERIS & MAC", "openInterest": 177800, "commercialNet": -16936, "commercialLong": 27204, "commercialShort": 44140, "nonCommercialNet": 16990, "nonCommercialLong": 103512, "nonReportableLong": 34, "nonCommercialShort": 86522, "nonReportableShort": 88, "nonCommercialSpread": 47050 }, { "date": "2026-08-11", "market": "3 YEAR ERIS SOFR SWAP", "exchange": "3 YEAR ERIS SOFR SWAP - CHICAGO BOARD OF TRADE", "commodity": "2-7-YEAR INTEREST RATE SWAPS ERIS & MAC", "openInterest": 71913, "commercialNet": -18005, "commercialLong": 4500, "commercialShort": 22505, "nonCommercialNet": 18049, "nonCommercialLong": 53345, "nonReportableLong": 10, "nonCommercialShort": 35296, "nonReportableShort": 54, "nonCommercialSpread": 14058 } ], "source": "cftc" }, "timestamp": "2026-08-08T10:10:23Z" }
Frequently asked questions
How do I call the CFTC Commitments of Traders API?
Send a GET request to https://api.zapi.ink/v1/finance:cftc/commitments with your Zapi key in the x-api-key header. Parameters — optional: market, from, length. The response is JSON in the { project, data, timestamp } envelope.
What does the CFTC Commitments of Traders API return?
Baris COT terbaru, bisa disaring per nama kontrak dan tanggal laporan. The example response has the fields from, count, items, source. Each item in items has fields such as date, market, exchange, commodity, openInterest, commercialNet, commercialLong, commercialShort.
Is the CFTC Commitments of Traders 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 CFTC Commitments of Traders 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 "cftc" and endpoint "commitments".
What other CFTC API endpoints are there?
It has 2 endpoints. Besides Commitments of Traders: Legacy.
