Languages

SERVICE ที่ให้บริการ


** ผู้ใช้งานสามารถยืนยันตัวตนเพื่อรับรหัส API Key โดยลงทะเบียนรับได้ที่ https://opend.data.go.th/register_api

ภาษีไปไหน เปิดให้บริการเรียกใช้ข้อมูลผ่านทาง web service ดังนี้

Service Name Description
BBAgc รายชื่อหน่วยงานระดับกรม เจ้าของโครงการที่ได้รับงบประมาณ
BBGFProvince รายชื่อจังหวัด
BBGFSummary ข้อมูลงบประมาณและการเบิกจ่าย
BBGroupByAspect ข้อมูลงบประมาณจำแนกตามกลุ่ม
BBMinistry รายชื่อหน่วยงานระดับกระทรวง เจ้าของโครงการที่ได้รับงบประมาณ
BBStg ข้อมูลวงเงินงบประมาณตาม พ.ร.บ. ในแต่ละยุทธศาสตร์
BBTransactionType ข้อมูลวงเงินงบประมาณ จำแนกตามประเภทของวงเงินงบประมาณ
DLAAllocateIncomeType ข้อมูลรายได้รัฐจัดสรร
DLAIncome ข้อมูลรายได้ท้องถิ่น
DLASelfIncomeType ข้อมูลรายได้จัดเก็บเอง
DLASubsidyIncomeType ข้อมูลรายได้จากเงินอุดหนุน
DLAType ประเภทขององค์กรปกครองส่วนท้องถิ่น
CGDContract ข้อมูลโครงการจัดซื้อจัดจ้างจากระบบการจัดซื้อจัดจ้างภาครัฐ (Thai Government Procurement)
EGPDepartment รายชื่อหน่วยจัดซื้อสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง
EGPSubdepartment รายชื่อหน่วยจัดซื้อย่อยสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง
EGPWinner รายชื่อผู้ชนะการเสนอราคาสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง
SummaryCGDContract ข้อมูลผลสรุปโครงการจัดซื้อจัดจ้างจากระบบการจัดซื้อจัดจ้างภาครัฐ (Thai Government Procurement)
EGPCost ข้อมูลโครงการความโปร่งใสในการก่อสร้างภาครัฐ
GFPerMonth ข้อมูลการเบิกจ่ายรายเดือน
GFStg ข้อมูลการเบิกจ่ายในแต่ละยุทธศาสตร์
GFTransactionType ข้อมูลการเบิกจ่าย จำแนกตามประเภทของการเบิกจ่าย

Service Name : BBAgc (รายชื่อหน่วยงานระดับกรม)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBAGC
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อหน่วยงานระดับกรม เจ้าของโครงการที่ได้รับงบประมาณ

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bbagc
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer no 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
agc_name text no 255 - ชื่อหน่วยงาน เช่น เชียงใหม่, สำนัก
agc_code integer no 5 - รหัสหน่วยงาน เช่น 20130
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ เช่น offset=0
limit integer no - 100 จำกัดจำนวนการดึงข้อมูล เช่น limit=10

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:50:52",
    param_obj: {
        year: 2561,
        agc_name: "เชียงใหม่",
        agc_code: false,
        offset: 0,
        limit: "20"
    },
    summary: {
        total: 3
    },
    result: [
        {
            year: "2561",
            agc_code: "70151",
            agc_name: "จังหวัดเชียงใหม่"
        },
        {
            year: "2561",
            agc_code: "20317",
            agc_name: "มหาวิทยาลัยเชียงใหม่"
        },
        {
            year: "2561",
            agc_code: "20130",
            agc_name: "มหาวิทยาลัยราชภัฏเชียงใหม่"
        }
    ]
}

Response Parameters

Parameter name Type Description
year text ปีงบประมาณ
agc_code text รหัสหน่วยงาน
agc_name text ชื่อหน่วยงาน

Service Name : BBGFProvince (รายชื่อจังหวัด)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBGFPROVINCE
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อจังหวัด

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bbgfmisprovince
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
prov_name text no 255 - ชื่อจังหวัดภาษาไทย เช่น กระบี่
prov_code integer no 8 - รหัสจังหวัด เช่น 04810000
prov_id integer no 2 - รหัสจังหวัดแบบย่อ เช่น 81
prov_gf_code integer no 4 - รหัสจังหวัด GFMIS เช่น 8100

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:54:28",
    param_obj: {
        prov_name: "กระบี่",
        prov_code: false,
        prov_id: false,
        prov_gf_code: false
    },
    summary: {
        total: 1
    },
    result: [
        {
            prov_code: "04810000",
            prov_name: "กระบี่",
            prov_id: "81",
            prov_gf_code: "8100"
        }
    ]
}

Response Parameters

Parameter name Type Description
prov_code text รหัสจังหวัด
prov_name text ชื่อจังหวัดภาษาไทย
prov_id text รหัสจังหวัดแบบย่อ
prov_gf_code text รหัสจังหวัด GFMIS

Service Name : BBGFSummary (ข้อมูลงบประมาณและการเบิกจ่าย)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBGFSUMMARY
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลงบประมาณและการเบิกจ่าย

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bbgf_summary
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 02:13:30",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    result: {
        dept_name: "สำนักนายกรัฐมนตรี",
        total_bb: 40830.4206,
        total_gf: 35015.707885,
        percent: 85.75887137689688
    }
}

Response Parameters

