Overview
The small but necessary jobs that development teams rebuild in every project, at a single address: Turkish ID, IBAN and tax number checks, Türkiye-specific data, TCMB currency rates plus UUID, hash, QR and barcode generation. The ADR team helps you wire them into your own software.
Please note: Turkish ID, IBAN and tax number checks are purely computational (format and check digit). There is no official lookup against NVİ, GİB or bank records, so a pass does not show that the number truly belongs to a real person, account or taxpayer.
Response structure
A shared JSON envelope across endpoints
Each endpoint replies with this envelope:
success: did the request work.data: what the service produced.error: when something fails, code plus message.meta: service name, time taken (elapsedMs) and where the data originated (source: live, cache or offline).
Paths follow the pattern /api/v1/<category>/<service>.
Checking endpoints
POST /api/v1/dogrulama
Request body: {"value":"..."}
/tckimlik: computational check of the Turkish ID number./vergino: computational check of the tax number (VKN)./iban: TR IBAN check; a correct one comes back with the bank and a neatly formatted IBAN./kredikarti: Luhn check; a correct one comes back with the card type./eposta: syntax check plus a DNS query on the domain.
When a value fails, reason says why. ID, tax number, IBAN and card checks are computational; no official register is consulted.
Türkiye-specific data
GET /api/v1/turkiye
/iller: all 81 provinces, each with plate code, name, region and area code./plaka?kod=34 or /il?plaka=34: look up a province from its plate code./alankodu?kod=312: look up a province from a phone area code./postakodu?kod=34000: a postcode's leading two digits match the plate code./ilceler?plaka=34: districts belonging to a province.
Leaving out a mandatory parameter yields 400 and INVALID_REQUEST.
TCMB rates and conversion
GET /api/v1/finans
/doviz: TCMB daily rates; append ?kod=USD to get just that one./cevir?amount=100&from=USD&to=TRY: turns an amount into another currency at TCMB rates, routing via TRY with the forex selling rate./birim?value=100&from=km&to=mil: converting length, weight and temperature units (works offline).
Rates sit in a short-lived cache; meta.source reveals whether a reply is live or cached. Should TCMB be unreachable with nothing cached, the answer is 502 and UPSTREAM_UNAVAILABLE.
Coding helpers
/api/v1/arac
GET /uuid: creates from one up to 100 UUIDs.GET /parola: creates a password 4 to 128 characters long; symbols, digits and capitals are optional.POST /hash: works out a hash value.POST /base64: Base64 encoding or decoding (encode / decode).POST /slug: converts text into a slug suitable for web addresses.POST /qr: creates a QR code (2000 characters at most).POST /barkod: creates a barcode (200 characters at most).
Bad input brings back 400, INVALID_REQUEST and a message describing the problem.
Error codes and quota
400 / INVALID_REQUEST: a parameter is absent or malformed.404 / NOT_FOUND: undefined paths below /api also get the JSON envelope instead of an HTML page.429: the per-IP quota (120 requests per 60 seconds) has run out.502 / UPSTREAM_UNAVAILABLE: an outside source like TCMB cannot be reached.
The quota covers API routes only; the interface, docs and Swagger are exempt. API routes allow cross-origin requests.
Testing and oversight
- Catalogue: landing page plus service list; every service page carries a Try it box.
- Swagger: open documentation and a calling screen for all endpoints at
/swagger. - Health endpoint:
/healthz reports state and version and plugs into observability tools. - The interface speaks Turkish and English.