ชื่อ API: ดัชนีผู้บริโภคชุดทั่วไป CPIG
(Master Data รายเดือน/ปี)
URL: https://index-api.tpso.go.th/OpenApi/Cpig/Month/MasterData
Method: GET
(แสดงข้อมูลรายเดือน)
URL: https://index-api.tpso.go.th/OpenApi/Cpig/Month
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2566,
    "year":2567,
    "month":null,
    "type":"10",
    "commodities":[]
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
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/Cpig/Year
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2566,
    "year":2567,
    "month":null,
    "type":"10",
    "commodities":[]
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
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/Cpig/Quarter/MasterData
Method: GET
(แสดงข้อมูลรายไตรมาส)
URL: https://index-api.tpso.go.th/OpenApi/Cpig/Quarter
Method: POST
ตัวอย่าง Parameter การเรียกใช้งาน API
{
    "yearBase":2566,
    "year":2567,
    "month":3,//ไตรมาส
    "type":"SS",
    "commodities":[]
}
                
ลำดับ ชื่อข้อมูล ชนิดข้อมูล คำอธิบาย
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 วันที่สร้างข้อมูล