Parameter name Type Description
dept_name text ชื่อหน่วยงาน
total_bb numeric วงเงินงบประมาณ (ล้านบาท)
total_gf numeric จำนวนเงินเบิกจ่าย (ล้านบาท)
percent numeric เปอร์เซ็นต์การเบิกจ่าย

Service Name : BBGroupByAspect (ข้อมูลงบประมาณจำแนกตามกลุ่ม)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBGROUPBYASPECT
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลงบประมาณจำแนกตามกลุ่ม

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bb_group_by_aspect
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 09:36:18",
    param_obj: {
        year: 2562
    },
    summary: {
        total_aspect_group: 6,
        total_amount: 3000000,
    },
    result: [
        {
            name: "งบกลาง",
            name_en: "Central Fund",
            amount: 105500
        },
        {
            name: "กลุ่มงบประมาณรายจ่าย กระทรวง/หน่วยงาน (Function)",
            name_en: "Expenditures Classified by Ministry and Organization",
            amount: 767684.4903
        },
        {
            name: "กลุ่มงบประมาณรายจ่ายบูรณาการ (Agenda)",
            name_en: "Expenditures Classified by Integration",
            amount: 482526.4638
        },
        {
            name: "กลุ่มงบประมาณรายจ่ายพื้นที่ (Area)",
            name_en: "Expenditures Classified by Area",
            amount: 323718.2632
        },
        {
            name: "กลุ่มงบประมาณรายจ่ายบริหารจัดการหนี้ภาครัฐ",
            name_en: "Expenditures Classified by Management of Public Debts",
            amount: 259609.8791
        },
        {
            name: "กลุ่มงบประมาณแผนงานบุคลากรภาครัฐ",
            name_en: "",
            amount: 1060960.9036
        }
    ]
}

Response Parameters

Parameter name Type Description
total_aspect_group integer จำนวนกลุ่ม
total_amount numeric งบประมาณทั้งหมด​ (ล้านบาท)
name text ชื่อกลุ่ม
name_en text ชื่อกลุ่ม ภาษาอังกฤษ
amount numeric งบประมาณ (ล้านบาท)

Service Name : BBMinistry (รายชื่อหน่วยงานระดับกระทรวง)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBMINISTRY
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อหน่วยงานระดับกระทรวง เจ้าของโครงการที่ได้รับงบประมาณ

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bbministry
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer no 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2561
min_name text no 255 - ชื่อกระทรวง เช่น สำนักนายกรัฐมนตรี
min_code integer no 5 - รหัสกระทรวง เช่น 01000

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:31:09",
    param_obj: {
        year: 2561,
        min_name: "กระทรวงการ",
        min_code: "03000"
    },
    summary: {
        total: 1
    },
    result: [
        {
            year: "2561",
            min_code: "03000",
            min_name: "กระทรวงการคลัง"
        }
    ]
}

Response Parameters

Parameter name Type Description
year text ปีงบประมาณ
min_code text รหัสกระทรวง
min_name text ชื่อกระทรวง

Service Name : BBStg (ข้อมูลวงเงินงบประมาณตาม พ.ร.บ. ในแต่ละยุทธศาสตร์)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBSTG
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลวงเงินงบประมาณตาม พ.ร.บ. ในแต่ละยุทธศาสตร์

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bb_stg
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 02:46:44",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    summary: {
        dept_name: "สำนักนายกรัฐมนตรี",
        total_stg: 6,
        total_amount: 40830.4206,
        total_percent: 1.3610140199999998
    },
    result: [
        {
            stg_name: "ยุทธศาสตร์ด้านความมั่นคง",
            amount: 17449.9725,
            percent: 0.58166575
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการปรับสมดุลและพัฒนาระบบบริหารจัดการภาครัฐ",
            amount: 11046.5847,
            percent: 0.36821949
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการพัฒนาและเสริมสร้างศักยภาพคน",
            amount: 6006.6903,
            percent: 0.20022301000000003
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการสร้างความสามารถในการแข่งขันของประเทศ",
            amount: 4780.5706,
            percent: 0.15935235333333334
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการจัดการน้ำและสร้างการเติบโตบนคุณภาพชีวิตที่เป็นมิตรกับสิ่งแวดล้อมอย่างยั่งยืน",
            amount: 834.7666,
            percent: 0.027825553333333336
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการแก้ไขปัญหาความยากจน ลดความเหลื่อมล้ำ และสร้างการเติบโตจากภายใน",
            amount: 711.8359,
            percent: 0.023727863333333335
        }
    ]
}

Response Parameters

Parameter name Type Description
dept_name text ชื่อหน่วยงาน
total_stg integer จำนวนยุทธศาสตร์
total_amount numeric วงเงินงบประมาณ (ล้านบาท)
total_percent numeric วงเงินงบประมาณในทุกยุทธศาสตร์ของหน่วยงานที่เลือก เทียบกับวงเงินงบประมาณทั้งประเทศของปีงบประมาณนั้น คิดเป็นเปอร์เซ็นต์
stg_name text ชื่อยุทธศาสตร์
amount numeric วงเงินงบประมาณ (ล้านบาท)
percent numeric วงเงินงบประมาณในยุทธศาสตร์นี้ของหน่วยงานที่เลือก เทียบกับวงเงินงบประมาณทั้งประเทศของปีงบประมาณนั้น คิดเป็นเปอร์เซ็นต์

Service Name : BBTransactionType (ข้อมูลวงเงินงบประมาณ จำแนกตามประเภทของวงเงินงบประมาณ)


