Hasfiyat Fiyatlar API

Canlı altın, gümüş ve döviz fiyatları

Operations 1

GET /api/prices Canlı altın, gümüş ve döviz fiyatlarını döndürür #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hasfiyat:hasfiyat-fiyatlar-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hasfiyat-fiyatlar-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hasfiyat Altın & Döviz Fiyat Fiyatlar API
  version: 1.0.0
  summary: Türkiye serbest piyasa altın, gümüş ve döviz fiyatları için canlı REST + WebSocket API.
  description: Hasfiyat API; kuyumcular, döviz büroları, sarraflar ve e-ticaret siteleri için gram altın, çeyrek, yarım, tam, ATA, 22/18/14 ayar bilezik, has altın, ons (XAU), gümüş ve döviz kurlarını birden fazla canlı kaynaktan tek standart şemada sunar. Kaynak önceliklendirme ve otomatik yük devretme desteklenir.
  termsOfService: https://altinapi.hasfiyat.com/kullanim-kosullari
  contact:
    name: Hasfiyat
    url: https://altinapi.hasfiyat.com/iletisim
  license:
    name: Ticari lisans
    url: https://altinapi.hasfiyat.com/kullanim-kosullari
servers:
- url: https://api.hasfiyat.com
  description: Üretim
security:
- BearerAuth: []
- ApiKeyHeader: []
tags:
- name: Fiyatlar
  description: Canlı altın, gümüş ve döviz fiyatları
paths:
  /api/prices:
    get:
      tags:
      - Fiyatlar
      operationId: getPrices
      summary: Canlı altın, gümüş ve döviz fiyatlarını döndürür
      description: Seçilen veri kaynağının o anki alış/satış fiyatlarını standart şemada döndürür. Kaynak belirtilmezse hesabınızda tanımlı öncelik sırası kullanılır.
      parameters:
      - name: source
        in: query
        required: false
        description: Veri kaynağı. Belirtilmezse hesabın öncelik sırası uygulanır.
        schema:
          type: string
          enum:
          - harem
          - hakan
          - mayda
          - myakche
          - metal
          - nadir
          - anlik
          - saglamoglu
          - fikrisahin
          - doviz
          - sahap
      - name: symbols
        in: query
        required: false
        description: Virgülle ayrılmış kalem listesi (ör. HAS,GRAM,CEYREK,YARIM,TAM,USD,EUR). Boş bırakılırsa kaynağın tüm kalemleri döner.
        schema:
          type: string
      - name: birim
        in: query
        required: false
        description: 1 verilirse her kaleme unit ve currency alanları eklenir.
        schema:
          type: string
          enum:
          - '1'
      responses:
        '200':
          description: Başarılı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FiyatCevabi'
              example:
                source: harem
                count: 3
                data:
                - title: HAS ALTIN
                  buy: 6.584,13
                  sell: 6.600,42
                - title: YENİ ÇEYREK
                  buy: 10.774,00
                  sell: 10.958,00
                - title: USD/TL
                  buy: 42,3100
                  sell: 42,3600
                dataAgeMs: 1200
                stale: false
                lastUpdate: '2026-10-05T07:00:00.000Z'
        '401':
          description: API anahtarı gönderilmedi veya geçersiz
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Hata'
        '403':
          description: Erişim reddedildi (IP bağlama sınırı; varsayılan olarak etkin değildir)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Hata'
        '429':
          description: İstek limiti aşıldı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Hata'
components:
  schemas:
    Hata:
      type: object
      properties:
        error:
          type: string
          description: Hata açıklaması
        reason:
          type: string
          description: Makine tarafından okunabilir hata kodu
    FiyatKalemi:
      type: object
      required:
      - title
      - buy
      - sell
      properties:
        title:
          type: string
          description: Kalem adı (kaynağın kullandığı başlık)
          examples:
          - HAS ALTIN
          - 22 AYAR
          - YENİ ÇEYREK
          - ONS
          - USD/TL
        buy:
          type: string
          description: Alış fiyatı; Türkçe sayı biçiminde metin (binlik ayırıcı nokta, ondalık virgül)
        sell:
          type: string
          description: Satış fiyatı; Türkçe sayı biçiminde metin
        unit:
          type: string
          description: 'Yalnız birim=1 ile: birim'
        currency:
          type: string
          description: 'Yalnız birim=1 ile: para birimi'
    FiyatCevabi:
      type: object
      required:
      - source
      - data
      properties:
        source:
          type: string
          description: Fiyatın alındığı veri kaynağı
        count:
          type: integer
          description: Dönen kalem sayısı
        data:
          type: array
          items:
            $ref: '#/components/schemas/FiyatKalemi'
        dataAgeMs:
          type:
          - integer
          - 'null'
          description: Verinin göreli yaşı (dataAge)
        stale:
          type:
          - boolean
          - 'null'
          description: Veri bayatsa true
        lastUpdate:
          type:
          - string
          - 'null'
          format: date-time
          description: Verinin önbelleğe yazıldığı an (ISO 8601, UTC)
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer <api-anahtari>'
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'x-api-key: <api-anahtari>'
externalDocs:
  description: API dokümantasyonu
  url: https://altinapi.hasfiyat.com/docs