ServiceBox APIs
io.servicebox/apis
Turkish data APIs as MCP tools: pharmacies, fuel, FX, gold, crypto, weather, prayer times, news.
- bank-fx_compareBankRates — Compare banks
One currency at every bank, cheapest to buy first (lowest selling rate), with `meta.cheapestToBuy` (lowest selling) and `meta.bestToSell` (highest buying). Banks with stale rates are li
- bank-fx_getBankRateHistory — Rate changes over time
Every change of one bank's rate for one currency between `start` and `end` (UTC days, inclusive; default the last 7 days; at most 31). The first item is the rate that held at `
- bank-fx_listBankRates — Latest bank rates
Each bank's latest buying and selling rate per currency, in TRY, with the spread. Rates are read from the banks' public pages every 5 minutes on weekdays (hourly otherwise); `observ
- bank-fx_listBanks — List banks
The banks whose rates are read, with the page each is read from, the channel, how many currencies it shows and when it was last read. Free.
GET /v1/bank-fx/banks on Bank exchange rates (S
- deals_getCampaign — Get a campaign
One campaign by its id from /deals/campaigns, e.g. bonus:bauhaus-yapi-taksit-kampanyasi. Ended campaigns stay for 7 days, then 404.
GET /v1/deals/campaigns/{id} on Card Campaigns & De
- deals_listCampaigns — List card campaigns
The current campaigns of Turkish credit-card programs — Wings, World, Bonus, Maximum and Axess — read daily from the programs' public campaign pages: installment offers, discounts
- deals_listCards — List card programs
The five card programs covered — Wings (Şekerbank), World (Yapı Kredi), Bonus (Garanti BBVA), Maximum (İşbank), Axess (Akbank) — with their active campaign count, when each program
- deals_listSectors — List sectors
What a campaign is for — grocery, fuel & automotive, fashion, electronics, home, travel, dining, education, health, entertainment, online shopping, insurance, bills & taxes, card service
- deals_listSegments — List audience segments
Who a campaign is for — students, parents, travellers, people spending abroad, car owners, home makers, fashion and tech shoppers, online shoppers, diners, grocery shoppers, cu
- funds_getFund — Get a fund
One fund: the latest price, size, investors, returns, fees and risk, and its portfolio allocation by asset class (stocks, government bonds, reverse repo, deposits, precious metals, foreign
- funds_getFundPrices — Daily price history
One fund's daily price, shares, investors and size between `start` and `end` (inclusive; default the 30 days up to its latest price; at most 1,830 days per request), oldest first,
- funds_listFundCategories — List fund categories
The categories TEFAS uses per fund type — umbrella fund types for investment funds, fund kinds for pension funds and ETFs — in English and Turkish, with how many active funds eac
- funds_listFundFounders — List fund companies
Portfolio management and pension companies with their number of active funds and total fund value, largest first. Free.
GET /v1/funds/founders on Turkish funds (SBX-FON). Costs 0
- funds_listFunds — List funds
Every Turkish investment fund, pension fund and ETF TEFAS lists, with the latest price, size, investors, returns, fees and risk. Filter by `type`, `category`, `founder`, `codes`, a text se
- fx_convertCurrency — Convert an amount
`amount` of `from` in `to` at the official rate on `date` (default: latest). TCMB is used when it publishes both currencies (TRY included), else ECB (EUR included). With TCMB, `rate
- fx_getCurrencyHistory — One currency over time
One currency's rate on every bulletin between `start` and `end` (default: the last 30 days; at most 366 days). Use for how a currency's official rate moved over days or months,
- fx_listCurrencies — List currencies
Every currency TCMB or ECB publishes, with the first and latest date each has. Free.
GET /v1/fx/currencies on Currencies (SBX-FX). Costs 0 credits per call.
- fx_listRates — Rates on a date
Every currency's official rate on `date` (default: the latest bulletin). TCMB: the indicative forex and banknote buying/selling rates in TRY, published at 15:30 Istanbul time on busin
- gold_getCommodityHistory — One commodity over time
One series between `start` and `end`. Daily series: at most 366 days (default: the last 30). Monthly series: YYYY-MM or YYYY-MM-DD, at most 600 months (default: the last 24).
- gold_getGoldPriceHistory — One product over time
One product's intrinsic value on every NBP business day between `start` and `end` (default: the last 30 days; at most 366 days), since 2013-01-02.
GET /v1/gold/prices/{product}
- gold_listCommodities — List commodities
Every commodity series: daily energy spot prices (EIA) and monthly prices of metals, energy, agriculture, fertilizers and raw materials (World Bank), with the span held. Free.
GET /
- gold_listGoldPrices — Gold prices on a date
The intrinsic value of gram gold (24, 22, 18 and 14 karat), the troy ounce and the Turkish coins (çeyrek, yarım, tam, ikibuçuk, beşli, Cumhuriyet, Ata beşli) on `date` (default:
- gold_listGoldProducts — List gold products
Gram gold by karat, the troy ounce and the Turkish coins, with their weight and fine-gold content. Free.
GET /v1/gold/products on Gold & commodities (SBX-GOLD). Costs 0 credits pe
- gold_listLatestCommodityPrices — Latest commodity prices
Each series' latest price and the one before it, with the change. EIA's daily prices are released weekly (Wednesdays), the World Bank's monthly averages in the first days of e
- nutrition_calculateMeal — Calculate a meal or recipe
The nutrients of a meal or recipe: `items` lists `<food>:<grams>` pairs, comma-separated (up to 30). A food is an id or a name (the best match is used and named in the answ
- nutrition_getFood — Get a food
One food: every nutrient per 100 g (energy, macronutrients, fats incl. saturated, trans, cholesterol and omega-3, sugars, fibre, sodium and salt, 9 minerals, 13 vitamins, caffeine) and its
- nutrition_listFoodCategories — List food categories
The 25 food categories (vegetables, fruits, legumes, dairy and eggs, meats, fish…) in English and Turkish with how many foods each has. Free.
GET /v1/nutrition/categories on Nut
- nutrition_listNutrients — List nutrients
The nutrients served — key, English and Turkish name, unit and group — and which of them lists carry. Free.
GET /v1/nutrition/nutrients on Nutrition & Calories (SBX-BESIN). Costs 0 cr
- nutrition_searchFoods — Search foods
About 7,800 foods with calories, protein, fat, carbohydrate, sugars, fibre and salt per 100 g. Search with `q` in Turkish or English (Turkish letters optional: `domates`, `tomato`, `tavu
- pharmacy_findNearbyPharmacies — Find nearby pharmacies
Pharmacies within a radius of a coordinate, nearest first and annotated with `distanceKm`. Pages through at most the 500 nearest: at 500 `next_cursor` is null.
GET /v1/pharmac
- pharmacy_getPharmacy — Get a pharmacy by id
A single pharmacy by its numeric id.
GET /v1/pharmacy/pharmacies/{id} on Nöbetçi Eczane (SBX-ECZ). Costs 1 credit per call.
- pharmacy_listCities — List cities
All 81 provinces with pharmacy and on-duty counts, sorted by pharmacy count descending. A city's `id` is its name, which is what `city=` accepts. Not paged: the whole list in one answer.
- pharmacy_listDistricts — List districts
Districts (roughly 960 nationwide) with pharmacy and on-duty counts, optionally filtered to one city. A district's `id` is its name; `cityId` is its city's. Not paged: the whole list i
- pharmacy_listDutyPharmacies — List on-duty pharmacies
Pharmacies currently on duty, sorted by city. Always returns on-duty pharmacies only — the shared `duty` filter does not apply here.
GET /v1/pharmacy/pharmacies/on-duty on Nö
- pharmacy_searchPharmacies — Search pharmacies
All pharmacies (on-duty and regular) matching the given filters.
GET /v1/pharmacy/pharmacies on Nöbetçi Eczane (SBX-ECZ). Costs 1 credit per call.
- public-procurement_listAuthorityTypes — List authority types
The kinds of buying authority (ministries, municipalities, universities, state-owned enterprises…). Free.
GET /v1/public-procurement/authority-types on Public procurement statis
- public-procurement_listCompetitionIndices — Competition
Tender competition per year: the number of tenders, the share won with a single bid (overall and for single-lot tenders), average lots and the average discount against the estimated cost
- public-procurement_listConcentrationIndices — Market concentration
How concentrated contract winners are, per year: contract and firm counts, the largest 1, 4 and 10 contractors' share of value and the Herfindahl–Hirschman index — for the whole
- public-procurement_listDirectProcurementIndices — Direct procurement
Direct procurement (doğrudan temin) per year: purchase count and the amount distribution (median, mean, total, 95th and 99th percentile, largest and its share), nominal TRY — for t
- public-procurement_listLocalizationIndices — Local suppliers
The share of contracts, by count and by value, won by suppliers from the buying authority's own province, per year — for the whole country or per province or sector.
GET /v1/public-p
- public-procurement_listProcurementDatasets — Source datasets and release
The weekly release served, when it was loaded, and each source dataset with its row count and the citation its publisher asks for. Free.
GET /v1/public-procurement/datase
- public-procurement_listProcurementSectors — List sectors
The 43 sectors tenders are classified into, with ids and English names. Free.
GET /v1/public-procurement/sectors on Public procurement statistics (SBX-IHALE). Costs 0 credits per call.
- public-procurement_listProvinceSectors — Volume by province and sector
Tender volume (count and value, nominal TRY) for each province and sector, with the value won by suppliers from the same province and from elsewhere. Largest first.
GET
- public-procurement_listSupplyFlows — Supply flows between provinces
Contracts (count and value, nominal TRY) from authorities in one province to suppliers based in another or the same province. Largest first.
GET /v1/public-procurement
- public-procurement_listTopAuthorities — Top-10 buying authorities
The ten public authorities that awarded the most in one province (tenders or direct procurement) or one sector (tenders), by value.
GET /v1/public-procurement/top-authoriti
- public-procurement_listTopContractors — Top-10 contractors
The ten contractors that won the most in one province or sector (tenders), in one province by direct procurement (`direct`), or the ten firms based in a province with the most publ