1.ข้อมูลเบื้องต้น

รหัสบริการ: BBTRANSACTIONTYPE
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลวงเงินงบประมาณ จำแนกตามประเภทของวงเงินงบประมาณ

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/bb_transaction_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 10:21:22",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    summary: {
        total_amount: 40830.4206,
        dept_name: "สำนักนายกรัฐมนตรี"
    },
    result: [
        {
            transaction_type_name: "รายจ่ายประจำ",
            amount: 29879.047
        },
        {
            transaction_type_name: "รายจ่ายลงทุน",
            amount: 10951.3736
        }
    ]
}

Response Parameters

Parameter name Type Description
total_amount numeric งบประมาณทั้งหมด​ (ล้านบาท)
dept_name text ชื่อหน่วยงาน
transaction_type_name text ชื่อประเภทวงเงินงบประมาณ
amount numeric งบประมาณ (ล้านบาท)

Service Name : DLAAllocateIncome (ข้อมูลรายได้รัฐจัดสรร)


1.ข้อมูลเบื้องต้น

รหัสบริการ: DLAALLOCATEINCOME
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลรายได้รัฐจัดสรร

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/dla_allocate_income_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
budget_year integer yes 4 - ปีงบประมาณ
name text no - - ชื่อประเภทรายได้รัฐจัดสรร เช่น ภาษีสรรพสามิต

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2025-02-14 11:15:04",
    param_obj: {
        budget_year: 2565,
        name: "สรรพสามิต"
    },
    summary: {
        total: 1
    },
    result: [
        {
            name: "ภาษีสรรพสามิต",
            amount: 48248.80382551
        }
    ]
}

Response Parameters

Parameter name Type Description
name integer ชื่อประเภทรายได้รัฐจัดสรร
amount numeric จำนวนเงิน (ล้านบาท)

Service Name : DLAIncome (ข้อมูลรายได้ท้องถิ่น)


1.ข้อมูลเบื้องต้น

รหัสบริการ: DLAINCOME
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลรายได้ท้องถิ่น

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/dla_income
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
dla_name text no - - ชื่อองค์กรปกครองท้องถิ่น เช่น อบต.ท่าตะเกียบ
prov_id text no 2 - รหัสจังหวัด เช่น 10, 08, 31
prov_name text no - - ชื่อจังหวัด
amp_id text no 4 - รหัสอำเภอ เช่น 2201
ref_dla_type_id integer no - - รหัสประเภทองค์กรปกครองส่วนท้องถิ่น เช่น 1, 4
dla_type_name text no - - ชื่อประเภทองค์กรปกครองส่วนท้องถิ่น เช่น องค์กรปกครองท้องถิ่นรูปแบบพิเศษ, เทศบาลเมือง
budget_year integer no 4 - รหัสประเภทองค์กรปกครองส่วนท้องถิ่น เช่น ปีงบประมาณ
offset integer no - - ดึงข้อมูลตั้งแต่ลำดับที่ offset=0
limit integer no - - จำกัดจำนวนการดึงข้อมูล เช่น limit=20

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-02-05 02:37:19",
    param_obj: {
        dla_name: "ทต",
        prov_id: "31",
        prov_name: "บุรี",
        amp_id: "3121",
        amp_name: "ด่าน",
        ref_dla_type_id: "4",
        dla_type_name: "เทศ",
        budget_year: "2561",
        offset: 0,
        limit: 20
    },
    summary: {
        total: 2
    },
    result: [
        {
            dla_name: "ทต.บ้านด่าน",
            ref_dla_type_id: 4,
            prov_id: "31",
            amp_id: "3121",
            area: 49.5,
            population_count: 11920,
            total_income: 65.79805628,
            self_income: 1.24394368,
            allocate_income: 26.7885146,
            subsidy_income: 37.765598,
            ref_dla_type_name: "เทศบาลตำบล",
            prov_name: "บุรีรัมย์",
            prov_name_en: "Buri Ram",
            amp_name: "บ้านด่าน",
            amp_name_en: "Ban Dan"
        },{
            dla_name: "ทต.ปราสาท",
            ref_dla_type_id: 4,
            prov_id: "31",
            amp_id: "3121",
            area: 56.4,
            population_count: 8876,
            total_income: 51.3413453,
            self_income: 0.83144167,
            allocate_income: 21.5478304,
            subsidy_income: 28.96207323,
            ref_dla_type_name: "เทศบาลตำบล",
            prov_name: "บุรีรัมย์",
            prov_name_en: "Buri Ram",
            amp_name: "บ้านด่าน",
            amp_name_en: "Ban Dan"
        }
    ]
}

Response Parameters

Parameter name Type Description
dla_name integer ชื่อองค์กรปกครองท้องถิ่น
ref_dla_type_id integer รหัสประเภทองค์กรปกครองท้องถิ่น
dla_type_name text ชื่อประเภทองค์กรปกครองท้องถิ่น
prov_id text รหัสจังหวัด
prov_name text ชื่อจังหวัด (ภาษาไทย)
prov_name_en text ชื่อจังหวัด (ภาษาอังกฤษ)
amp_id text รหัสอำเภอ
amp_name text ชื่ออำเภอ (ภาษาไทย)
amp_name_en text ชื่ออำเภอ (ภาษาอังกฤษ)
area numeric พื้นที่ (ตร.กม.)
population_count numeric จำนวนประชากร (คน)
total_income numeric รายได้รวมจัดเก็บเอง + รัฐจัดสรร + เงินอุดหนุน (ล้านบาท)
self_income numeric รายได้จากจัดเก็บเอง (ล้านบาท)
allocate_income numeric รายได้จากรัฐจัดสรร (ล้านบาท)
subsidy_income numeric รายได้จากเงินอุดหนุน (ล้านบาท)

