⚖️ Thai Legal Data API/MCP
Thai law as data, not prose. Look up any มาตรา verbatim, search 39 statutes by meaning, find the Supreme Court decisions that interpret a given section, and ask questions that get answered only from retrieved sources — with every citation machine-checked.
Built for AI agents: the whole surface is also available through the iApp MCP server, so Claude, Cursor or any MCP client can research Thai law directly.
What's in the corpus
| Statutes | 39 laws · 6,363 sections — the consolidated text used by OpenThai 2.0 Legal, including ป.พ.พ., ป.อ., ป.วิ.พ., ป.วิ.อ. and ประมวลรัษฎากร |
| Supreme Court decisions | 70,634 rulings with their หลักกฎหมาย (legal principle) headnote |
| Coverage | พ.ศ. 2400s – 2568; searches default to 2540 onward |
| Citation links | 99.7% of rulings are linked to the laws and sections they cite, so you can go from a section to the case law on it |
Endpoints
| Method | Path | Cost |
|---|---|---|
GET | /v3/store/data/thai-legal/meta | free |
GET | /v3/store/data/thai-legal/laws | free |
GET | /v3/store/data/thai-legal/section | 0.1 IC |
GET POST | /v3/store/data/thai-legal/search | 0.1 IC |
GET POST | /v3/store/data/thai-legal/deka/search | 0.1 IC |
GET | /v3/store/data/thai-legal/deka/{case_id} | 0.1 IC |
POST | /v3/store/data/thai-legal/ask | 0.1 IC |
/meta and /laws are free permanently — an agent has to call them to build a valid request, so discovery shouldn't cost anything.
Visit API Key Management to view your key or request a new one.
Try It
Section lookup
Example Queries (Click to try)
Add query parameters (e.g., ?holiday_type=public&days_after=30)