{"name":"ThaiKit","description":"Thai language tools for AI agents: word segmentation, BAHTTEXT and Thai number words, parsing Thai numbers and dates, Buddhist Era (พ.ศ.) dates, Thai clock times, Thai dictionary sorting, wrong-keyboard-layout fixing, Thai national ID and phone number validation, and Thai address parsing, postcode lookup and place search.","network":"eip155:8453","pricePerCall":"$0.005","endpoints":{"POST /segment":{"description":"Thai word segmentation (tokenization): split Thai text, which has no spaces between words, into a list of words. Body: {\"text\": \"...\"} (max 5000 chars).","example":{"text":"ฉันกินข้าวที่เชียงใหม่"}},"GET /bahttext":{"description":"Thai BAHTTEXT: spell a money amount in Thai baht words, as written on Thai cheques, invoices and receipts. Query: ?amount=1234.50","example":{"amount":"1234.50"}},"GET /number-text":{"description":"Spell a plain number (not money) in Thai words; decimals are read digit by digit after จุด. Query: ?number=3.14","example":{"number":"3.14"}},"GET /parse-number":{"description":"Parse a Thai number written in words into a number, e.g. from invoices, cheques or speech transcripts. Handles บาท/สตางค์, จุด decimals, ล้าน, mixed digits like '5 ล้าน', and Thai digits. Uses the formal reading (พันห้า = 1005, matching BAHTTEXT). Query: ?text=หนึ่งพันสองร้อยบาทห้าสิบสตางค์","example":{"text":"หนึ่งพันสองร้อยบาทห้าสิบสตางค์"}},"GET /thai-date":{"description":"Convert a Gregorian date to the Thai Buddhist Era calendar (พ.ศ., year + 543) in Thai long, full, short and Thai-digit formats. Query: ?date=2026-10-18","example":{"date":"2026-10-18"}},"GET /parse-date":{"description":"Parse a Thai date string into an ISO date (YYYY-MM-DD). Handles full and abbreviated Thai month names (ตุลาคม, ต.ค.), Buddhist Era (พ.ศ.) and CE years, two-digit years, Thai digits and dd/mm/yyyy. Query: ?text=18 ต.ค. 2569","example":{"text":"18 ต.ค. 2569"}},"GET /thai-time":{"description":"Say a 24-hour time the Thai way: colloquial six-hour clock words (ตี, โมงเช้า, บ่าย, โมงเย็น, ทุ่ม) and the formal นาฬิกา form. Query: ?time=14:30","example":{"time":"14:30"}},"POST /sort":{"description":"Sort Thai words or names in Thai dictionary order, which plain code-point sorting gets wrong because of leading vowels (เ แ โ ใ ไ). Body: {\"items\": [\"...\", \"...\"]} (max 1000).","example":{"items":["ไก่","ขา","กา","เกม"]}},"GET /keyboard-fix":{"description":"Fix text typed with the wrong keyboard language (Thai Kedmanee vs English QWERTY), e.g. 'l;ylfu' -> 'สวัสดี'. Direction is detected automatically or set with to=thai|english. Query: ?text=l;ylfu","example":{"text":"l;ylfu","to":"auto"}},"GET /validate-id":{"description":"Validate a 13-digit Thai national ID or company tax ID by its checksum and format it (x-xxxx-xxxxx-xx-x). Checks format only; it does not look up whether the ID was issued. Query: ?id=1101700230708","example":{"id":"1101700230708"}},"GET /phone":{"description":"Validate and normalize a Thai phone number: type (mobile, landline, toll-free, hotline short code), national format and E.164 (+66). Accepts 0, +66 and 0066 prefixes. Query: ?number=0812345678","example":{"number":"081-234-5678"}},"POST /address-parse":{"description":"Parse and validate a Thai postal address: split it into house number, moo, village, building, soi, road, subdistrict (ตำบล/แขวง), district (อำเภอ/เขต), province and postcode; match the areas to official names (fixing typos, 'อ.เมือง', กทม.); check the postcode against the subdistrict; and return the address formatted in Thai and English for shipping forms. Body: {\"text\": \"99/1 ม.4 ต.ยางเนิ้ง อ.สารภี จ.เชียงใหม่ 50140\"}","example":{"text":"99/1 ม.4 ต.ยางเนิ้ง อ.สารภี จ.เชียงใหม่ 50140"}},"GET /postcode":{"description":"Look up a 5-digit Thai postcode: every subdistrict, district and province it covers, with official Thai and English names and government area codes. Unknown postcodes return 404 (not charged). Query: ?code=50140","example":{"code":"50140"}},"GET /address-search":{"description":"Find Thai subdistricts by name in Thai or English, tolerant of typos and missing tone marks (for autocomplete and address cleanup). Returns ranked matches with district, province, postcode and official names. Query: ?q=ยางเนิง สารภี (optional &limit=1-50, default 10)","example":{"q":"ยางเนิง สารภี","limit":"5"}}}}