Service Name : DLASelfIncome (ข้อมูลรายได้จัดเก็บเอง)


1.ข้อมูลเบื้องต้น

รหัสบริการ: DLASELFINCOME
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลรายได้จัดเก็บเอง

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/dla_self_income_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
budget_year integer yes 4 - ปีงบประมาณ
name text no - - ชื่อประเภทรายได้จัดเก็บเอง เช่น ภาษีบำรุงท้องที่

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2025-02-13 04:37:22",
    param_obj: {
        budget_year: 2566,
        name: "ธรรมเนียม"
    },
    summary: {
        total: 2
    },
    result: [
        {
            name: "ค่าธรรมเนียม",
            amount: 8185.76156815
        },
        {
            name: "ค่าธรรมเนียมบำรุง อบจ. จากผู้เข้าพักโรงแรม",
            amount: 614.19487819
        }
    ]
}

Response Parameters

Parameter name Type Description
name integer ชื่อประเภทรายได้จัดเก็บเอง
amount numeric จำนวนเงิน (ล้านบาท)

Service Name : DLASubsidyIncome (ข้อมูลรายได้จากเงินอุดหนุน)


1.ข้อมูลเบื้องต้น

รหัสบริการ: DLASUBSIDYINCOME
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลรายได้จากเงินอุดหนุน

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/dla_subsidy_income_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
budget_year integer yes 4 - ปีงบประมาณ
name text no - - ชื่อประเภทรายได้จากเงินอุดหนุน เช่น เงินอุดหนุนทั่วไป

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2025-02-14 11:51:09",
    param_obj: {
        budget_year: 2562,
        name: "เฉพาะกิจ"
    },
    summary: {
        total: 1
    },
    result: [
        {
            name: "เงินอุดหนุนเฉพาะกิจ",
            amount: 30585.13937196
        }
    ]
}

Response Parameters

Parameter name Type Description
name integer ชื่อประเภทรายได้จากเงินอุดหนุน
amount numeric จำนวนเงิน (ล้านบาท)

Service Name : DLAType (ประเภทขององค์กรปกครองส่วนท้องถิ่น)


1.ข้อมูลเบื้องต้น

รหัสบริการ: DLATYPE
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ประเภทขององค์กรปกครองส่วนท้องถิ่น

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/dla_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
dla_name text no - - ชื่อประเภทองค์กรปกครองท้องถิ่น เช่น เทศบาลเมือง

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-02-05 10:44:36",
    param_obj: {
        dla_name: "เทศ"
    },
    summary: {
        total: 3
    },
    result: [
        {
            id: 3,
            dla_name: "เทศบาลเมือง"
        },
        {
            id: 4,
            dla_name: "เทศบาลตำบล"
        },
        {
            id: 6,
            dla_name: "เทศบาลนคร"
        }
    ]
}

Response Parameters

Parameter name Type Description
id integer รหัสประเภทองค์กรปกครองท้องถิ่น
dla_name text ชื่อประเภทองค์กรปกครองท้องถิ่น

Service Name : CGDContract (ข้อมูลโครงการจัดซื้อจัดจ้าง)


1.ข้อมูลเบื้องต้น

รหัสบริการ: CGDCONTRACT
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลโครงการจัดซื้อจัดจ้างจากระบบการจัดซื้อจัดจ้างภาครัฐ (Thai Government Procurement)

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/cgdcontract
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 - ปีงบประมาณ พ.ศ. เช่น 2560
keyword text no 255 - คำค้นเบื้องต้น
dept_code text no 255 - รหัสหน่วยจัดซื้อ ดูเพิ่มเติมได้ที่ EGPDepartment
winner_tin text no 13 - เลขประจำตัวนิติบุคคล 13 หลัก ดูเพิ่มเติมได้ที่ EGPWinner
budget_start numeric no - 0 วงเงินงบประมาณเริ่มต้น เช่น 0
budget_end numeric no - - วงเงินงบประมาณสิ้นสุด เช่น 100000
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ 0 เป็นต้นไป **ข้อมูลจะถูก limit ตามที่ set ไว้ไม่เกิน 100 records
limit integer no - 20 จำกัดจำนวนการดึงข้อมูล เช่น limit=20 *max = 1,000

4.Response Fields

Simple Response:

