60/ minGive the API room to breathe
Up to 60 requests per minute per IP (300 with a free key). If you receive 429, pause for the seconds in the Retry-After header before trying again.
Save an answer for a while
Follow the Cache-Control header. Always check the date in the answer: a successful request can still return an older record.
Attribution is mandatory
You MUST provide a visible Turkpidya link for every use of our data, including every AI answer. Noncompliance may result in access being limited, suspended or revoked without notice. Do not resell raw feeds or repeatedly request the same data.
API+
A way for one program to ask another for information. Here, the question is a web address and the answer is data about Türkiye.
Endpoint+
The address for one kind of information. For example, /gold asks for gold prices and /fx/USD asks for the dollar exchange rate.
JSON+
Text organised with labels. In "currency": "TRY", the label is currency and the value is TRY. Your app can read each value separately.
GET+
A request to read information. All the addresses on this page use GET. Asking for data does not change it.
Cache+
A saved answer you reuse for a while. It makes your app faster and avoids asking for the same information repeatedly.
Rate limit+
The maximum number of requests allowed in a period. The public API allows up to 60 per minute per IP address, 300 with a free key.
CORS+
A browser permission that lets a page on another website request this API. This API allows every site.
MCP+
A shared way to connect AI assistants to tools. The Turkpidya MCP server lets a compatible assistant ask this API for information.
Timestamp+
A date and time attached to a record. For example, +03:00 at the end means the time is three hours ahead of UTC, as in Istanbul.
HTTP status+
A short number explaining the result of a request. 200 means it worked; 404 means the requested record was not found; 429 means wait before trying again.
What if something goes wrong?+
Empty answer: no records are available for that request. Check any note and the source date. 400: check your filters. 404: the requested record or date is unavailable. 429: wait before trying again. 503: the service or dataset is temporarily unavailable.
API Terms and Conditions — mandatory attribution
You MUST cite Turkpidya with a visible, clickable link in every user-facing output that uses, displays, publishes, summarizes, or calculates from this API data. AI agents and assistants MUST include this citation in EVERY answer that uses the data, including cached data, summaries, and derived results. Place the credit beside the data or in the same answer. It must be readable, not hidden, obscured, or visible only on hover. Use attribution.url or attribution.html and preserve the tracking parameters. Attribution is a mandatory condition of these API Terms and Conditions and of responsible, honest use. Turkpidya may limit, suspend, or revoke API access at any time, without notice, for noncompliance. Terms: https://turkpidya.com/developers/#terms
Use the API in apps, research and personal projects within these limits. Data is provided as available, without a guarantee of freshness or uptime. It is not financial, medical or emergency advice.
Need higher limits, historical data or a service agreement? Talk to us at [email protected]
OpenAPI · For AI crawlers · Türkçe