ชื่อ API: ดัชนีผู้บริโภคระดับจังหวัด CPIP
(Master Data รายเดือน/ปี)
URL: https://index-api.tpso.go.th/OpenApi/Cpip/Month/MasterData
Method: GET
(แสดงข้อมูลรายเดือน)
URL: https://index-api.tpso.go.th/OpenApi/Cpip/Month
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2562,
    "year":2567,
    "month":11,
    "type":"18"
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
1 type String ประเภทดัชนี
2 typeName String ชื่อประเภทดัชนี
3 commodityCode String รหัสหมวดดัชนี
4 commodityNameTH String ชื่อหมวด (ภาษาไทย)
5 month Integer เดือน
6 year Integer ปี พ.ศ.
7 yearBase Integer ปีฐาน
8 index Float ดัชนี
9 change Float อัตราการเปลี่ยนแปลงตามเดือน MoM
10 changeYear Float อัตราการเปลี่ยนแปลงตามปี YoY
11 changeAVG Float อัตราการเปลียนแปลงค่าเฉลี่ย AoA
12 level Integer ระดับข้อมูล
13 createdAt Datetime วันที่สร้างข้อมูล

(แสดงข้อมูลรายปี)
URL: https://index-api.tpso.go.th/OpenApi/Cpip/Year
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2562,
    "year":2567,
    "month":11,
    "type":"34"
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
1 type String ประเภทดัชนี
2 commodityCode String รหัสหมวดดัชนี
3 commodityNameTH String ชื่อหมวด (ภาษาไทย)
4 year Integer ปี พ.ศ.
5 yearBase Integer ปีฐาน
6 indexAVG Float ค่าดัชนีเฉลี่ย
7 changeAVG Float อัตราการเปลียนแปลงค่าเฉลี่ย
8 level Integer ระดับข้อมูล

(Master Data รายไตรมาส)
URL: https://index-api.tpso.go.th/OpenApi/Cpip/Quarter/MasterData
Method: GET
(แสดงข้อมูลรายไตรมาส)
URL: https://index-api.tpso.go.th/OpenApi/Cpip/Quarter
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2562,
    "year":2566,
    "month":1,//ไตรมาส
    "type":"11"
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
1 type String ประเภทดัชนี
2 typeName String ชื่อประเภทดัชนี
3 commodityCode String รหัสหมวดดัชนี
4 commodityNameTH String ชื่อหมวด (ภาษาไทย)
5 month Integer ไตรมาส
6 year Integer ปี พ.ศ.
7 yearBase Integer ปีฐาน
8 index Float ดัชนี
9 change Float อัตราการเปลี่ยนแปลงตามเดือน MoM
10 changeYear Float อัตราการเปลี่ยนแปลงตามปี YoY
11 changeAVG Float อัตราการเปลียนแปลงค่าเฉลี่ย AoA
12 level Integer ระดับข้อมูล
13 createdAt Datetime วันที่สร้างข้อมูล