One key.
Every endpoint.
A growing catalogue of small, precise APIs behind a single key and a single response envelope. Integrate once — every new capability is one more path, not another vendor to negotiate with.
In the catalogue today: Turkish address and e-invoice parsing, identifier validation, business-day maths, exchange-rate history. Shipping next: sanctions and PEP screening, IBAN and email verification.
- No account needed to try any endpoint on this page.
- Deterministic endpoints answer from cache in single-digit milliseconds.
- Every response carries a receipt: credits charged, cache status, duration.
/v1/tr/address/parse
{
"address": "Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"
}
Press Run to call the live API from your browser.
Why this exists
Built for hostile input
A Turkish address arrives as "Cd." or "Cad." or "Caddesi", with the flat number glued to the building number. Generic parsers drop half of it silently. This one tells you what it could not place.
History cannot be backfilled
The exchange-rate archive grows every business day and each point keeps its source URL and content hash. A competitor can read today’s bulletin too — nobody can produce last quarter’s.
You only pay for work
Repeated inputs come from cache and cost zero credits. If a response ever fails its own schema, the call is refunded automatically.
Endpointsexpand any row to see the parameters and call it live
Validation5
/v1/email/verify
E-mail Verification
1 credit
Checks an e-mail address: syntax, whether the domain can actually receive mail, disposable and role-account detection, and typo correction.
No SMTP probing. Most competitors connect to the target server and try RCPT TO, which sounds thorough but produces a confident-looking number you cannot trust: most servers are catch-all, the big providers refuse to answer, and doing it in bulk gets the probing IP blacklisted. We report only what is provable — whether the domain has a mail exchanger, whether it is a known disposable service, whether the mailbox belongs to a role rather than a person, and whether the domain looks like a typo of a common one (gmial.com → gmail.com). Addresses are also normalised, so Gmail dots and +tags stop creating duplicate signups.
Parameters
| email* | string | E-mail address to check. |
| rejectFreeProviders | boolean | default false |
| rejectRoleAccounts | boolean | default false |
/v1/email/verify
{
"email": "[email protected]"
}
Press Run to call the live API from your browser.
/v1/eu/vat/validate
EU VAT Number Validation
2 credits
Validates an EU VAT number against the official VIES register, with per-country format checks and honest handling of upstream outages.
VIES is free but unreliable: member-state services drop out individually and a failed lookup can easily be mistaken for a rejection. Treating an outage as "invalid" means charging VAT to a customer who should have been exempt — an error with a price tag. So this endpoint never returns `invalid` when the service could not answer; it returns `unknown` and names the reason, and reports whether that country's service is currently up. Format is checked locally first, so an obvious typo never becomes an upstream call. Results are cached for 24 hours. Note that most member states do not publish the company name; when they do, it is returned.
Parameters
| vatNumber* | string | VAT number with or without the country prefix, e.g. "DE811907980". |
| countryCode | string | Country code, when the number is given without a prefix. |
/v1/eu/vat/validate
{
"vatNumber": "DE811907980"
}
Press Run to call the live API from your browser.
/v1/iban/validate
IBAN Validation
deterministic
1 credit
Validates an IBAN from any of 70+ countries: checksum, country length and in-country account structure, and resolves the bank and branch codes.
Most free libraries stop at the mod-97 checksum. That only says the digits are self-consistent — not that the number could exist in that country. This checks the country's BBAN structure too, so a wrong-length or wrong-shaped account is rejected before your payment file reaches the bank. When only the two check digits are wrong, the correct ones are computed and returned as a suggestion, because that is what people actually mistype. Turkish IBANs additionally resolve to the bank name.
Parameters
| iban* | string | IBAN, boşluklu veya boşluksuz. |
| expectCountry | string | Beklenen ülke kodu (ISO 3166-1 alfa-2). |
/v1/iban/validate
{
"iban": "DE89 3704 0044 0532 0130 00"
}
Press Run to call the live API from your browser.
/v1/phone/validate
Phone Number Validation
deterministic
1 credit
Validates and normalises a phone number to E.164, classifies the line type, and resolves the province for Turkish landlines.
For signup and checkout flows that need to store one canonical form and reject typos early. Turkish numbers are handled in depth: landline area codes resolve to a province, mobile and special ranges (toll-free 0800, fixed-rate 0850, premium 0900) are classified, and every accepted input comes back in both E.164 and national notation. One thing this endpoint deliberately does not claim: the current mobile operator. Turkey has had number portability since 2008, so a 0532 number may well be on another network today. Competing APIs report the prefix owner as "the operator" and customers pick SMS routes on that basis. We return it as `originallyAllocatedTo` with the caveat attached, because a confident wrong answer costs more than an honest gap.
Parameters
| phone* | string | Phone number in any common format. |
| defaultCountry | string | ISO 3166-1 alpha-2 country to assume when the number has no international prefix. Defaults to TR. |
/v1/phone/validate
{
"phone": "0532 123 45 67"
}
Press Run to call the live API from your browser.
/v1/tr/validate
Turkish ID & Number Validation
deterministic
1 credit
Validates Turkish national ID, tax number, IBAN, licence plate, IMEI and barcodes from one endpoint, with type auto-detection.
Goes past a yes/no: resolves the bank behind an IBAN, the province behind a licence plate and the GS1 country prefix behind a barcode. Pure local computation — no upstream service is called, so latency is microseconds and the answer never changes for the same input.
Parameters
| value* | string | Doğrulanacak değer. |
| type | "auto" | "tckn" | "vkn" | "iban" | "plate" | "imei" | "gtin" | Belirtilmezse biçimden otomatik tespit edilir. default "auto" |
/v1/tr/validate
{
"value": "TR33 0006 1005 1978 6457 8413 26"
}
Press Run to call the live API from your browser.
Compliance1
/v1/sanctions/screen
Sanctions & PEP Screening
5 credits
Screens a name against six official sanctions lists — US OFAC, UN, EU, UK OFSI, Switzerland SECO and Canada — with transliteration-aware fuzzy matching.
Six official lists are reduced to one schema, so a name is checked everywhere at once instead of six integrations. Cyrillic and Arabic names are transliterated, titles and corporate suffixes are stripped, and known spelling families are unified — "Abd al-Rahman", "Abdul Rahman" and "Abdulrahman" reach the same record. Every hit explains itself: which name matched, whether it was an alias the source flags as weak, and how the birth year and country compared. Supply `birthYear` whenever you have it; it removes most false positives. `asOf` screens against the lists as they stood on a past date, which is the question auditors actually ask — note that this is bounded by when our archive begins, reported in `coverage`.
Parameters
| name* | string | Name to screen — person or organisation. |
| type | "any" | "individual" | "entity" | "vessel" | "aircraft" | Restrict to one subject type. Narrowing this removes most false positives. default "any" |
| birthYear | integer | Known birth year. The single strongest false-positive filter available. |
| country | string | Known country or nationality. |
| sources | "OFAC_SDN" | "UN" | "EU"[] | Defaults to all lists. |
| minScore | number | Score floor. 0.92+ reads as a match, 0.80+ as possible. default 0.75 |
| limit | integer | default 10 |
| asOf | string | Screen against the lists as they stood on this date. Limited by when our archive begins. |
/v1/sanctions/screen
{
"name": "Saddam Hussein"
}
Press Run to call the live API from your browser.
Time Series2
/v1/series/history
Time Series History
2 credits
Returns the accumulated history of public data series with change statistics and a source receipt for every point.
Currently ingesting the Turkish Central Bank daily FX bulletin (`tcmb.usd`, `tcmb.eur`, …), normalised to one unit so JPY-style 100-unit quotes stop biting. Leave `seriesId` empty to list the catalogue. `fillGaps` carries the last value across weekends and holidays; `includeEvidence` attaches the source URL and content hash for every point, so a value can still be defended years later.
Parameters
| seriesId | string | Seri kimliği, ör. `tcmb.usd`. Boş bırakılırsa katalog döner. |
| from | string | Başlangıç tarihi (dahil). |
| to | string | Bitiş tarihi (dahil). |
| limit | integer | default 365 |
| fillGaps | boolean | default false |
| includeEvidence | boolean | Her nokta için kaynak URL ve içerik özetini döndürür. default false |
/v1/series/history
{}
Press Run to call the live API from your browser.
/v1/tr/fuel/prices
Turkey Fuel Prices
2 credits
Petrol, diesel and heating-oil pump prices for all 81 Turkish provinces, including the price in force on any past date.
Today's pump price is on a public web page; the archive is not. This endpoint answers the question that actually costs money: what was diesel in Ankara on 12 March? Pass `asOf` for the price in force on that day — if the distributor did not change prices that day, the previous price is carried forward and `effectiveFrom` says when it started, with `carriedForward: true`. Pass `from`/`to` to get the change events in a window, each with the percentage move. Every figure carries the source URL and a content hash of the page it was read from, so the number can still be defended in an audit years later. Leave `province` empty to list coverage.
Parameters
| province | string | number | Province name or plate code — "Ankara", "istanbul" or 34. Leave empty to list covered provinces. |
| product | "benzin" | "motorin" | "motorin_ekstra" | "gazyagi" | "kalorifer" | "fueloil" | "fueloil_yk" | Fuel product. Omitted → every product available for that province. |
| asOf | string | Price in force on this date (YYYY-MM-DD). Omitted → latest known price. |
| from | string | With `to`: return the price changes in this window. |
| to | string | |
| includeDistricts | boolean | Adds districts whose pump price differs from the province reference price. default false |
/v1/tr/fuel/prices
{}
Press Run to call the live API from your browser.
Shipping1
/v1/shipping/identify
Tracking Number Identification
deterministic
1 credit
Identifies which carrier a tracking number belongs to, validates it where a checksum exists, and returns the canonical tracking link.
Built for order systems that receive numbers from many carriers and have to route the customer to the right tracking page. Turkish carriers mostly use plain numeric ranges that overlap, so a single confident answer is often impossible — this returns a ranked candidate list instead of inventing certainty, because sending a customer to the wrong carrier's page makes them think the parcel is lost. Universal Postal Union (S10) numbers are fully verified: the mod-11 check digit is computed, the service type and origin country are decoded. For formats whose checksum we have not verified against the standard, the result says `not-verified` rather than guessing — a wrong rejection is worse than an honest unknown. Delivery status is deliberately out of scope: Turkish carriers require merchant credentials for that, and scraping their sites would be fragile and against their terms.
Parameters
| trackingNumber* | string | Tracking number, with or without spaces and dashes. |
| country | string | Destination or origin country hint, e.g. "TR". Narrows the candidates. |
/v1/shipping/identify
{
"trackingNumber": "RR123456785TR"
}
Press Run to call the live API from your browser.
Address1
/v1/tr/address/parse
Turkish Address Parser
deterministic
1 credit
Splits a free-form Turkish address into neighbourhood, street, building, floor, flat, district, province and postcode.
Handles the abbreviation chaos (Mah./Mh., Cd./Cad., Sk./Sok., No:12/5, K:3 D:7), cross-checks the province against the postcode, repairs misspelled district names against a dictionary, and returns a confidence score. Anything it could not place is listed in `unparsed` — nothing is dropped silently. Built for shipping, checkout and CRM systems that receive Turkish addresses typed by humans.
Parameters
| address* | string | Serbest metin adres. |
| defaultProvince | string | Adreste il geçmiyorsa varsayılacak il. |
/v1/tr/address/parse
{
"address": "Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"
}
Press Run to call the live API from your browser.
Calendar1
/v1/tr/business-days
Turkish Business Days
deterministic
1 credit
Adds business days or counts them between two dates, accounting for Turkish public and religious holidays including half-day eves.
Ramadan and Sacrifice feasts follow the Hijri calendar and cannot be derived reliably by formula, so announced dates are read from a table; years without an official announcement are returned with `confirmed:false` rather than guessed silently. For delivery promises, SLA clocks, payment terms and shipping estimates.
Parameters
| start* | string | Başlangıç tarihi (YYYY-AA-GG). |
| addDays | integer | Bu kadar İŞ GÜNÜ ekle/çıkar. |
| end | string | Verilirse aradaki iş günü sayılır. |
| countHalfDaysAsWork | boolean | Arife yarım günleri iş günü sayılsın mı? default true |
/v1/tr/business-days
{
"start": "2026-03-16",
"addDays": 10
}
Press Run to call the live API from your browser.
Finance3
/v1/tr/invoice/build
Turkish e-Invoice Builder
3 credits
Builds a UBL-TR e-Invoice or e-Archive XML document from plain JSON, computing every total and validating the parties.
Selling into Türkiye means issuing a UBL-TR document whose element order is fixed by schema and whose totals must agree to the kuruş, or the integrator rejects it. This endpoint takes the invoice as ordinary JSON and returns the XML. Totals you send are ignored on purpose — line amounts, per-rate VAT subtotals and the payable amount are all recomputed here, because a rounding difference of one kuruş is the most common rejection. VKN and TCKN checksums are verified, and the amount is written out in Turkish words as invoices require. It does not sign the document and does not transmit it: the financial seal and the submission to the tax authority belong to your certificate and your integrator. What comes back is a document ready to enter that step.
Parameters
| profile | "TEMELFATURA" | "TICARIFATURA" | "EARSIVFATURA" | TEMELFATURA: no formal objection flow. TICARIFATURA: buyer may accept/reject. EARSIVFATURA: buyer is not an e-Invoice user. default "TEMELFATURA" |
| invoiceTypeCode | "SATIS" | "IADE" | default "SATIS" |
| id | string | Invoice number. Omit and supply `series` to have it built from the series and sequence. |
| series | string | Three-letter series code, used with `sequence`. |
| sequence | integer | Sequence number within the series and year. |
| uuid | string | Document UUID (ETTN). Generated when omitted. |
| issueDate* | string | |
| issueTime | string | |
| currency | string | ISO 4217. Anything other than TRY requires `exchangeRate`. default "TRY" |
| exchangeRate | number | Units of TRY per one unit of `currency`. |
| supplier* | object | |
| customer* | object | |
| lines* | object[] | |
| notes | string[] | default [] |
| amountInWords | boolean | Adds the payable amount written out in Turkish words as a note, the way invoices require. default true |
| despatchDocumentId | string | Delivery note number, if the goods shipped separately. |
| orderReferenceId | string |
/v1/tr/invoice/build
{
"series": "ABC",
"sequence": 123,
"issueDate": "2026-07-26",
"supplier": {
"name": "Örnek Yazılım A.Ş.",
"taxNumber": "4840847211",
"taxOffice": "Kadıköy",
"street": "Moda Cad.",
"buildingNumber": "12",
"district": "Kadıköy",
"city": "İstanbul"
},
"customer": {
"name": "Alıcı Ticaret Ltd. Şti.",
"taxNumber": "3250566341",
"taxOffice": "Beşiktaş",
"city": "İstanbul"
},
"lines": [
{
"name": "Yazılım geliştirme hizmeti",
"quantity": 10,
"unitCode": "HUR",
"unitPrice": 1500,
"vatRate": 20
}
]
}
Press Run to call the live API from your browser.
/v1/tr/invoice/parse
Turkish e-Invoice (UBL-TR) Parser
deterministic
3 credits
Turns a UBL-TR e-Invoice or e-Archive XML document into clean JSON: parties, line items, taxes and totals.
Works regardless of the namespace prefix the sender used (cbc:, cac:, ns0:), normalises single-line documents into arrays, and reports amount mismatches in `warnings` instead of returning quietly wrong totals. The job that costs accounting and expense software the most engineering time.
Parameters
| xml* | string | UBL-TR e-Fatura / e-Arşiv XML içeriği. |
/v1/tr/invoice/parse
{
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\"\n xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\">\n <cbc:UBLVersionID>2.1</cbc:UBLVersionID>\n <cbc:ProfileID>TEMELFATURA</cbc:ProfileID>\n <cbc:ID>ABC2026000000123</cbc:ID>\n <cbc:UUID>3f2504e0-4f89-11d3-9a0c-0305e82c3301</cbc:UUID>\n <cbc:IssueDate>2026-07-20</cbc:IssueDate>\n <cbc:InvoiceTypeCode>SATIS</cbc:InvoiceTypeCode>\n <cbc:DocumentCurrencyCode>TRY</cbc:DocumentCurrencyCode>\n <cac:AccountingSupplierParty><cac:Party>\n <cac:PartyIdentification><cbc:ID schemeID=\"VKN\">1234567890</cbc:ID></cac:PartyIdentification>\n <cac:PartyName><cbc:Name>Örnek Yazılım A.Ş.</cbc:Name></cac:PartyName>\n <cac:PostalAddress><cbc:StreetName>Moda Cad.</cbc:StreetName><cbc:BuildingNumber>12</cbc:BuildingNumber>\n <cbc:CitySubdivisionName>Kadıköy</cbc:CitySubdivisionName><cbc:CityName>İstanbul</cbc:CityName></cac:PostalAddress>\n <cac:PartyTaxScheme><cac:TaxScheme><cbc:Name>Kadıköy</cbc:Name></cac:TaxScheme></cac:PartyTaxScheme>\n </cac:Party></cac:AccountingSupplierParty>\n <cac:AccountingCustomerParty><cac:Party>\n <cac:PartyIdentification><cbc:ID schemeID=\"VKN\">9876543210</cbc:ID></cac:PartyIdentification>\n <cac:PartyName><cbc:Name>Alıcı Ticaret Ltd. Şti.</cbc:Name></cac:PartyName>\n </cac:Party></cac:AccountingCustomerParty>\n <cac:TaxTotal><cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount>\n <cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"TRY\">1000.00</cbc:TaxableAmount>\n <cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount><cbc:Percent>20</cbc:Percent>\n <cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory>\n </cac:TaxSubtotal></cac:TaxTotal>\n <cac:LegalMonetaryTotal>\n <cbc:LineExtensionAmount currencyID=\"TRY\">1000.00</cbc:LineExtensionAmount>\n <cbc:TaxExclusiveAmount currencyID=\"TRY\">1000.00</cbc:TaxExclusiveAmount>\n <cbc:TaxInclusiveAmount currencyID=\"TRY\">1200.00</cbc:TaxInclusiveAmount>\n <cbc:PayableAmount currencyID=\"TRY\">1200.00</cbc:PayableAmount>\n </cac:LegalMonetaryTotal>\n <cac:InvoiceLine>\n <cbc:ID>1</cbc:ID>\n <cbc:InvoicedQuantity unitCode=\"C62\">10</cbc:InvoicedQuantity>\n <cbc:LineExtensionAmount currencyID=\"TRY\">1000.00</cbc:LineExtensionAmount>\n <cac:TaxTotal><cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount>\n <cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"TRY\">1000.00</cbc:TaxableAmount>\n <cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount><cbc:Percent>20</cbc:Percent>\n <cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory>\n </cac:TaxSubtotal></cac:TaxTotal>\n <cac:Item><cbc:Name>Yıllık Lisans</cbc:Name></cac:Item>\n <cac:Price><cbc:PriceAmount currencyID=\"TRY\">100.00</cbc:PriceAmount></cac:Price>\n </cac:InvoiceLine>\n</Invoice>"
}
Press Run to call the live API from your browser.
/v1/tr/money/to-words
Amount to Turkish Words
deterministic
1 credit
Writes a monetary amount out in Turkish words, the way invoices, cheques and promissory notes require.
Applies the rules that trip up generic libraries: Turkish says "bin", never "bir bin"; the kuruş part is read separately; and both "1.234,56" and "1,234.56" are accepted and told apart automatically. A mandatory field on Turkish e-invoices, cheques and notes — with no off-the-shelf API until now.
Parameters
| amount* | string | number | Tutar. "1.234,56" ve 1234.56 biçimlerinin ikisi de kabul edilir. |
| currency | "TRY" | "USD" | "EUR" | "GBP" | default "TRY" |
| style | "lower" | "title" | "upper" | Çıktı harf biçimi. default "lower" |
| wrapHash | boolean | default false |
/v1/tr/money/to-words
{
"amount": "1.234,56"
}
Press Run to call the live API from your browser.
Pricingone key covers every endpoint
- credits
- 50,000
- Rate limit
- 10/s
- credits
- 300,000
- Rate limit
- 30/s
- credits
- 2,000,000
- Rate limit
- 100/s
Credits are consumed per call and cache hits are free. Requests without a key run on a narrow per-IP demo quota so you can evaluate before signing up.
The API key is e-mailed the moment payment clears. Upgrades keep the same key, so your integration is never broken.
Use it from an AI assistantthe same catalogue, exposed as MCP tools
Every endpoint is also published over the Model Context Protocol, so Claude, ChatGPT or your own agent can call it directly — no glue code, no wrapper functions. The assistant sees the same input schemas and the same metering.
Currently 14 tools. New endpoints appear automatically; nothing to update on your side.
claude_desktop_config.json
{
"mcpServers": {
"temsor": {
"url": "https://api.temsor.com/mcp",
"headers": { "x-api-key": "fk_live_…" }
}
}
}
Quickstart
Official client: npm install temsor-api · npmjs.com/package/temsor-api
Node.js
import Client from "temsor-api";
const api = new Client({ apiKey: KEY });
const r = await api.${(() => {
const first = apis[0];
return first.slug.split(/[/-]/).map((p, i) => (i === 0 ? p : p[0].toUpperCase() + p.slice(1))).join('');
})()}(${esc(JSON.stringify(apis[0].examples[0]?.input ?? {}))});
console.log(r, r.$meta);cURL
curl -s https://api.temsor.com/v1/tr/address/parse \
-H "content-type: application/json" \
-H "x-api-key: fk_live_…" \
-d '{"address":"Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"}'JavaScript
const res = await fetch("https://api.temsor.com/v1/tr/address/parse", {
method: "POST",
headers: { "content-type": "application/json", "x-api-key": KEY },
body: JSON.stringify({"address":"Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"})
});
const { data } = await res.json();Python
import httpx
r = httpx.post("https://api.temsor.com/v1/tr/address/parse",
headers={"x-api-key": KEY},
json={"address":"Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"})
data = r.json()["data"]