Конвертор валута и API курсева

Курсеви у реалном времену за преко 170 валута (фиат, крипто, племенити метали). Упоредите курсеве на 8 платформи укључујући Wise, Revolut, PayPal. Историјски подаци до 1 године.

Шта можете да радите?
Курсеви у реалном времену

Преко 170 фиат, крипто и валута племенитих метала у једном позиву.

Поређење курсева платформи

Упоредите Wise, Revolut, PayPal, XE и још 5 платформи да пронађете најбољу понуду.

Историјски подаци до 1 године

Дневни снимци за анализу трендова, графиконе и бектестирање.

99.9 % Доступност
5ms Одговор
20 req/s
0.001 Кредити / захтев

List Currencies


POST https://api.yeb.to/v1/currency/currencies
ПараметарТипОбавезанОпис
api_key string да Your API key

Пример

curl -X POST https://api.yeb.to/v1/currency/currencies \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY"
}'

Пример одговора

{
  "currencies": [
    { "code": "EUR", "name": "Euro", "symbol": "\u20ac", "decimals": 2, "type": "fiat" },
    { "code": "USD", "name": "US Dollar", "symbol": "$", "decimals": 2, "type": "fiat" },
    { "code": "BTC", "name": "Bitcoin", "symbol": "\u20bf", "decimals": 8, "type": "crypto" },
    { "code": "XAU", "name": "Gold (Troy Ounce)", "symbol": "XAU", "decimals": 2, "type": "metal" }
  ],
  "total": 182,
  "top_fiat": ["USD","EUR","GBP","BGN","JPY","AUD","CAD","CHF"],
  "top_crypto": ["BTC","ETH","SOL","ADA","BNB","USDT","USDC","XRP","DOGE","DOT"],
  "metals": ["XAU","XAG","XPT","XPD"]
}
{"error":"Invalid API key","code":401}

Кодови одговора

КодОпис
200 SuccessЗахтев обрађен успешно.
400 Bad RequestВалидација уноса неуспешна.
401 UnauthorizedAPI кључ недостаје или је погрешан.
403 ForbiddenКључ неактиван или није дозвољен.
429 Rate LimitПревише захтева.
500 Server ErrorНеочекивана грешка.

List Currencies

currency/currencies 0.0010 credits

Parameters

API Key
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Get Exchange Rates


POST https://api.yeb.to/v1/currency/rates
ПараметарТипОбавезанОпис
api_key string да Your API key
from string опционо Source currency code (use with to for single pair)
to string опционо Target currency code (use with from for single pair)
pairs array опционо Array of pairs: [{"from":"EUR","to":"BGN"}, ...] (max 20)

Пример

curl -X POST https://api.yeb.to/v1/currency/rates \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "from": "EUR",
  "to": "BGN"
}'

Пример одговора

{
  "rates": [
    {
      "from": "EUR",
      "to": "BGN",
      "rate": 1.955800,
      "source": "fawazahmed0",
      "fetched_at": "2026-02-20T14:30:00Z"
    }
  ]
}
{"error":"pairs array or from/to parameters are required","code":422}

Кодови одговора

КодОпис
200 SuccessЗахтев обрађен успешно.
400 Bad RequestВалидација уноса неуспешна.
401 UnauthorizedAPI кључ недостаје или је погрешан.
403 ForbiddenКључ неактиван или није дозвољен.
429 Rate LimitПревише захтева.
500 Server ErrorНеочекивана грешка.

Get Exchange Rates

currency/rates 0.0050 credits

Parameters

API Key
body · string · required
From Currency
body · string
To Currency
body · string
Pairs
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Convert Currency


POST https://api.yeb.to/v1/currency/convert
ПараметарТипОбавезанОпис
api_key string да Your API key
from string да Source currency code (e.g. EUR, USD, BTC)
to string да Target currency code (e.g. BGN, GBP, ETH)
amount number да Amount to convert (0.01 – 10,000,000)
include_platforms bool опционо Include platform rate comparison (default: true)

