Live Forex

Live Forex

Finance Türkiye Credits / request: 1

Returns free-market forex rates quoted in Turkish Lira. All symbols or a single code.

GET https://api.apikodu.com/api/v1/markets/doviz
Documentation
Overview

Live FX prices.

Authentication

Every request requires the x-api-key header. Credits used and remaining quota are returned in response headers (x-api-credits-used, x-api-remaining-credits, x-rate-limit-*).

Request
GET https://api.apikodu.com/api/v1/markets/doviz?code=USD
Query string. Empty code returns a summary list.
Parameters
Name Type Required Default Options Description
code string Optional — USD EUR GBP CHF CAD AUD JPY SAR RUB AED DKK SEK NOK Symbol. The list shows always-present common symbols; for the full list call without code and read items[].code. Empty returns the summary list.
Response
Name Type Description
list string Market list name (doviz, altin, kripto, emtia).
updatedAtUtc string Last update time of the list (UTC ISO datetime).
items array Symbol prices. A single item when code is set.
items[].code string Symbol code. Example: USD, GA, BTC, COIL.
items[].buying number Buying price.
items[].selling number Selling price. May equal buying on single-price markets.
items[].change number Absolute change (buying side).
items[].changePercent number Percent change.
items[].direction string Direction: up, down or flat.
items[].currency string Price currency (TRY, USD ...).
items[].currencySymbol string Currency symbol (₺, $ ...).
Errors
HTTP code Description
400 -230 code is not in this list.
503 -229 Live market cache is not available yet.
401 -100 x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API.
429 -221 Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.
429 — Package credit quota cannot cover this request. Body may be { error, limit, currentUsage, requestCost } (no code field).
500 -1 Unexpected server error. message is a generic error text without technical details.
Notes
  • Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).

Sample response

{
  "data": {
    "list": "doviz",
    "updatedAtUtc": "2026-08-20T12:00:00",
    "items": [
      {
        "code": "USD",
        "buying": 47.9434,
        "selling": 47.9848,
        "change": 0.07,
        "changePercent": 0.0336,
        "direction": "up",
        "currency": "TRY",
        "currencySymbol": "₺"
      },
      {
        "code": "EUR",
        "buying": 56.1057,
        "selling": 56.1478,
        "change": 0.18,
        "changePercent": 0.1011,
        "direction": "up",
        "currency": "TRY",
        "currencySymbol": "₺"
      },
      {
        "code": "GBP",
        "buying": 65.0155,
        "selling": 65.3414,
        "change": -0.03,
        "changePercent": -0.0196,
        "direction": "down",
        "currency": "TRY",
        "currencySymbol": "₺"
      }
    ]
  }
}

Code samples

  
      const response = await fetch('https://api.apikodu.com/api/v1/markets/doviz', {
        method: 'GET',
        headers: {
          'x-api-key': 'YOUR_API_KEY'
        }
      });

      const data = await response.json();
      console.log(data);
  
  
      import requests

      headers = {
          'x-api-key': 'YOUR_API_KEY'
      }

      response = requests.get('https://api.apikodu.com/api/v1/markets/doviz', headers=headers)
      print(response.json())
  
  
      using var client = new HttpClient();
      client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");

      var response = await client.GetStringAsync("https://api.apikodu.com/api/v1/markets/doviz");
      Console.WriteLine(response);
  
  
      $response = file_get_contents('https://api.apikodu.com/api/v1/markets/doviz', false, stream_context_create([
          'http' => [
              'header' => "x-api-key: YOUR_API_KEY"
          ]
      ]));

      print_r(json_decode($response, true));
  
  
      curl -X GET 'https://api.apikodu.com/api/v1/markets/doviz' \
        -H 'x-api-key: YOUR_API_KEY'
  

Start building in minutes

Create a free account, get your API key and send your first request in minutes.

Get started free