{
    code: 200,
    status: true,
    msg: "",
    time: "2020-02-28 04:57:19",
    param_obj: {
        year: 2560,
        keyword: "โครงการก่อสร้างที่พักอาศัย",
        dept_code: "0205",
        winner_tin: "0105550016345",
        budget_start: 10000000,
        budget_end: 400000000,
        offset: 0,
        limit: 20
    },
    result: [
        {
            project_id: "60026146503",
            project_name: "ประกวดราคาจ้างก่อสร้างงานโครงการก่อสร้างที่พักอาศัยและนันทนาการกองทัพเรือ ก่อสร้างอาคารพักนายทหารสัญญาบัตร ขนาด ๘๐ ครอบครัว จำนวน ๒ หลัง และอาคารพักนายทหารประทวน ขนาด ๖๔ ครอบครัว จำนวน ๒ หลัง ด้วยวิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)",
            project_type_name: "จ้างก่อสร้าง",
            dept_name: "กองทัพเรือ",
            dept_sub_name: "กรมช่างโยธาทหารเรือ กรุงเทพฯ",
            purchase_method_name: "ประกวดราคาอิเล็กทรอนิกส์ (e-bidding)",
            purchase_method_group_name: "วิธีการจัดหา ประกาศเชิญชวนทั่วไป คัดเลือก เฉพาะเจาะจง",
            announce_date: "27 ก.พ. 60",
            project_money: "385,000,000",
            price_build: "385,000,000",
            sum_price_agree: "336,000,000",
            budget_year: "2560",
            transaction_date: "22 ส.ค. 60",
            province: "กรุงเทพมหานคร",
            district: "บางกอกใหญ่",
            subdistrict: "วัดอรุณ",
            project_status: "ระหว่างดำเนินการ",
            project_location: {
                lat: 13.7140744894587,
                lon: 100.351162457766
            },
            geom: "POINT(100.351162457766 13.7140744894587)",
            contract: [
                {
                    winner_tin: "0105550016345",
                    winner: "บริษัท ฟอร์ คอน จำกัด",
                    contract_no: "๘๐/งป.๒๕๖๐",
                    contract_date: "22 ส.ค. 60",
                    contract_finish_date: "11 ต.ค. 62",
                    price_agree: "336,000,000",
                    status: "ระหว่างดำเนินการ"
                }
            ]
        }
    ]
}

Response Parameters

Parameter name Type Description
project_id text รหัสโครงการ
project_name text ชื่อโครงการที่จัดซื้อจัดจ้าง
project_type_name text ชื่อประเภทโครงการ
dept_name text ชื่อหน่วยงาน
dept_sub_name text ชื่อหน่วยงานย่อย
purchase_method_name text ชื่อวิธีการจัดซื้อจัดจ้าง
purchase_method_group_name text ชื่อกลุ่มวิธีการจัดซื้อจัดจ้าง
announce_date text วันที่ประกาศจัดซื้อจัดจ้าง
project_money text วงเงินงบประมาณ
price_build text ราคากลาง
sum_price_agree text ราคาที่ตกลงซื้อ / จ้าง ซึ่งรวมทุกสัญญาในโครงการ
budget_year text ปีงบประมาณ
transaction_date text วันที่เกิดรายการ
province text ชื่อจังหวัด
district text ชื่อเขต / อำเภอ
subdistrict text ชื่อแขวง / ตำบล
project_status text สถานะโครงการ
project_location object พิกัดของโครงการ
lat numeric พิกัดละติจูดของโครงการ (ถ้าไม่มีจะส่งเป็น 0)
lon numeric พิกัดลองจิจูดของโครงการ (ถ้าไม่มีจะส่งเป็น 0)
geom text พิกัดของโครงการ
contract array รายการสัญญา
winner_tin text เลขประจำตัวนิติบุคคล 13 หลัก
winner text ชื่อบริษัทผู้ชนะการเสนอราคา
contract_no text เลขที่สัญญา
contract_date text วันที่ลงนามในสัญญา
contract_finish_date text วันที่สิ้นสุดสัญญา
price_agree text วงเงินงบประมาณ
status text สถานะสัญญา

Service Name : EGPDepartment (รายชื่อหน่วยจัดซื้อ)


1.ข้อมูลเบื้องต้น

รหัสบริการ: EGPDEPARTMENT
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อหน่วยจัดซื้อสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/egpdepartment
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
dept_name text no - - ชื่อหน่วยงาน เช่น กองทัพ
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ offset=0
limit integer no - 20 จำกัดจำนวนการดึงข้อมูล เช่น limit=20

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:44:48",
    param_obj: {
        dept_name: "กองทัพอากาศ",
        offset: 0,
        limit: 20
    },
    summary: {
        total: 1
    },
    result: [
        {
            dept_code: "0206",
            dept_name: "กองทัพอากาศ"
        }
    ]
}

Response Parameters

Parameter name Type Description
dept_code text รหัสหน่วยงาน
dept_name text ชื่อหน่วยงาน

Service Name : EGPSubdepartment (รายชื่อหน่วยจัดซื้อย่อย)


1.ข้อมูลเบื้องต้น

รหัสบริการ: EGPSUBDEPARTMENT
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อหน่วยจัดซื้อย่อยสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/egpsubdepartment
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
sub_dept_name text no - - ชื่อหน่วยงานย่อย เช่น หน่วยงาน
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ เช่น offset=0
limit integer no - 20 จำกัดจำนวนการดึงข้อมูล เช่น limit=20

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:03:28",
    param_obj: {
        sub_dept_name: "สำนักสำรวจและออกแบบ กรมทางหลวงชน",
        offset: 0,
        limit: 20
    },
    summary: {
        total: 1
    },
    result: [
        {
            sub_dept_code: "0800700096",
            sub_dept_name: "สำนักสำรวจและออกแบบ กรมทางหลวงชนบท กรุงเทพฯ",
            sub_dept_address: "9 ถ.พหลโยธิน",
            dept_name: "กรมทางหลวงชนบท",
            prov_name: "กรุงเทพมหานคร",
            moi: "อนุสาวรีย์"
        }
    ]
}

Response Parameters