Пример

curl -X POST https://api.yeb.to/v1/currency/convert \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "from": "EUR",
  "to": "BGN",
  "amount": 1000,
  "include_platforms": true
}'

Пример одговора

{
  "from": "EUR",
  "to": "BGN",
  "amount": 1000,
  "mid_market": {
    "rate": 1.9558,
    "result": 1955.80
  },
  "platforms": {
    "wise":    { "rate": 1.9460, "result": 1946.03, "fee": 5.93, "total_cost": 15.70, "markup": "0.50%" },
    "revolut": { "rate": 1.9509, "result": 1950.91, "fee": 0,    "total_cost": 4.89,  "markup": "0.25%" },
    "paypal":  { "rate": 1.8776, "result": 1877.57, "fee": 3.99, "total_cost": 82.22, "markup": "4.00%" }
  },
  "sources": { "primary": "fawazahmed0" },
  "fetched_at": "2026-02-20T14:30:00Z"
}
{"error":"Exchange rate not available for xxx/yyy","code":404}

Кодови одговора

КодОпис
200 SuccessЗахтев обрађен успешно.
400 Bad RequestВалидација уноса неуспешна.
401 UnauthorizedAPI кључ недостаје или је погрешан.
403 ForbiddenКључ неактиван или није дозвољен.
429 Rate LimitПревише захтева.
500 Server ErrorНеочекивана грешка.

Convert Currency

currency/convert 0.0090 credits

Parameters

API Key
body · string · required
From Currency
body · string · required
To Currency
body · string · required
Amount
body · string · required
Include Platforms
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

List Platforms


POST https://api.yeb.to/v1/currency/platforms
ПараметарТипОбавезанОпис
api_key string да Your API key

Пример

curl -X POST https://api.yeb.to/v1/currency/platforms \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY"
}'

Пример одговора

{
  "platforms": {
    "wise":       { "name": "Wise",          "markup": 0.50, "fee_pct": 0.50, "fee_flat": 0, "weekend_extra": 0 },
    "revolut":    { "name": "Revolut",       "markup": 0.25, "fee_pct": 0,    "fee_flat": 0, "weekend_extra": 0.75 },
    "paypal":     { "name": "PayPal",        "markup": 4.00, "fee_pct": 2.90, "fee_flat": 0, "weekend_extra": 0 },
    "skrill":     { "name": "Skrill",        "markup": 3.99, "fee_pct": 1.45, "fee_flat": 0, "weekend_extra": 0 },
    "western_union": { "name": "Western Union", "markup": 2.00, "fee_pct": 0, "fee_flat": 5, "weekend_extra": 0 },
    "xe":         { "name": "XE",            "markup": 0.50, "fee_pct": 0,    "fee_flat": 0, "weekend_extra": 0 },
    "remitly":    { "name": "Remitly",       "markup": 1.50, "fee_pct": 0,    "fee_flat": 0, "weekend_extra": 0 },
    "ofx":        { "name": "OFX",           "markup": 0.50, "fee_pct": 0,    "fee_flat": 0, "weekend_extra": 0 }
  }
}
{"error":"Invalid API key","code":401}

Кодови одговора

КодОпис
200 SuccessЗахтев обрађен успешно.
400 Bad RequestВалидација уноса неуспешна.
401 UnauthorizedAPI кључ недостаје или је погрешан.
403 ForbiddenКључ неактиван или није дозвољен.
429 Rate LimitПревише захтева.
500 Server ErrorНеочекивана грешка.

List Platforms

currency/platforms 0.0010 credits

Parameters

API Key
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Historical Rates


POST https://api.yeb.to/v1/currency/historical
ПараметарТипОбавезанОпис
api_key string да Your API key
from string да Source currency code
to string да Target currency code
start_date string опционо Start date in YYYY-MM-DD (default: 30 days ago)
end_date string опционо End date in YYYY-MM-DD (default: today)

