Vietnamese Law Lookup by Number API
Exact lookup of Vietnamese legal documents by number (e.g. 31/2024/QH15, 01/2024/QĐ-UBND): status, in-force flag, dates, agency and link.
Give a document number such as 31/2024/QH15, 168/2025/NĐ-CP or 01/2024/QĐ-UBND and get every document carrying exactly that number (case, diacritics and spaces ignored). Local numbers such as 01/2024/QĐ-UBND are shared by many provinces, so the answer is a list with the issuing agency of each; truncated: true means more than 300 matches exist and you should narrow down with /v1/vn-law-search?q=<number>&agency=….
Each item has the id, number, title, type, status, inForce, issue date, agency and link; pass the id to /v1/vn-law-document/{id} for the full record and text. Typical use: turn citations found in contracts, invoices or other texts (see /v1/vn-legal-parse) into links and validity checks.
Data: national legal database vbpl.vn (Ministry of Justice), refreshed nightly; reference only.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
number | path | string | yes | Document number, e.g. 31/2024/QH15 (path, URL-encoded, or ?number=). |
Example
curl "https://apibox.io.vn/v1/vn-law-lookup?number=31/2024/QH15" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-law-lookup?number=31/2024/QH15', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/vn-law-lookup?number=31/2024/QH15",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-law-lookup?number=31/2024/QH15');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"number": "31/2024/QH15",
"total": 1,
"truncated": false,
"items": [
{
"id": "177815",
"number": "31/2024/QH15",
"title": "Luật Đất đai",
"type": "Luật",
"status": "Còn hiệu lực",
"inForce": true,
"issuedDate": "18/01/2024",
"agency": "Quốc hội",
"url": "https://thuvienphapluat.io.vn/van-ban/177815/luat-dat-dai"
}
],
"source": {
"name": "Thư viện Pháp luật Mở (thuvienphapluat.io.vn)",
"texts": "National legal database vbpl.vn (Ministry of Justice); legal normative documents are not protected by copyright (IP Law art. 15)",
"metadata_licence": "Part of the metadata: \"Vietnamese Legal Documents\" dataset by Thịnh Ngô, CC BY 4.0",
"disclaimer": "Reference only; the text published in the Official Gazette (Công báo) prevails."
}
}
Use cases
- Check whether a decree cited in a contract is still in force
- Turn legal citations in a text into links to the full text
- Validate the legal basis printed on invoices or forms
- Resolve the right local document when many provinces use the same number
FAQ
Why can one number return several documents?
Local documents restart their numbering in every province, so 01/2024/QĐ-UBND exists in many places. Each result names its agency.
Do I need the exact format?
Case, diacritics and spaces are ignored: 31/2024/qh15 works. Use vn-law-search for partial numbers.
How do I get the text?
Call /v1/vn-law-document/{id} with content=text or content=html.
Related APIs
JSON Validator
Check JSON syntax with exact line and column of errors, and validate data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12).
{ }JSON Formatter
Pretty print JSON with 0-8 spaces or tabs, minify it, or sort object keys recursively. Syntax errors are reported with line and column.
CSVCSV to JSON
Convert CSV into an array of JSON objects using the header row, with delimiter auto-detection, number and boolean typing, and row-level errors.