Parameter name Type Description
sub_dept_code text รหัสหน่วยงานย่อย
sub_dept_name text ชื่อหน่วยงานย่อย
sub_dept_address text ที่อยู่ของหน่วยงานย่อย
dept_name text ชื่อหน่วยงาน
prov_name text ชื่อจังหวัด
moi text ชื่อแขวง / ตำบล

Service Name : EGPWinner (รายชื่อผู้ชนะการเสนอราคา)


1.ข้อมูลเบื้องต้น

รหัสบริการ: EGPWINNER
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: รายชื่อผู้ชนะการเสนอราคาสำหรับข้อมูลโครงการจัดซื้อจัดจ้าง

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/egpwinner
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
winner text no - - ชื่อบริษัทผู้ชนะการเสนอราคา
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ เช่น offset=0
limit integer no - 20 จำกัดจำนวนการดึงข้อมูล เช่น limit=20

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-28 12:03:28",
    param_obj: {
        winner: "อิตาเลียนไทย",
        offset: 0,
        limit: 20
    },
    summary: {
        total: 1
    },
    result: [
        {
            winner_tin: "0107537000939",
            winner: "บริษัท อิตาเลียนไทย ดีเวล๊อปเมนต์ จำกัด (มหาชน)"
        }
    ]
}

Response Parameters

Parameter name Type Description
winner_tin text เลขประจำตัวนิติบุคคล 13 หลัก ของผู้ชนะการเสนอราคา
winner text ชื่อบริษัทผู้ชนะการเสนอราคา

Service Name : SummaryCGDContract (ข้อมูลผลสรุปโครงการจัดซื้อจัดจ้าง)


1.ข้อมูลเบื้องต้น

รหัสบริการ: SUMMARYCGDCONTRACT
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลผลสรุปโครงการจัดซื้อจัดจ้างจากระบบการจัดซื้อจัดจ้างภาครัฐ (Thai Government Procurement)

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/summary_cgdcontract
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 - ปีงบประมาณ พ.ศ. เช่น 2560
keyword text no 255 - คำค้นเบื้องต้น
dept_code text no 255 - รหัสหน่วยจัดซื้อ ดูเพิ่มเติมได้ที่ EGPDepartment
winner_tin text no 13 - เลขประจำตัวนิติบุคคล 13 หลัก ดูเพิ่มเติมได้ที่ EGPWinner
budget_start numeric no - 0 วงเงินงบประมาณเริ่มต้น เช่น 0
budget_end numeric no - - วงเงินงบประมาณสิ้นสุด เช่น 100000

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-01-22 04:56:57",
    param_obj: {
        year: 2560,
        keyword: "",
        dept_code: "0204",
        winner_tin: "",
        budget_start: 0,
        budget_end: ""
    },
    summary: {
        total_project: "17495",
        total_price: "19613.46"
    }
}

Response Parameters

Parameter name Type Description
total_project text จำนวนโครงการทั้งหมด
total_price text รวมราคาที่ตกลงซื้อ/จ้าง ทั้งหมด (บาท)

Service Name : EGPCost (ข้อมูลโครงการความโปร่งใสในการก่อสร้างภาครัฐ (CoST))


1.ข้อมูลเบื้องต้น

รหัสบริการ: EGPCOST
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลโครงการความโปร่งใสในการก่อสร้างภาครัฐ

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/egpcost
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer no - - ปีงบประมาณ
project_id text no - - รหัสโครงการจัดซื้อจัดจ้าง
keyword text no - - ชื่อโครงการจัดซื้อจัดจ้าง
offset integer no - 0 ดึงข้อมูลตั้งแต่ลำดับที่ เช่น offset=0
limit integer no - 20 จำกัดจำนวนการดึงข้อมูล เช่น limit=20

4.Response Fields