Пример

curl -X POST https://api.yeb.to/v1/currency/historical \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "from": "EUR",
  "to": "BGN",
  "start_date": "2026-01-01",
  "end_date": "2026-01-31"
}'

Пример одговора

{
  "from": "EUR",
  "to": "BGN",
  "start_date": "2026-01-01",
  "end_date": "2026-01-31",
  "rates": [
    { "date": "2026-01-01", "rate": 1.955800 },
    { "date": "2026-01-02", "rate": 1.955800 },
    { "date": "2026-01-03", "rate": 1.955600 }
  ],
  "count": 31
}
{"error":"Date range must not exceed 365 days","code":422}

Кодови одговора

КодОпис
200 SuccessЗахтев обрађен успешно.
400 Bad RequestВалидација уноса неуспешна.
401 UnauthorizedAPI кључ недостаје или је погрешан.
403 ForbiddenКључ неактиван или није дозвољен.
429 Rate LimitПревише захтева.
500 Server ErrorНеочекивана грешка.

Historical Rates

currency/historical 0.0200 credits

Parameters

API Key
body · string · required
From Currency
body · string · required
To Currency
body · string · required
Start Date
body · string
End Date
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Конвертор валута и API курсева — Practical Guide

A hands-on guide to the Currency API: real-time exchange rates from multiple verified sources, platform fee comparison (Wise, Revolut, PayPal & more), historical rate data, and how to integrate it all into your application.

#What the Currency API does

The Currency API provides 5 endpoints for production-ready currency data: list 170+ currencies (fiat, crypto & metals), fetch live exchange rates from multiple verified sources, convert amounts with platform fee comparison, browse platform markups, and query historical daily rates for up to one year.

#Endpoints at a glance

Endpoint What it does Credits
currencies List all supported currencies with code, name, symbol, type (fiat/crypto/metal) 0.001
rates Get live exchange rates for one or more currency pairs (max 20) 0.005
convert Convert an amount & compare what you’d receive on 8 platforms 0.009
platforms List platforms with their markup percentages and fee structures 0.001
historical Daily historical rates for a pair (up to 365 days) 0.02

#Convert & Platform Comparison

The convert endpoint is the most popular. It returns the mid-market rate plus what you’d actually receive on each platform after their markup and fees.

POST
curl -X POST https://api.yeb.to/v1/currency/convert \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_KEY",
    "from": "EUR",
    "to": "BGN",
    "amount": 1000,
    "include_platforms": true
  }'

The response includes the mid-market conversion and a breakdown per platform:

  • rate — the effective rate after platform markup
  • result — what you actually receive
  • fee — the platform’s transfer fee
  • total_cost — total hidden cost vs mid-market (markup + fee)
  • markup — the platform’s markup percentage

#Supported platforms

We compare rates across 8 popular money transfer platforms:

PlatformMarkupFeeNotes
Wise0.50%VariableTransparent mid-market based
Revolut0.25%None (free plan)+0.75% on weekends
XE0.50%NoneClose to mid-market
OFX0.50%NoneGood for large amounts
Remitly1.50%VariablePopular for remittances
Western Union2.00%Flat feeWide physical network
Skrill3.99%1.45%Digital wallet
PayPal4.00%2.90%Highest total cost

#Currency coverage

The API supports 170+ currencies across three categories:

  • Fiat — USD, EUR, GBP, BGN, JPY, CHF, AUD, CAD, and 150+ more
  • Crypto — BTC, ETH, SOL, ADA, BNB, USDT, USDC, XRP, DOGE, DOT
  • Precious metals — XAU (gold), XAG (silver), XPT (platinum), XPD (palladium)

Use the currencies endpoint to fetch the full list with symbols and decimal precision.

#Historical rates

The historical endpoint returns daily rate snapshots for any pair. Useful for building charts, calculating averages, or backtesting strategies.

  • Default range: last 30 days
  • Maximum range: 365 days
  • Dates in YYYY-MM-DD format

