Free Türkiye data API

Türkiye’s live data, ready for your app.

Gold prices, lira exchange rates, earthquakes, prayer times, fuel and duty pharmacies, through a simple web link, as JSON.

  • Free to use
  • No account
  • Works without a key
Live answerGET /gold?category=gram
{
  "type": "gram_24k",
  "sell": 6570.12,
  "price_date": "2026-11-05",
  "attribution": {
    "text": "Data: Turkpidya"
  }
}
  • 7live feeds
  • 25datasets
  • 17site languages
  • 300calls a minute with a key

Your first request

Don’t just read about it. Try it for yourself.

Pick a topic, then ask for the data. Switch between a friendly explanation and the exact answer a program receives.

Exchange rates

How much is a dollar in lira?

TCMB lira exchange rates for dollars, euros and other currencies. Useful for a travel budget or an invoice.

This makes a real, read-only request.

Where it comes fromTCMB, Türkiye’s central bank

Ready when you are

Your answer lands here.

Press “Get the data” to see what comes back.
No setup. No code. Just try it.

Ready to put it in your project?

This code asks the same question as the explorer above. If a browser blocks a request from your own website, run it on your server.

The one rule

Show the Turkpidya link wherever you show the data.

The API is free. All we ask in return is a visible link wherever the data appears.

  1. Every answer carries the link ready-made in its attribution field: the text, a tagged address and HTML to paste.
  2. web_url is the Turkpidya page with the same data. Add ?lang=xx to get it in another language.
  3. In apps, show it as a tappable “Data: Turkpidya”.
Gram gold₺6,570.12Data: Turkpidya
A box on a jeweller’s site
<a href="https://turkpidya.com/gold-prices/">Data: Turkpidya</a>

No code

Add a ready-made box to your site.

Paste two lines and a live gold, exchange rate, earthquake, prayer time or duty pharmacy box appears. The credit link stays in your own page.

The box refreshes itself every 5 minutes. Please keep the credit link: it is the one condition that keeps the data free.

Optional

Get a free API key.

Calls without a key keep working. A key gives you:

  • 300 calls a minute instead of 60.
  • An email before anything changes.
  • For apps that show the Turkpidya link, a linked place in the showcase below.

Send it with each call as ?key=... or in an X-API-Key header.

Showcase

Built with Turkpidya data.

Apps and sites that show the credit link. Yours could be here too.

01

Your app could be the first one here. Tick “list my app” when you get a free key.

Free key

The data collection

And 25 more datasets

Inflation, rent caps, minimum wage and tax brackets, house prices, tourism, motorway and bridge tolls, museums. Each with its current revision, history and schema. OpenAPI file (every address)

Addresses & details

Exchange rates

GET /fxGET /fx/{currency}
currency
A three-letter currency code in the address, such as USD or EUR. Leave it out to see all currencies.

Update schedule: Each business day, around 15:30 · Reuse an answer for: 1 hour

These are central-bank reference rates. A bank or exchange office may offer a different rate.

Open this API address

Gold & silver

GET /gold
category
Choose all, gram, coin or silver. The default is all.

Update schedule: Every 5 minutes · Reuse an answer for: 5 minutes

Buy and sell are separate prices. All amounts are in Turkish lira; check the record date before using them. Each price names its source.

Open this API address

Prayer times

GET /prayer-timesGET /prayer-times/cities
city
Required city name in the URL, such as istanbul, ankara or izmir. The cities route lists supported names.
date
Optional date as YYYY-MM-DD. Leave it out for today in Istanbul time.

Update schedule: Daily · Reuse an answer for: Until midnight

A local mosque’s timetable may differ by a few minutes.

Open this API address

Fuel prices

GET /fuel
city
Optional: istanbul, ankara, izmir or antalya. Leave it out for all available cities.

Update schedule: Every 6 hours · Reuse an answer for: 1 hour

The answer gives city averages, not a guaranteed price at a particular station.

Open this API address

Earthquakes

GET /earthquakesGET /earthquakes/latest
hours
Look back 1–168 hours. The default is 24.
min_magnitude
Only show events at or above this magnitude. Default: 0.
city
Optional text to match in the location, such as balikesir.
limit
Return 1–100 events. The default is 20.

Update schedule: Every 5 minutes · Reuse an answer for: 5 minutes

This is a record of reported events, not an emergency alert service.

Open this API address

Duty pharmacies

GET /pharmacies/on-duty
city
Optional province, such as istanbul, ankara or eskisehir.

Update schedule: Hourly · Reuse an answer for: Up to 5 minutes

Call the pharmacy before you go. In an emergency, dial 112.

Open this API address

Medicine lookup

GET /meds/lookupGET /meds/suggest
q
Required brand or active ingredient. Suggestions need at least 2 characters.
limit
Lookup only: 1–25 products per result group. Default: 10.

Update schedule: Weekly (Sunday) · Reuse an answer for: 1 hour

Matching an ingredient does not mean two medicines can be safely substituted. Always confirm with a pharmacist.

Open this API address

All addresses start with https://turkpidya.com/wp-json/turkpidya-data/v1. Existing turkpidya-gold/v1 and turkpidya-earthquake/v1 integrations still work.

For curious humans and helpful AI

Let your assistant do the asking.

Connect Turkpidya to an AI assistant that supports MCP. Then ask a normal question, and it can look up the answer using these same data sources.

Every answer includes web_url, so the assistant can show its source as a link.

Explore the open-source connector

“Can you check the euro exchange rate for me?”

Your assistant checks Turkpidya

It can read the rate, name the source, and tell you the date of the record.

Requires Node.js 18+ and Claude Code. Run this in your terminal:

claude mcp add turkey-data -- npx -y turkey-data-mcp

Good to know

Rules and a small dictionary

A few simple rules keep the service useful for everyone.

60/ min

Give 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.

Give the source a little credit

When you show the data publicly, add a visible link to Turkpidya. Please don’t resell the 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.

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