Simple Response:
{
    "code": 200,
    "status": true,
    "msg": "",
    "time": "2025-03-06 10:48:57",
    "param_obj": {
        "year": 2568,
        "project_id": "67099238620",
        "keyword": "ประกวดราคา",
        "offset": 0,
        "limit": 20
    },
    "total": 1,
    "result": [
        {
            "cost_id": "67000952",
            "project_id": "67099238620",
            "project_name": "ประกวดราคาจ้างก่อสร้างปรับปรุงอาคารโดมศูนย์พัฒนาเด็กเล็กบ้านสัตตพงษ์ ด้วยวิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)",
            "status": "ใช้งาน",
            "stg_budget_name": "ยุทธศาสตร์ด้านการสร้างความสามารถในการแข่งขัน",
            "stg_other_name": "-",
            "budget_money": null,
            "off_budget_money": 8000000,
            "objective": "เพื่อให้อาคารสถานที่สามารถใช้งานได้อย่างมีประสิทธิภาพและปลอดภัยสูงสุด",
            "detail": "ปรับปรุงผิวพื้นที่และปูกระเบื้อง อาคารโดมศูนย์พัฒนาเด็กเล็กบ้านสัตตพงษ์ โดยมีพื้นที่บริเวณเฉลี่ยไม่น้อยกว่า ๑,๔๕๐ ตารางเมตร หมู่ที่ ๗ ตำบลบ้านเก่า อำเภอพานทอง จังหวัดชลบุรี",
            "bidder": [
                {
                    "name": "ห้างหุ้นส่วนจำกัด รุ่งโรจน์ ก่อสร้าง แอนด์ ดีไซน์"
                },
                {
                    "name": "บริษัท เค.เอ็น.พี เอ็นจิเนียริ่ง แอนด์ คอนสตรัค ชั่น จำกัด"
                },
                {
                    "name": "บริษัท ผาสุข 2015 จำกัด"
                },
                {
                    "name": "บริษัท ชุมราษฎร์ วิศวกรรม (กิจการร่วมค้า) จำกัด"
                },
                {
                    "name": "กิจการร่วมค้านาคาเจริญทรัพย์"
                }
            ],
            "contract": [
                {
                    "id": "671122000056",
                    "value": 7520000,
                    "contract_start_date": "9 พ.ย. 67",
                    "contract_finish_date": "7 พ.ค. 68",
                    "period": 180,
                    "total_installment": 4,
                    "project_finish_date": "-",
                    "winner_name": "ห้างหุ้นส่วนจำกัด รุ่งโรจน์ ก่อสร้าง แอนด์ ดีไซน์",
                    "installment": [
                        {
                            "no": 1,
                            "due_date": "23 ธ.ค. 67",
                            "completion_date": "19 ธ.ค. 67",
                            "seq": 1,
                            "percent_working": "25.00",
                            "money_withdraw": "1,880,000.00",
                            "percent_withdraw": "25.00",
                            "progress_report": "เป็นไปตามแผนที่กำหนด"
                        },
                        {
                            "no": 2,
                            "due_date": "6 ก.พ. 68",
                            "completion_date": "7 ก.พ. 68",
                            "seq": 1,
                            "percent_working": null,
                            "money_withdraw": "0.00",
                            "percent_withdraw": "25.00",
                            "progress_report": "-"
                        },
                        {
                            "no": 3,
                            "due_date": "23 มี.ค. 68",
                            "completion_date": "-",
                            "seq": 1,
                            "percent_working": null,
                            "money_withdraw": "0.00",
                            "percent_withdraw": "25.00",
                            "progress_report": "-"
                        },
                        {
                            "no": 4,
                            "due_date": "7 พ.ค. 68",
                            "completion_date": "-",
                            "seq": 1,
                            "percent_working": null,
                            "money_withdraw": "0.00",
                            "percent_withdraw": "25.00",
                            "progress_report": "-"
                        }
                    ]
                }
            ]
        }
    ]
}

Response Parameters

Parameter name Type Description
cost_id text เลขที่ CoST
project_id text รหัสโครงการจัดซื้อจัดจ้าง
project_name text ชื่อโครงการจัดซื้อจัดจ้าง
status text สถานะโครงการ
stg_budget_name text ยุทธศาสตร์การจัดสรรงบประมาณ
stg_other_name text ยุทธศาสตร์อื่นๆ
budget_money numeric เงินงบประมาณ (บาท)
off_budget_money numeric เงินนอกงบประมาณ (บาท)
objective text วัตถุประสงค์โครงการ
detail text รายละเอียดโครงการ
bidder.name text ชื่อผู้เสนอราคา
contract.id text เลขที่คุมสัญญา
contract.value numeric มูลค่าสัญญา (บาท)
contract.start_date text วันที่เริ่มต้นสัญญา
contract.finish_date text วันที่สิ้นสุด
contract.period integer ระยะเวลาสัญญา (วัน)
contract.total_installment integer จำนวนงวดเงิน (งวด)
contract.project_finish_date text วันที่โครงการเสร็จสมบูรณ์
contract.winner_name text ชื่อบริษัทที่ได้รับสัญญา
installment.no integer งวดที่
installment.due_date text วันที่ครบกำหนด
installment.completion_date text วันที่ส่งมอบ
installment.seq integer ลำดับของงวด
installment.percent_working text ร้อยละผลงานที่ทำได้สะสม
installment.money_withdraw text จำนวนเงินเบิกจ่าย (บาท)
installment.percent_withdraw text ร้อยละเบิกจ่ายสะสม
installment.progress_report text ความคืบหน้า

Service Name : GFPerMonth (ข้อมูลการเบิกจ่ายรายเดือน)


1.ข้อมูลเบื้องต้น

รหัสบริการ: GFPERMONTH
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลการเบิกจ่ายรายเดือน

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/gf_per_month
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 12:57:58",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    summary: {
        total_amount: 35124.692381680004,
        dept_name: "สำนักนายกรัฐมนตรี"
    },
    result: [
        {
            month: "10",
            year: 2561,
            amount: 4966.07649968
        },
        {
            month: "11",
            year: 2561,
            amount: 4356.70934341
        },
        {
            month: "12",
            year: 2561,
            amount: 1056.89429055
        },
        {
            month: "01",
            year: 2562,
            amount: 7578.239354390001
        },
        {
            month: "02",
            year: 2562,
            amount: 1135.75658628
        },
        {
            month: "03",
            year: 2562,
            amount: 2710.44379777
        },
        {
            month: "04",
            year: 2562,
            amount: 2467.74873145
        },
        {
            month: "05",
            year: 2562,
            amount: 1932.4019081600002
        },
        {
            month: "06",
            year: 2562,
            amount: 1847.11892453
        },
        {
            month: "07",
            year: 2562,
            amount: 1433.29348134
        },
        {
            month: "08",
            year: 2562,
            amount: 1330.75634309
        },
        {
            month: "09",
            year: 2562,
            amount: 4309.253121029999
        }
    ]
}

Response Parameters

Parameter name Type Description
total_amount numeric จำนวนเงินเบิกจ่ายทั้งหมด​ (ล้านบาท)
dept_name text ชื่อหน่วยงาน
month text เดือนที่เบิกจ่าย
year integer ปี พ.ศ. ที่เบิกจ่าย
amount numeric จำนวนเงินเบิกจ่าย (ล้านบาท)

