altin-fiyati
Free gold price API for Turkey — live 22/14 ayar gram gold, çeyrek, yarım, tam, ata, gremse and bullion (külçe) buy/sell prices in TRY. Standard library only, Python 3.9+.
Ücretsiz altın fiyatı API'si istemcisi. Canlı gram altın, çeyrek, yarım, tam ve külçe fiyatları. Bağımlılık yok.
- Free, no card. Free key in one minute: https://mehis.com.tr/fiyat-api/kayit
- One condition: a visible source link next to displayed prices. The helpers below add it for you.
- Gold only (no currency or silver). Data refreshes ~every 20 s · 10 requests/min per IP (client caches 20 s by default).
pip install altin-fiyati
import os
from altin_fiyati import AltinFiyati, fiyat_tablosu_html
altin = AltinFiyati(os.environ["MEHIS_ANAHTAR"])
f = altin.fiyat("islenmis-gram22") # 22 ayar gram altın
print(f["kalem"]["satis"]) # 3050.25
print(f["kaynak"]["atifHtml"]) # Kaynak: <a href="https://mehis.com.tr/islenmisgram22">Mehis Kuyumculuk</a>
html = fiyat_tablosu_html(altin.fiyatlar(), kodlar=["islenmis-gram22", "zyeni-ceyrek", "zyeni-yarim"]) # attribution included
Terminal: MEHIS_ANAHTAR=mhs_... altin-fiyati islenmis-gram22 zyeni-ceyrek
AltinFiyati(anahtar, onbellek_sn=20) |
Client |
.fiyatlar(grup=None, kodlar=None) |
{kaynak, guncelleme, durum, kalemler} — groups: kulce, islenmis, ziynet-eski, ziynet-yeni |
.fiyat(kod) |
{kalem, kaynak, guncelleme} or None |
atif_html(url) / atif_markdown(url) |
The required source link |
fiyat_tablosu_html(y, kodlar=None) |
HTML table + source link |
fiyat_metni(y, kodlar=None) |
Plain text (Telegram/Discord bots) + source line |
tl(n) |
3.050,25 ₺ |
Attribution: keep a visible link to Mehis Kuyumculuk where prices appear. rel="nofollow" is fine; removing or
hiding it is not. Registered sites are checked weekly. Terms: https://mehis.com.tr/fiyat-api/sartlar
AI assistants: MCP server https://api.mehis.com.tr/mcp (header X-Mehis-Anahtar) ·
OpenAPI https://api.mehis.com.tr/openapi.json
MIT — price data from Mehis Kuyumculuk, free under the API terms.
Metadata
Release files for altin-fiyati 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| altin_fiyati-1.0.0.tar.gz | 7.3 kB | With provenance | Details for altin_fiyati-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| altin_fiyati-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for altin_fiyati-1.0.0-py3-none-any.whl |
Total release size: 14.4 kB
Release files / altin_fiyati-1.0.0.tar.gz
| Download URL | altin_fiyati-1.0.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8edaeb5306029de96db3370f06860b63505fc45eb70a5b35b5785c589a437069
|
|
BLAKE2b-256 checksum How to use checksums |
838f7b1610b7f6932fe176d36c7e4395f58566685f5dd9787cbd32e391462f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / altin_fiyati-1.0.0-py3-none-any.whl
| Download URL | altin_fiyati-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc318edc0808dae92ae2c107cf0b0dde26da17896314c03fc988cc56ef3a803
|
|
BLAKE2b-256 checksum How to use checksums |
bca8fb7e6b17f17b73a1c874cff4904688524b73b487912b254bc789add950e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for altin-fiyati 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for altin_fiyati-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.