Vietnam CPI & Inflation Adjustment API
Vietnam’s monthly CPI from the National Statistics Office: month-on-month, year-on-year, core inflation, gold and USD indices, CPI adjustment.
Monthly consumer price index of Viet Nam published by the National Statistics Office (Cục Thống kê, Ministry of Finance) since 12/2020: change on the previous month, the same month last year and December last year, the year-to-date average, core inflation, the gold and US dollar price indices and the 11 CPI groups (food, housing, transport, education…), plus a chained index (2024 = 100) linking the 2019 and 2024 base years. The data is rebuilt every week from the official monthly workbooks with consistency checks (the chained year-on-year rates match the published ones within 0.15 point).
action=adjust: amount + from month + to month (default the latest) → the amount adjusted by the CPI, for rent-indexation clauses, long-term contracts or real-wage comparisons; when the months are whole years apart the product of the published year-on-year rates is also given. action=latest (default), month=YYYY-MM and action=series&from=&to= return the figures. Source: Cục Thống kê – Bộ Tài chính (nso.gov.vn); cite it when reusing.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
action | query | string | no | latest | latest, month, series or adjust (alias mode); guessed from the other parameters. |
month | query | string | no | Month (YYYY-MM). | |
from / to | query | string | no | Series or adjustment months (YYYY-MM); to defaults to the latest month. | |
amount | query | number | no | Adjust: amount to adjust. | |
groups | query | boolean | no | Series: include the 11 groups. |
Example
curl "https://apibox.io.vn/v1/vn-cpi?amount=10000000&from=2025-10&to=2026-10" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-cpi?amount=10000000&from=2025-10&to=2026-10', {
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-cpi?amount=10000000&from=2025-10&to=2026-10",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-cpi?amount=10000000&from=2025-10&to=2026-10');
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
{
"action": "adjust",
"amount": 10000000,
"from": "2025-10",
"to": "2026-10",
"index_from": 103.601,
"index_to": 108.878,
"factor": 1.0509,
"change_percent": 5.09,
"adjusted_amount": 10509358,
"yoy_method": {
"factor": 1.0509,
"steps": [
{
"month": "2026-10",
"yoy_percent": 5.09
}
],
"adjusted_amount": 10509000,
"note": "Product of the published year-on-year CPI of each anniversary month"
},
"note": "adjusted_amount = amount × CPI(to) / CPI(from) using the chained national CPI (2024 = 100). Contracts may define a different index (e.g. the average CPI of a year or a province) – follow the contract.",
"source": "Cục Thống kê (National Statistics Office of Viet Nam), monthly CPI workbooks, https://www.nso.gov.vn",
"licence": "Published state statistics; cite \"Cục Thống kê – Bộ Tài chính\" when reusing (Luật Thống kê 2015, Điều 5).",
"coverage": {
"from": "2020-12",
"to": "2026-10"
}
}
Use cases
- Index rents and long-term service contracts to the CPI
- Compare salaries in real terms across years
- Show the latest inflation in a finance app or newsletter
- Feed CPI series to Google Sheets or a data-journalism chart
FAQ
When is a new month available?
The NSO publishes around the 6th of the following month; the dataset is refreshed weekly.
Why two adjustment results?
adjusted_amount uses the chained index ratio; yoy_method multiplies the published year-on-year rates, which some contracts specify. They differ only by rounding.
Is there provincial CPI?
Not yet; the API covers the national CPI, its 11 groups, core inflation and the gold and USD indices.
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.