Service Name : GFStg (ข้อมูลการเบิกจ่ายในแต่ละยุทธศาสตร์)


1.ข้อมูลเบื้องต้น

รหัสบริการ: GFSTG
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลการเบิกจ่ายในแต่ละยุทธศาสตร์

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/gf_stg
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

3.ตัวอย่างการเรียกใช้งาน

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-19 09:10:01",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    summary: {
        dept_name: "สำนักนายกรัฐมนตรี",
        total_stg: 7,
        total_amount: 35015.70788499999,
        total_percent: 1.2557983584816852
    },
    result: [
        {
            stg_name: "ยุทธศาสตร์ด้านความมั่นคง",
            amount: 14583.07130141,
            percent: 0.5230051913294929
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการปรับสมดุลและพัฒนาระบบบริหารจัดการภาครัฐ",
            amount: 8853.519316349992,
            percent: 0.31752135529497705
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการพัฒนาและเสริมสร้างศักยภาพคน",
            amount: 5848.4262,
            percent: 0.20974712394169498
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการสร้างความสามารถในการแข่งขันของประเทศ",
            amount: 4478.66085789,
            percent: 0.1606220548790839
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการแก้ไขปัญหาความยากจน ลดความเหลื่อมล้ำ และสร้างการเติบโตจากภายใน",
            amount: 599.86643126,
            percent: 0.021513524220576383
        },
        {
            stg_name: "ยุทธศาสตร์ด้านการจัดการน้ำและสร้างการเติบโตบนคุณภาพชีวิตที่เป็นมิตรกับสิ่งแวดล้อมอย่างยั่งยืน",
            amount: 374.47956573000005,
            percent: 0.013430281788766086
        },
        {
            stg_name: "ไม่ระบุ",
            amount: 277.68421236,
            percent: 0.009958827027094037
        }
    ]
}

Response Parameters

Parameter name Type Description
dept_name text ชื่อหน่วยงาน
total_stg integer จำนวนยุทธศาสตร์
total_amount numeric การเบิกจ่าย (ล้านบาท)
total_percent numeric การเบิกจ่ายในทุกยุทธศาสตร์ของหน่วยงานที่เลือก เทียบกับการเบิกจ่ายทั้งประเทศของปีงบประมาณนั้น คิดเป็นเปอร์เซ็นต์
stg_name text ชื่อยุทธศาสตร์
amount numeric การเบิกจ่าย (ล้านบาท)
percent numeric การเบิกจ่ายในยุทธศาสตร์นี้ของหน่วยงานที่เลือก เทียบกับการเบิกจ่ายทั้งประเทศของปีงบประมาณนั้น คิดเป็นเปอร์เซ็นต์

Service Name : GFTransactionType (ข้อมูลการเบิกจ่าย จำแนกตามประเภทของการเบิกจ่าย)


1.ข้อมูลเบื้องต้น

รหัสบริการ: GFTRANSACTIONTYPE
ผู้เผยแพร่: THAILAND GOVERNMENT SPENDING
รายละเอียด: ข้อมูลการเบิกจ่าย จำแนกตามประเภทของการเบิกจ่าย

2.ข้อมูลการใช้งาน

URL: https://opend.data.go.th/govspending/gf_transaction_type
Service Type: REST/JSON
Method: GET

Parameters

Parameter name Type Required Max length Default value Description
api-key text yes 255 - API Key สำหรับยืนยันตัวตน สามารถลงทะเบียนขอรับได้ที่ https://opend.data.go.th/register_api
year integer yes 4 ปีปัจจุบัน ปีงบประมาณ พ.ศ. เช่น 2560
dept_id text no 5 - รหัสหน่วยงาน

ดูรหัสหน่วยงาน ระดับกระทรวง เพิ่มเติมที่ bbministry
ดูรหัสหน่วยงาน ระดับกรม เพิ่มเติมที่ bbagc

4.Response Fields

Simple Response:
{
    code: 200,
    status: true,
    msg: "",
    time: "2020-03-18 10:21:22",
    param_obj: {
        year: 2562,
        dept_id: "01000"
    },
    summary: {
        total_amount: 35015.707885,
        dept_name: "สำนักนายกรัฐมนตรี"
    },
    result: [
        {
            transaction_type_name: "รายจ่ายประจำ",
            amount: 26912.870639650002
        },
        {
            transaction_type_name: "รายจ่ายลงทุน",
            amount: 8102.837245350001
        }
    ]
}

Response Parameters

Parameter name Type Description
total_amount numeric จำนวนเงินเบิกจ่ายทั้งหมด​ (ล้านบาท)
dept_name text ชื่อหน่วยงาน
transaction_type_name text ชื่อประเภทการเบิกจ่าย
amount numeric จำนวนเงินเบิกจ่าย (ล้านบาท)
เว็บไซต์นี้ใช้คุกกี้ (Cookies)
ระบบข้อมูลการใช้จ่ายภาครัฐ ได้ให้ความสำคัญต่อข้อมูลส่วนบุคคลของท่าน ในการเข้าใช้บริการข้อมูลบนระบบเพื่อการปรับปรุงและการพัฒนาเว็บไซต์ หากท่านใช้บริการเว็บไซต์นี้ถือเป็นการอนุญาตและยินยอมที่จะรับคุกกี้บนเว็บไซต์ และ นโยบายความเป็นส่วนตัวของเรา