#How rates are sourced

Reliability is built in through multi-source aggregation:

  1. Primary — fawazahmed0 exchange API (CDN-backed, 200+ currencies, no rate limit, updated every 15 min)
  2. Secondary — fxratesapi.com (real-time verification every 30 min)
  3. Fallback — European Central Bank (ECB) daily reference rates
  4. Cache — last known rate if all sources are temporarily unavailable (< 24h)

If the primary and secondary sources diverge by more than 1%, the system logs a deviation warning and uses the primary rate.

#Common use cases

  • E-commerce — display prices in the visitor’s local currency
  • Fintech apps — show users how much they’d save on each platform
  • Travel apps — quick multi-currency converter
  • Accounting — historical rates for end-of-month reconciliation
  • Crypto dashboards — live BTC/ETH prices alongside fiat

Често постављана питања

Агрегирамо курсеве из више независних извора (fawazahmed0, fxratesapi, ECB) и унакрсно их верификујемо. Ако један извор није доступан, остали обезбеђују резерву.

Маржe платформи су засноване на објављеним структурама накнада. Примењујемо познати проценат марже сваке платформе на средњи тржишни курс. Стварни курсеви могу мало варирати у зависности од износа и коридора.

Да. Подржавамо преко 10 главних криптовалута укључујући BTC, ETH, SOL, USDT, USDC и друге. Племенити метали (XAU, XAG, XPT, XPD) су такође доступни.

Историјски курсеви су доступни до 365 дана. Дневни снимци се аутоматски прикупљају и чувају за израду графикона и анализу.

Примарни курсеви се освежавају сваких 15 минута. Верификација секундарног извора се покреће сваких 30 минута. Претраге појединачних валутних парова се кеширају на 5 минута.

Да. Сваки захтев, чак и они са грешком, троши кредите. Ваши кредити су везани за број захтева, без обзира на успех или неуспех. Ако је грешка јасно узрокована проблемом платформе на нашој страни, вратићемо погођене кредите (без новчаних рефундација).

Контактирајте нас на [email protected]. Озбиљно схватамо повратне информације—ако је ваш извештај о грешци или захтев за функцију смислен, можемо брзо поправити или унапредити API и доделити вам 50 бесплатних кредита као захвалност.

Зависи од API-ја и понекад чак и од крајње тачке. Неке крајње тачке користе податке из спољних извора, који могу имати строже лимите. Такође примењујемо лимите да бисмо спречили злоупотребу и одржали стабилност платформе. Проверите документацију за конкретан лимит сваке крајње тачке.

Радимо на кредитном систему. Кредити су унапред плаћене, неповратне јединице које трошите на API позиве и алате. Кредити се троше по FIFO принципу (најстарији прво) и важе 12 месеци од датума куповине. Контролна табла приказује сваки датум куповине и његов истек.

Да. Сви купљени кредити (укључујући делимичне салда) важе 12 месеци од куповине. Некоришћени кредити аутоматски истичу и трајно се бришу на крају периода важности. Истекли кредити се не могу повратити или претворити у готовину или другу вредност. Прелазно правило: кредити купљени пре 22. септ. 2025. третирају се као купљени 22. септ. 2025. и истичу 22. септ. 2026. (осим ако је при куповини наведен ранији истек).

Да—у оквиру периода важности. Некоришћени кредити остају доступни и преносе се из месеца у месец док не истекну 12 месеци након куповине.

Кредити су неповратни. Купујте само оно што вам треба—увек можете допунити касније. Ако грешка платформе изазове неуспешно задужење, можемо вратити погођене кредите након истраге. Без новчаних рефундација.

Цене су постављене у кредитима, не у доларима. Свака крајња тачка има своју цену—погледајте значку „Кредити / захтев" изнад. Увек ћете тачно знати колико трошите.
← Назад на API-је