Sigortalı kargo fiyata dahilSattığımız ürünü günlük kurdan geri alırızKredi kartına 3 taksit0537 048 45 67Mehis uygulaması: Android · iOS yakında
Sigortalı kargo fiyata dahilSattığımız ürünü günlük kurdan geri alırızKredi kartına 3 taksit0537 048 45 67Mehis uygulaması: Android · iOS yakında

For developers · Free · JSON

Free Gold Price API for Turkey

One condition: a visible Kaynak: Mehis Kuyumculuk link on the page that shows the prices.

A free, live gold price API for Turkey: gram gold, çeyrek (quarter coin), yarım (half), tam (full), ata and gremse coins, 24k bullion and 22k bracelet buy/sell prices in Turkish lira (TRY), as JSON. No paid tiers, no trial, no credit card — a free API key takes a minute. There is also a ready-made price widget you can embed without writing code. Prices come from the live price board of Mehis Kuyumculuk, a jeweller in Türkiye; the only condition is a visible "Kaynak: Mehis Kuyumculuk" link next to the prices.

  • Free. No paid plan, no credit card, no trial. A free alternative to paid gold price APIs.
  • Registered. Get a free API key — just an e-mail address and your website; the key arrives right away. (The sign-up form is in Turkish: *E-posta* = e-mail, *Site adresi* = website.)
  • One condition: attribution. A visible Kaynak: Mehis Kuyumculuk link on every page that shows the prices. Details: terms of use (Turkish).
  • Machine-readable. openapi.json · llms.txt · this page as Markdown · Türkçe doküman.

Typical uses: gold price or jeweller websites, news and finance pages, WordPress plugins, mobile apps, Telegram/Discord bots, Google Sheets, gold savings and portfolio trackers.

Quick start

  1. Get a free API key. You receive two keys by e-mail. The permanent key starts with mhs_ and works only on the domain you register (and its subdomains) — not on localhost or anywhere else (alan_adi_yetkisiz, 403). The test key starts with mhs_test_, is valid for 1 hour and works on any site, including localhost, CodePen or a staging server. After it expires you get anahtar_suresi_doldu (401). The attribution link is required with both keys. Both only unlock prices; store products (/v1/urunler) require a separate product key (mhs_urun_) issued by Mehis.
  2. Send the key in the X-Mehis-Anahtar header (server side) or as the anahtar query parameter.
  3. Put the <a href="https://mehis.com.tr/fiyatlar">Kaynak: Mehis Kuyumculuk</a> link where you show the prices (the kaynak.atifHtml field in every response is this HTML).
curl
curl -s "https://api.mehis.com.tr/v1/fiyatlar?kalemler=zyeni-ceyrek,islenmis-gram22" \
  -H "X-Mehis-Anahtar: $MEHIS_API_KEY"

Endpoints

Base URL: https://api.mehis.com.tr. All endpoints are GET and return JSON (UTF-8).

EndpointReturnsKey
GET /v1/fiyatlarLive buy/sell prices of all items; filter with kalemler (comma-separated codes) or grup.Required
GET /v1/fiyatlar/{kod}Live price of a single item.Required
GET /v1/kalemlerItem codes, names and groups (no prices).Not needed
GET /v1/widget/fiyatlarUsed by the embeddable widget; browser-side, domain-locked.Required (query)
GET /v1/saglikHealth check.Not needed

Response

GET /v1/fiyatlar — example (figures are illustrative)
{
  "kaynak": {
    "ad": "Mehis Kuyumculuk",
    "url": "https://mehis.com.tr/fiyatlar",
    "atifHtml": "<a href=\"https://mehis.com.tr/fiyatlar\">Kaynak: Mehis Kuyumculuk</a>",
    "sartlar": "https://mehis.com.tr/fiyat-api/sartlar"
  },
  "guncelleme": "2026-11-30T09:15:20.000Z",
  "durum": "canli",
  "kalemler": [
    {
      "kod": "zyeni-ceyrek",
      "ad": "Yeni Çeyrek",
      "grup": "ziynet-yeni",
      "birim": "adet",
      "url": "https://mehis.com.tr/zyeniceyrek",
      "alis": 10120,
      "satis": 10270,
      "paraBirimi": "TRY",
      "degisimYuzde": 0.42
    },
    {
      "kod": "islenmis-gram22",
      "ad": "22 Ayar Gram Altın",
      "grup": "islenmis",
      "birim": "gram",
      "url": "https://mehis.com.tr/islenmisgram22",
      "alis": 5661,
      "satis": 5760,
      "paraBirimi": "TRY",
      "degisimYuzde": -0.15
    }
  ]
}
FieldMeaning
kaynak.atifHtmlReady-made attribution link to place next to the prices (required).
guncellemeWhen the prices were calculated, UTC, ISO 8601.
kalemler[].kodPermanent item code.
kalemler[].adItem name in Turkish.
kalemler[].birimgram (per gram) or adet (per piece, coins).
kalemler[].alis / satisBuy / sell price in Turkish lira (TRY).
kalemler[].degisimYuzdeChange of the sell price vs ~24 hours ago (%), or null.

Gold items

Only Mehis Kuyumculuk's own price-board gold prices are served. No currencies, silver or raw wholesale market data.

CodeName (Turkish)EnglishUnit
kulce-kulce-11 gr Külçe1 g bullion bargram
kulce-kulce-5-105–10 gr Külçe5–10 g bullion bargram
kulce-kulce-2020 gr Külçe20 g bullion bargram
kulce-kulce-50-10050–100 gr Külçe50–100 g bullion bargram
kulce-kulce-250-1000250–1000 gr Külçe250–1000 g bullion bargram
islenmis-gram2222 Ayar Gram Altın22k gram goldgram
islenmis-bilezik2222 Ayar Bilezik (Yatırımlık)22k bracelet (investment)gram
islenmis-bilezik22rsc22 Ayar Bilezik (Ray / Şarnel / CNC)22k bracelet (machine-made)gram
islenmis-ayar1414 Ayar Altın14k goldgram
zeski-ceyrekEski ÇeyrekQuarter coin (older mint)adet
zeski-yarimEski YarımHalf coin (older mint)adet
zeski-tamEski TamFull coin (older mint)adet
zeski-ataEski AtaAta coin (older mint)adet
zeski-gremseEski GremseGremse coin (older mint)adet
zyeni-ceyrekYeni ÇeyrekQuarter coin (new mint)adet
zyeni-yarimYeni YarımHalf coin (new mint)adet
zyeni-tamYeni TamFull coin (new mint)adet
zyeni-ataYeni AtaAta coin (new mint)adet
zyeni-gremseYeni GremseGremse coin (new mint)adet

Code examples

JavaScript / TypeScript
// Node 18+ / Next.js (server side). Keep the key in an env variable.
const res = await fetch("https://api.mehis.com.tr/v1/fiyatlar?grup=ziynet-yeni", {
  headers: { "X-Mehis-Anahtar": process.env.MEHIS_API_KEY },
  next: { revalidate: 20 }, // outside Next.js: cache for 20 s yourself
});
if (!res.ok) {
  const { hata } = await res.json();
  throw new Error(`${hata.kod}: ${hata.mesaj}`); // on 429 wait Retry-After seconds
}
const data = await res.json();

// Attribution is REQUIRED when you display prices — data.kaynak.atifHtml is ready-made HTML:
// <a href="https://mehis.com.tr/fiyatlar">Kaynak: Mehis Kuyumculuk</a>
for (const item of data.kalemler) console.log(item.ad, item.alis, item.satis);
Python
import os, requests

r = requests.get(
    "https://api.mehis.com.tr/v1/fiyatlar",
    params={"kalemler": "zyeni-ceyrek,islenmis-gram22"},
    headers={"X-Mehis-Anahtar": os.environ["MEHIS_API_KEY"]},
    timeout=10,
)
r.raise_for_status()
for item in r.json()["kalemler"]:
    print(item["ad"], item["alis"], item["satis"])

# When displaying: r.json()["kaynak"]["atifHtml"]
# -> <a href="https://mehis.com.tr/fiyatlar">Kaynak: Mehis Kuyumculuk</a>

Embeddable gold price widget

No code needed: paste this snippet into your page. The widget refreshes prices only while the tab is visible. If the data-mehis-atif link inside it is removed or hidden, the prices are not shown. The key being visible in the page source is fine — it only works on your registered domain.

Script (recommended)
<div class="mehis-fiyat" data-mehis-fiyat data-anahtar="mhs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
     data-kalemler="zyeni-ceyrek,islenmis-gram22" data-tema="acik">
  <a href="https://mehis.com.tr/zyeniceyrek" data-mehis-atif>Mehis Kuyumculuk</a>
</div>
<script async src="https://mehis.com.tr/widget.js"></script>

Attribution rule

  • On every page that shows the prices, near the prices: a visible, clickable Kaynak: Mehis Kuyumculuk link → https://mehis.com.tr/fiyatlar (or the item's url).
  • Hiding it, making it transparent or unreadably small, or moving it to another page is not allowed.
  • Adding rel="nofollow" is fine; removing the link is not.
  • Your registered site is checked automatically once a week (first check: when the key is first used, or 7 days after sign-up at the latest). If the link is missing you get an e-mail; after 7 days the key is suspended (anahtar_askida).

Rate limits

EndpointLimit
/v1/fiyatlar, /v1/fiyatlar/{kod}10 requests per minute per IP
/v1/widget/fiyatlar60 requests per minute per IP

Requests over the limit get 429 with a Retry-After header. Prices are cached on the CDN for 20 seconds, so asking more often brings no new data. Cache the response on your server; don't call the API per visitor.

Errors

All errors share one shape; hata.belge links to the matching row of the Turkish docs.

json
{
  "hata": {
    "kod": "hiz_siniri",
    "mesaj": "Dakikada en fazla 10 istek. 42 saniye sonra yeniden deneyin.",
    "durum": 429,
    "belge": "https://mehis.com.tr/fiyat-api#hata-hiz_siniri"
  }
}
CodeHTTPMeaning
gecersiz_istek400Invalid parameter (e.g. unknown item code).
anahtar_gerekli401No API key sent.
anahtar_gecersiz403Unknown or revoked key.
anahtar_suresi_doldu401The 1-hour test key has expired — use the permanent key from the same e-mail, or sign up again.
anahtar_askida403Key suspended: the attribution link was not found on your site.
alan_adi_yetkisiz403Request does not come from the key's registered domain.
kapsam_yetersiz403The key has no access to this endpoint. /v1/urunler requires a product key (mhs_urun_).
bulunamadi404Unknown item or path.
yontem_desteklenmiyor405Only GET is supported.
hiz_siniri429Rate limit exceeded — wait Retry-After seconds.
kaynak_hatasi502Price source temporarily unavailable — retry shortly.
fiyatlar_durduruldu503Prices paused by Mehis (market move, maintenance) — do not show stale prices.
ic_hata500Unexpected server error.

FAQ

Is there a free gold price API for Turkey?

Yes. This API is free: no paid plan, no trial period, no credit card. Get a free API key and call GET https://api.mehis.com.tr/v1/fiyatlar to receive live Turkish gold prices as JSON. In return, show a visible source link next to the prices.

How do I get the gram gold price in Turkish lira via API?

GET https://api.mehis.com.tr/v1/fiyatlar/islenmis-gram22 returns the buy and sell price of 22k gram gold in TRY. For 24k, use the bullion items (kulce-kulce-1 etc.). Send your key in the X-Mehis-Anahtar header.

How do I get the çeyrek altın (quarter gold coin) price as JSON?

GET /v1/fiyatlar?kalemler=zyeni-ceyrek,zeski-ceyrek returns the per-piece price of the new and older-mint quarter coin. For half, full, ata and gremse coins use ?grup=ziynet-yeni or ?grup=ziynet-eski.

Can I show live gold prices on my website without coding?

Yes. Paste the ready-made price widget snippet into your page; prices refresh by themselves. It works on any site, including WordPress.

How often are the prices updated?

Prices refresh every 20 seconds. The raw API allows 10 requests per minute per IP; cache the response on your server for 20 seconds.

Where do the prices come from?

From the live price board of Mehis Kuyumculuk, a jeweller in Burhaniye, Türkiye. They are the shop's real buy and sell prices; for information only, not an offer to trade.

Does it include USD/TRY, silver or the XAU spot price?

No. The API only serves Turkish gold prices in TRY; there is no currency, silver or ounce (XAU/USD) data.

Can I call it directly from the browser?

Use the price widget in the browser; it calls the domain-locked /v1/widget/fiyatlar endpoint. Call /v1/fiyatlar from your own server and cache it.

Sigortalı kargo, fiyata dahil

Yurt içi kargo ile sigortalı gönderim; teslim edilene kadar yol riski bizde. Kaybolur, çalınır ya da hasar görürse bedeli sigorta karşılar.

Günlük kurdan geri alım

Sattığımız ürünü istediğiniz zaman o günün kurundan geri alırız. Kuyumda iadenin yerini tutan, esnaf usulü güvence.

Havale/EFT ile peşin fiyat

Ürün sayfasındaki ana fiyat havale/EFT ile peşin fiyattır; kredi kartı fiyatı aynı sayfada yazar. Kredi kartında taksit seçenekleri — kuyum ürünlerinde yasal sınır esastır.