NAV

Download

javascript sdk javascript sdk

Oil (Crude Oil / Condensate)

Product Of Crude Oil (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-20T13:58:45.352Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-20T13:58:45.352Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-20T13:58:45.352Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-20T13:58:45.352Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-20T13:58:45.352Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/crude/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-20T13:58:45.352Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 30042.26301369863,
        "TANTAWAN": 24543.490410958904,
        "SIRIKIT": 25656.87671232877,
        "JUSMIN": 11854.627397260274,
        "MANORA": 7170.520547945205,
        "SONGKLA": 9102.882191780822,
        "NONGYAO": 8526.30410958904,
        "WASANA": 4480.361643835617,
        "BUALUANG": 8443.369863013699,
        "NASANUN": 1660.2602739726028,
        "OTHERS": 9767.024657534246,
        "TOTAL": 141247.9808219178
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 28302.144931506846,
        "TANTAWAN": 18790.038356164383,
        "SIRIKIT": 27036.239287671237,
        "JUSMIN": 11653.492684931507,
        "MANORA": 6397.212136986301,
        "SONGKLA": 6878.752356164385,
        "NONGYAO": 8545.562575342465,
        "WASANA": 4648.922876712329,
        "BUALUANG": 8135.50909589041,
        "NASANUN": 1265.8873698630136,
        "OTHERS": 7546.25693150685,
        "TOTAL": 129200.01860273973
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 25748.300465753426,
        "TANTAWAN": 20717.92356164383,
        "SIRIKIT": 30029.0974520548,
        "JUSMIN": 10808.166246575342,
        "MANORA": 5342.320438356165,
        "SONGKLA": 5605.629095890411,
        "NONGYAO": 7052.077369863015,
        "WASANA": 4370.165315068493,
        "BUALUANG": 6876.021753424658,
        "NASANUN": 730.9173698630136,
        "OTHERS": 8608.232739726029,
        "TOTAL": 125888.8518082192
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 24051.34991803279,
        "TANTAWAN": 17506.011612021855,
        "SIRIKIT": 29064.024043715843,
        "JUSMIN": 10514.90193989071,
        "MANORA": 6021.712295081967,
        "SONGKLA": 1126.6799453551912,
        "NONGYAO": 8439.842021857923,
        "WASANA": 1465.657267759563,
        "BUALUANG": 9752.461721311476,
        "NASANUN": 482.9468852459016,
        "OTHERS": 8603.089071038254,
        "TOTAL": 117028.6767213115
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 15930.867205479453,
        "TANTAWAN": 14803.938136986304,
        "SIRIKIT": 26477.072438356165,
        "JUSMIN": 9986.884767123287,
        "MANORA": 6738.423397260275,
        "SONGKLA": null,
        "NONGYAO": 9322.55989041096,
        "WASANA": null,
        "BUALUANG": 6940.3041369863,
        "NASANUN": 384.5298630136987,
        "OTHERS": 7035.819945205479,
        "TOTAL": 97620.3997808219
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(4 MTHS)",
        "ERAWAN": 8112.963916666666,
        "TANTAWAN": 11173.258166666667,
        "SIRIKIT": 24637.579083333334,
        "JUSMIN": 10028.293416666666,
        "MANORA": 4498.860583333333,
        "SONGKLA": null,
        "NONGYAO": 9944.139166666666,
        "WASANA": null,
        "BUALUANG": 5498.501916666666,
        "NASANUN": 392.16633333333334,
        "OTHERS": 5252.978083333334,
        "TOTAL": 79538.74066666666
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(4 MTHS)",
        "ERAWAN": 19836.6585,
        "TANTAWAN": 12908.261000000002,
        "SIRIKIT": 27610.204916666666,
        "JUSMIN": 10551.003250000002,
        "MANORA": 7286.279750000001,
        "SONGKLA": null,
        "NONGYAO": 8324.1315,
        "WASANA": null,
        "BUALUANG": 7836.365916666666,
        "NASANUN": 384.7195833333334,
        "OTHERS": 7923.662916666667,
        "TOTAL": 102661.28733333334
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 27324.23,
        "TANTAWAN": 19117.68,
        "SIRIKIT": 29917.66,
        "JUSMIN": 11467.05,
        "MANORA": 5654.7699999999995,
        "SONGKLA": 3159.0299999999997,
        "NONGYAO": 7425.5199999999995,
        "WASANA": 3996.13,
        "BUALUANG": 9309.650000000001,
        "NASANUN": 598.4000000000001,
        "OTHERS": 8703.560000000001,
        "TOTAL": 126673.68
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 27125.899999999998,
        "TANTAWAN": 18699.859999999997,
        "SIRIKIT": 31145.03,
        "JUSMIN": 11221.48,
        "MANORA": 5679.660000000001,
        "SONGKLA": 3069.66,
        "NONGYAO": 9368.210000000001,
        "WASANA": 4023.14,
        "BUALUANG": 10353.59,
        "NASANUN": 562.4499999999999,
        "OTHERS": 9221.09,
        "TOTAL": 130470.06999999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 27259.969999999998,
        "TANTAWAN": 19375.13,
        "SIRIKIT": 30256.31,
        "JUSMIN": 10649.73,
        "MANORA": 5273.9400000000005,
        "SONGKLA": 3037.42,
        "NONGYAO": 11119,
        "WASANA": 3577.68,
        "BUALUANG": 8014.2300000000005,
        "NASANUN": 534.8,
        "OTHERS": 8706.45,
        "TOTAL": 127804.66
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "ERAWAN": 25025.07,
        "TANTAWAN": 17533.4,
        "SIRIKIT": 28225.48,
        "JUSMIN": 11111.119999999999,
        "MANORA": 4999.15,
        "SONGKLA": 2979.33,
        "NONGYAO": 10952.17,
        "WASANA": 3445.06,
        "BUALUANG": 10934.369999999999,
        "NASANUN": 508.47,
        "OTHERS": 9171.640000000001,
        "TOTAL": 124885.26000000001
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "ERAWAN": 24091.35,
        "TANTAWAN": 17408.71,
        "SIRIKIT": 27509.04,
        "JUSMIN": 12310.539999999999,
        "MANORA": 3722.86,
        "SONGKLA": 1171.77,
        "NONGYAO": 9073,
        "WASANA": 2632.89,
        "BUALUANG": 10113.23,
        "NASANUN": 471.79,
        "OTHERS": 8819.03,
        "TOTAL": 117324.21
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "ERAWAN": 19273.1,
        "TANTAWAN": 16951.17,
        "SIRIKIT": 28124.33,
        "JUSMIN": 11871.03,
        "MANORA": 4850.1900000000005,
        "SONGKLA": 185,
        "NONGYAO": 8679.2,
        "WASANA": null,
        "BUALUANG": 11547.269999999999,
        "NASANUN": 487.82,
        "OTHERS": 8821.35,
        "TOTAL": 110790.46
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "ERAWAN": 24338.9,
        "TANTAWAN": 17385.9,
        "SIRIKIT": 28745.11,
        "JUSMIN": 11148.710000000001,
        "MANORA": 6518.549999999999,
        "SONGKLA": null,
        "NONGYAO": 8575.52,
        "WASANA": null,
        "BUALUANG": 10228.48,
        "NASANUN": 491.27000000000004,
        "OTHERS": 7744.03,
        "TOTAL": 115176.47
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "ERAWAN": 23664.29,
        "TANTAWAN": 17828.84,
        "SIRIKIT": 31295.56,
        "JUSMIN": 10425.859999999999,
        "MANORA": 7046.5199999999995,
        "SONGKLA": null,
        "NONGYAO": 8612.32,
        "WASANA": null,
        "BUALUANG": 9642.97,
        "NASANUN": 497.67,
        "OTHERS": 7410.959999999999,
        "TOTAL": 116424.99
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "ERAWAN": 23773.13,
        "TANTAWAN": 17535.63,
        "SIRIKIT": 30812.25,
        "JUSMIN": 9753.9,
        "MANORA": 7475.2,
        "SONGKLA": null,
        "NONGYAO": 7611.33,
        "WASANA": null,
        "BUALUANG": 9928.07,
        "NASANUN": 496,
        "OTHERS": 9483.09,
        "TOTAL": 116868.6
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "ERAWAN": 25042.449999999997,
        "TANTAWAN": 16086.81,
        "SIRIKIT": 27978.16,
        "JUSMIN": 9348.57,
        "MANORA": 7888.38,
        "SONGKLA": null,
        "NONGYAO": 7443.97,
        "WASANA": null,
        "BUALUANG": 9438.84,
        "NASANUN": 370.52000000000004,
        "OTHERS": 8267.05,
        "TOTAL": 111864.75
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "ERAWAN": 22393.3,
        "TANTAWAN": 16756.969999999998,
        "SIRIKIT": 28286.27,
        "JUSMIN": 8924.93,
        "MANORA": 7060.54,
        "SONGKLA": null,
        "NONGYAO": 5893.6,
        "WASANA": null,
        "BUALUANG": 9015.869999999999,
        "NASANUN": 358.53,
        "OTHERS": 8359.18,
        "TOTAL": 107049.18999999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "ERAWAN": 19317.68,
        "TANTAWAN": 15428.84,
        "SIRIKIT": 26581.29,
        "JUSMIN": 7978.63,
        "MANORA": 6078.34,
        "SONGKLA": null,
        "NONGYAO": 6564.0599999999995,
        "WASANA": null,
        "BUALUANG": 8619.68,
        "NASANUN": 420.15999999999997,
        "OTHERS": 8615.409999999998,
        "TOTAL": 99604.09
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 24051.34991803279,
        "TANTAWAN": 17506.011612021855,
        "SIRIKIT": 29064.024043715843,
        "JUSMIN": 10514.90193989071,
        "MANORA": 6021.712295081967,
        "SONGKLA": 1126.6799453551912,
        "NONGYAO": 8439.842021857923,
        "WASANA": 1465.657267759563,
        "BUALUANG": 9752.461721311476,
        "NASANUN": 482.9468852459016,
        "OTHERS": 8603.089071038254,
        "TOTAL": 117028.6767213115
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 20129.68,
        "TANTAWAN": 13933.650000000001,
        "SIRIKIT": 27414.449999999997,
        "JUSMIN": 10256.67,
        "MANORA": 6959.549999999999,
        "SONGKLA": null,
        "NONGYAO": 9022.349999999999,
        "WASANA": null,
        "BUALUANG": 8370.74,
        "NASANUN": 396.33,
        "OTHERS": 8204.24,
        "TOTAL": 104687.66
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 21480.57,
        "TANTAWAN": 11724.320000000002,
        "SIRIKIT": 28373.260000000002,
        "JUSMIN": 11213.02,
        "MANORA": 7550.58,
        "SONGKLA": null,
        "NONGYAO": 8903.25,
        "WASANA": null,
        "BUALUANG": 7961.29,
        "NASANUN": 379.09999999999997,
        "OTHERS": 7985.35,
        "TOTAL": 105570.73999999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 18997.579999999998,
        "TANTAWAN": 11629.81,
        "SIRIKIT": 27669.46,
        "JUSMIN": 11449.76,
        "MANORA": 7237.38,
        "SONGKLA": null,
        "NONGYAO": 7826.13,
        "WASANA": null,
        "BUALUANG": 7556.450000000001,
        "NASANUN": 386.12,
        "OTHERS": 8451.11,
        "TOTAL": 101203.8
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "ERAWAN": 18866.6,
        "TANTAWAN": 14274.769999999999,
        "SIRIKIT": 27039.07,
        "JUSMIN": 9308.55,
        "MANORA": 7427.75,
        "SONGKLA": null,
        "NONGYAO": 7576.73,
        "WASANA": null,
        "BUALUANG": 7456.83,
        "NASANUN": 376.52000000000004,
        "OTHERS": 7031.13,
        "TOTAL": 99357.95
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "ERAWAN": 17114.06,
        "TANTAWAN": 19283.260000000002,
        "SIRIKIT": 28786.239999999998,
        "JUSMIN": 10009.039999999999,
        "MANORA": 7220.67,
        "SONGKLA": null,
        "NONGYAO": 9180.97,
        "WASANA": null,
        "BUALUANG": 7131.03,
        "NASANUN": 361.65999999999997,
        "OTHERS": 7256.510000000001,
        "TOTAL": 106343.44
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "ERAWAN": 18381.33,
        "TANTAWAN": 17376,
        "SIRIKIT": 28986.41,
        "JUSMIN": 10067.99,
        "MANORA": 7562.3099999999995,
        "SONGKLA": null,
        "NONGYAO": 9941.730000000001,
        "WASANA": null,
        "BUALUANG": 7076.67,
        "NASANUN": 383.95,
        "OTHERS": 6880.49,
        "TOTAL": 106656.87999999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "ERAWAN": 12763.390000000001,
        "TANTAWAN": 15814.55,
        "SIRIKIT": 27713.39,
        "JUSMIN": 9611.09,
        "MANORA": 7358.99,
        "SONGKLA": null,
        "NONGYAO": 9618.900000000001,
        "WASANA": null,
        "BUALUANG": 6672.679999999999,
        "NASANUN": 429.22999999999996,
        "OTHERS": 6238.959999999999,
        "TOTAL": 96221.18000000001
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "ERAWAN": 13733.349999999999,
        "TANTAWAN": 15777.23,
        "SIRIKIT": 25758.829999999998,
        "JUSMIN": 9157.630000000001,
        "MANORA": 7015.46,
        "SONGKLA": null,
        "NONGYAO": 10515.55,
        "WASANA": null,
        "BUALUANG": 6479.87,
        "NASANUN": 441.25,
        "OTHERS": 7463.070000000001,
        "TOTAL": 96342.24
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "ERAWAN": 13787.4,
        "TANTAWAN": 14206.6,
        "SIRIKIT": 25822.83,
        "JUSMIN": 8849.81,
        "MANORA": 5514.820000000001,
        "SONGKLA": null,
        "NONGYAO": 9151.67,
        "WASANA": null,
        "BUALUANG": 6420.070000000001,
        "NASANUN": 410.35,
        "OTHERS": 7621.889999999999,
        "TOTAL": 91785.44
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "ERAWAN": 13062.32,
        "TANTAWAN": 14599,
        "SIRIKIT": 22895.96,
        "JUSMIN": 10503.17,
        "MANORA": 6338.9800000000005,
        "SONGKLA": null,
        "NONGYAO": 9882.48,
        "WASANA": null,
        "BUALUANG": 6048.320000000001,
        "NASANUN": 326.76,
        "OTHERS": 6802.8099999999995,
        "TOTAL": 90459.79999999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "ERAWAN": 11895.33,
        "TANTAWAN": 15361.6,
        "SIRIKIT": 23658.18,
        "JUSMIN": 10100.03,
        "MANORA": 5828.3,
        "SONGKLA": null,
        "NONGYAO": 9960.42,
        "WASANA": null,
        "BUALUANG": 6209.2,
        "NASANUN": 353.57,
        "OTHERS": 6392.170000000001,
        "TOTAL": 89758.8
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "ERAWAN": 11470.289999999999,
        "TANTAWAN": 13433.06,
        "SIRIKIT": 23777.329999999998,
        "JUSMIN": 9382.22,
        "MANORA": 4904.87,
        "SONGKLA": null,
        "NONGYAO": 10228.68,
        "WASANA": null,
        "BUALUANG": 5980,
        "NASANUN": 368.54999999999995,
        "OTHERS": 4186.98,
        "TOTAL": 83731.98
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 15930.867205479453,
        "TANTAWAN": 14803.938136986304,
        "SIRIKIT": 26477.072438356165,
        "JUSMIN": 9986.884767123287,
        "MANORA": 6738.423397260275,
        "SONGKLA": null,
        "NONGYAO": 9322.55989041096,
        "WASANA": null,
        "BUALUANG": 6940.3041369863,
        "NASANUN": 384.5298630136987,
        "OTHERS": 7035.819945205479,
        "TOTAL": 97620.3997808219
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 7544.0599999999995,
        "TANTAWAN": 12321.48,
        "SIRIKIT": 25489.579999999998,
        "JUSMIN": 9667.82,
        "MANORA": 5236.6900000000005,
        "SONGKLA": null,
        "NONGYAO": 10221.77,
        "WASANA": null,
        "BUALUANG": 5799.2300000000005,
        "NASANUN": 362.88,
        "OTHERS": 5888.480000000001,
        "TOTAL": 82531.98999999998
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 8489.460000000001,
        "TANTAWAN": 10874.429999999998,
        "SIRIKIT": 25277.56,
        "JUSMIN": 9730,
        "MANORA": 4456.08,
        "SONGKLA": null,
        "NONGYAO": 10150.89,
        "WASANA": null,
        "BUALUANG": 5883.32,
        "NASANUN": 389.90999999999997,
        "OTHERS": 5780.080000000001,
        "TOTAL": 81031.73
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 9294.03,
        "TANTAWAN": 10353.26,
        "SIRIKIT": 24322.93,
        "JUSMIN": 9410.09,
        "MANORA": 4132.44,
        "SONGKLA": null,
        "NONGYAO": 9218.609999999999,
        "WASANA": null,
        "BUALUANG": 5562.9400000000005,
        "NASANUN": 407.20000000000005,
        "OTHERS": 5748.25,
        "TOTAL": 78449.75
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 4,
        "period_name": "APR",
        "ERAWAN": 7129,
        "TANTAWAN": 11113,
        "SIRIKIT": 23485,
        "JUSMIN": 11318,
        "MANORA": 4155,
        "SONGKLA": null,
        "NONGYAO": 10214,
        "WASANA": null,
        "BUALUANG": 4762,
        "NASANUN": 409,
        "OTHERS": 3592.55,
        "TOTAL": 76177.55
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 8112.963916666667,
        "TANTAWAN": 11173.258166666667,
        "SIRIKIT": 24637.579083333334,
        "JUSMIN": 10028.293416666666,
        "MANORA": 4498.860583333333,
        "SONGKLA": null,
        "NONGYAO": 9944.139166666666,
        "WASANA": null,
        "BUALUANG": 5498.501916666666,
        "NASANUN": 392.16633333333334,
        "OTHERS": 5252.9780833333325,
        "TOTAL": 79538.74066666666
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -4.027207888587359,
        "TANTAWAN": -17.946352221564684,
        "SIRIKIT": -5.036863611288868,
        "JUSMIN": -9.037475379359066,
        "MANORA": -35.16536582217255,
        "SONGKLA": -23.11884469977335,
        "NONGYAO": -9.356685928182678,
        "WASANA": -41.25440917840135,
        "BUALUANG": -0.1673804655393614,
        "NASANUN": -21.008916850340917,
        "OTHERS": -17.014371426353105,
        "TOTAL": -13.623809066735221
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -5.79223369890054,
        "TANTAWAN": -23.44186567785627,
        "SIRIKIT": 5.376190527039686,
        "JUSMIN": -1.696676796229388,
        "MANORA": -10.784550518867215,
        "SONGKLA": -24.433248599269465,
        "NONGYAO": 0.22587120405153466,
        "WASANA": 3.7622238175489806,
        "BUALUANG": -3.646183598705969,
        "NASANUN": -23.753679485804334,
        "OTHERS": -22.737402677839096,
        "TOTAL": -8.529652706588335
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -9.023501476421316,
        "TANTAWAN": 10.260145130821268,
        "SIRIKIT": 11.069802025862128,
        "JUSMIN": -7.253846217702704,
        "MANORA": -16.48986583594976,
        "SONGKLA": -18.508054867436332,
        "NONGYAO": -17.476733594916062,
        "WASANA": -5.996175222441422,
        "BUALUANG": -15.481358666318418,
        "NASANUN": -42.26047377800216,
        "OTHERS": 14.07288166647568,
        "TOTAL": -2.5628222273725743
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -6.334617853809625,
        "TANTAWAN": -15.27156070712698,
        "SIRIKIT": -2.948626566679912,
        "JUSMIN": -2.4468198409529305,
        "MANORA": 13.025981999018041,
        "SONGKLA": -79.84585279546447,
        "NONGYAO": 20.006693529465913,
        "WASANA": -66.37031642588437,
        "BUALUANG": 42.22149296793527,
        "NASANUN": -33.74490094714527,
        "OTHERS": 0.21405599631535818,
        "TOTAL": -6.7834033376932705
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -33.94408089339752,
        "TANTAWAN": -15.666169166477953,
        "SIRIKIT": -9.14977681457127,
        "JUSMIN": -5.281111952767963,
        "MANORA": 11.59637118266067,
        "SONGKLA": -100,
        "NONGYAO": 10.157137908772274,
        "WASANA": -100,
        "BUALUANG": -29.02980031952085,
        "NASANUN": -20.595981320508592,
        "OTHERS": -18.440965384590243,
        "TOTAL": -16.81211810257051
    },
    {
        "section": "3.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(4 MTHS)",
        "ERAWAN": -59.101156494342696,
        "TANTAWAN": -13.44102690000873,
        "SIRIKIT": -10.76640264824304,
        "JUSMIN": -4.9541244652098335,
        "MANORA": -38.25572531258722,
        "SONGKLA": null,
        "NONGYAO": 19.461581867930196,
        "WASANA": null,
        "BUALUANG": -29.83352264125066,
        "NASANUN": 1.9356306054084698,
        "OTHERS": -33.70517980662457,
        "TOTAL": -22.523141163805533
    }
]

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude/current

Query Parameters

Parameter Type Default Description
date String

Quantity of crude oil production classified by sources in current year and 5 years ago (Unit: Barrels/Day)

ปริมาณการผลิตน้ำมันดิบจำแนกตามแหล่งผลิต ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: บาร์เรล/วัน)

Product Of Crude Oil (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/crude/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2000,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "TANTAWAN": 21647.677419354837,
        "SIRIKIT": 22328.709677419356,
        "OTHERS": 2766.9032258064517,
        "TOTAL": 46743.290322580644
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2000,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "TANTAWAN": 46.311839132337084,
        "SIRIKIT": 47.76880173245496,
        "OTHERS": 5.9193591352079515,
        "TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2000,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "TANTAWAN": 638.5521218524387,
        "SIRIKIT": -8.99349718772433,
        "OTHERS": 23.616815830054623,
        "TOTAL": 57.360033447540026
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of crude oil production classified by sources as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันดิบจำแนกตามแหล่งผลิต รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Product Of Crude Oil (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/crude/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 27239.135164835163,
        "TANTAWAN": 19072.231318681315,
        "SIRIKIT": 30424.164175824175,
        "JUSMIN": 11110.363736263736,
        "MANORA": 5532.968681318682,
        "SONGKLA": 3089.121868131868,
        "NONGYAO": 9302.837472527472,
        "WASANA": 3862.1886813186816,
        "BUALUANG": 9201.037252747254,
        "NASANUN": 565.2774725274726,
        "OTHERS": 8869.471648351648,
        "TOTAL": 128268.79747252745
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 21.235979210508486,
        "TANTAWAN": 14.868956203293477,
        "SIRIKIT": 23.719068686474905,
        "JUSMIN": 8.661782097585617,
        "MANORA": 4.313573363392395,
        "SONGKLA": 2.408319037054584,
        "NONGYAO": 7.252611434608598,
        "WASANA": 3.011011841867375,
        "BUALUANG": 7.173246677328465,
        "NASANUN": 0.4406975692186897,
        "OTHERS": 6.914753878667418,
        "TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 31.287406676993623,
        "TANTAWAN": -17.106242207992356,
        "SIRIKIT": 9.281031662594415,
        "JUSMIN": 7.38244277166041,
        "MANORA": 1.2052832076746818,
        "SONGKLA": -45.615739288697206,
        "NONGYAO": 33.868402730063494,
        "WASANA": -4.195915862193661,
        "BUALUANG": 16.87069274593699,
        "NASANUN": -34.08991608805565,
        "OTHERS": 42.414093470689636,
        "TOTAL": 7.762777369043058
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of crude oil production classified by sources as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันดิบจำแนกตามแหล่งผลิต รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Product Of Crude Oil (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/crude/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 24051.34991803279,
        "TANTAWAN": 17506.01161202186,
        "SIRIKIT": 29064.02404371585,
        "JUSMIN": 10514.90193989071,
        "MANORA": 6021.712295081968,
        "SONGKLA": 1126.6799453551912,
        "NONGYAO": 8439.842021857923,
        "WASANA": 1465.6572677595627,
        "BUALUANG": 9752.461721311476,
        "NASANUN": 482.9468852459016,
        "OTHERS": 8603.08907103825,
        "TOTAL": 117028.67672131145
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 20.551672113073572,
        "TANTAWAN": 14.958736698108744,
        "SIRIKIT": 24.834959138201686,
        "JUSMIN": 8.984893476092685,
        "MANORA": 5.1455014820187115,
        "SONGKLA": 0.9627383449256909,
        "NONGYAO": 7.211772582848481,
        "WASANA": 1.2523915580536167,
        "BUALUANG": 8.33339485204613,
        "NASANUN": 0.4126739691297858,
        "OTHERS": 7.351265785500921,
        "TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -6.334617853809625,
        "TANTAWAN": -15.271560707126977,
        "SIRIKIT": -2.948626566679862,
        "JUSMIN": -2.4468198409529425,
        "MANORA": 13.025981999018077,
        "SONGKLA": -79.84585279546448,
        "NONGYAO": 20.006693529465913,
        "WASANA": -66.37031642588438,
        "BUALUANG": 42.22149296793527,
        "NASANUN": -33.744900947145275,
        "OTHERS": 0.21405599631535827,
        "TOTAL": -6.783403337693287
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of crude oil production classified by sources as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันดิบจำแนกตามแหล่งผลิต รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Production of Condensate (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/condensate/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2017-12-01T14:14:15.917Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2017-12-01T14:14:15.917Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/condensate/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/condensate/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2017-12-01T14:14:15.917Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2017-12-01T14:14:15.917Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/condensate/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{date: "2017-12-01T14:14:15.917Z"}';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/condensate/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/condensate/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2017-12-01T14:14:15.917Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "Production of Condensate",
    "unitTitle": "Barrels/day",
    "footer": [
        {
            "line": "Source : Department of Mineral Fuels (DMF)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "Remark: Erawan consisted of KUNG_N, GOMIN, SOUTH GOMIN, JAKRAWAN, DARA, TRAT, South Trat, BAANPOT, "
        },
        {
            "line": "                S BAANPOT, PLADANG, PLATONG, south platong, SOUTHWEST PLATHONG, PLAMUK,"
        },
        {
            "line": "                PAKARANG, SOUTH PAKARANG, YALA, FUNAN, SOUTH SATUN, SATUN, SURAT, ERAWAN, KAPHONG"
        },
        {
            "line": "                Pailin consisted of PAILIN, NORTH PAILIN, MORAGOT"
        }
    ],
    "headers": [
        "ERAWAN",
        "BONGKOT",
        "PAILIN",
        "BONGKOT TAI",
        "ARTHIT",
        "PHUHOM",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        46752.08493150685,
        15035.120547945206,
        15927.479452054795,
        10878.060273972602,
        9730.74794520548,
        248.813698630137,
        null,
        98572.30684931506
    ],
    "rows": [
        {
            "year": 2017,
            "month": "YTD",
            "values": [
                46752.08493150685,
                15035.120547945206,
                15927.479452054795,
                10878.060273972602,
                9730.74794520548,
                248.813698630137,
                "",
                98572.30684931506
            ]
        },
        {
            "year": 2018,
            "month": "YTD",
            "values": [
                46324.26917808219,
                14274.58871232877,
                17504.606383561644,
                10259.051780821917,
                10386.41906849315,
                239.74350684931505,
                21.369287671232875,
                99010.04791780823
            ]
        },
        {
            "year": 2019,
            "month": "YTD",
            "values": [
                50560.67421917808,
                13414.83331506849,
                17397.896,
                9545.153260273972,
                10946.952657534248,
                273.56427397260273,
                193.01528767123284,
                102332.08901369861
            ]
        },
        {
            "year": 2020,
            "month": "YTD",
            "values": [
                39199.17103825137,
                11979.898032786887,
                13409.316502732243,
                9382.884426229508,
                10216.335710382513,
                282.11647540983614,
                365.0910382513661,
                84834.81322404371
            ]
        },
        {
            "year": 2021,
            "month": "YTD",
            "values": [
                27204.271999999994,
                13089.587780821917,
                16860.867808219176,
                9163.285506849315,
                12420.369835616439,
                258.0019726027397,
                552.2839452054795,
                79548.66884931506
            ]
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "values": [
                13748.458583333333,
                12487.334083333331,
                16425.294583333332,
                9802.799666666666,
                15969.975249999998,
                279.9883333333334,
                334.5534166666667,
                69048.40391666666
            ]
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "values": [
                33906.9085,
                11907.999416666667,
                17403.548499999997,
                9185.026833333335,
                11276.608166666667,
                288.92466666666667,
                957.3631666666665,
                84926.37925000001
            ]
        },
        {
            "year": 2020,
            "month": "JAN",
            "values": [
                44519.42,
                13814.53,
                15372.74,
                10438.24,
                9622.06,
                317.94,
                220.48999999999998,
                94305.42
            ]
        },
        {
            "year": 2020,
            "month": "FEB",
            "values": [
                45670.520000000004,
                11330.39,
                14729.34,
                10260.59,
                9992.550000000001,
                172.86999999999998,
                184.61999999999998,
                92340.88
            ]
        },
        {
            "year": 2020,
            "month": "MAR",
            "values": [
                45597.899999999994,
                13523.710000000001,
                15766.16,
                10074.859999999999,
                10776.81,
                289.79999999999995,
                269.57,
                96298.81
            ]
        },
        {
            "year": 2020,
            "month": "APR",
            "values": [
                39152.1,
                12257.69,
                10881.17,
                8171.86,
                9996.07,
                277.35999999999996,
                228.36,
                80964.61
            ]
        },
        {
            "year": 2020,
            "month": "MAY",
            "values": [
                40086.350000000006,
                11393.2,
                8931.55,
                8136.63,
                10111.45,
                291.61,
                215.56,
                79166.35
            ]
        },
        {
            "year": 2020,
            "month": "JUN",
            "values": [
                37533.4,
                10297.94,
                8816.769999999999,
                9496.84,
                10094.53,
                288.7,
                296.71,
                76824.88999999998
            ]
        },
        {
            "year": 2020,
            "month": "JUL",
            "values": [
                34752.26,
                12061.84,
                11401.55,
                10086.34,
                9894.55,
                325.34000000000003,
                280.68,
                78802.56
            ]
        },
        {
            "year": 2020,
            "month": "AUG",
            "values": [
                37982.32,
                11102.960000000001,
                13375.349999999999,
                9508.619999999999,
                10170.52,
                322.70000000000005,
                311.03000000000003,
                82773.5
            ]
        },
        {
            "year": 2020,
            "month": "SEP",
            "values": [
                41723.13,
                12688.54,
                13619.369999999999,
                9457.5,
                10259.130000000001,
                270.57,
                367.01,
                88385.25
            ]
        },
        {
            "year": 2020,
            "month": "OCT",
            "values": [
                34872.770000000004,
                13160.119999999999,
                15217.03,
                9802.650000000001,
                10649.390000000001,
                263.46,
                574.2099999999999,
                84539.62999999998
            ]
        },
        {
            "year": 2020,
            "month": "NOV",
            "values": [
                36188.329999999994,
                10864.94,
                16327.130000000001,
                8686.41,
                10736.93,
                292.47,
                617.91,
                83714.12000000001
            ]
        },
        {
            "year": 2020,
            "month": "DEC",
            "values": [
                32658.1,
                11162.609999999999,
                16430,
                8475.25,
                10284.74,
                265.54999999999995,
                804.9000000000001,
                80081.15
            ]
        },
        {
            "year": 2020,
            "month": "YTD",
            "values": [
                39199.17103825137,
                11979.898032786887,
                13409.316502732243,
                9382.884426229508,
                10216.335710382513,
                282.11647540983614,
                365.0910382513661,
                84834.81322404371
            ]
        },
        {
            "year": 2021,
            "month": "JAN",
            "values": [
                32363.61,
                11847.42,
                16709.16,
                9169.19,
                10981.52,
                281.72999999999996,
                964.1500000000001,
                82316.78
            ]
        },
        {
            "year": 2021,
            "month": "FEB",
            "values": [
                32963.64,
                11586.449999999999,
                17930.25,
                9546.75,
                10551.39,
                291.65999999999997,
                966.7700000000001,
                83836.91
            ]
        },
        {
            "year": 2021,
            "month": "MAR",
            "values": [
                35319.39,
                12268.91,
                18525.06,
                9098.03,
                11557.74,
                289.85,
                909.17,
                87968.15000000001
            ]
        },
        {
            "year": 2021,
            "month": "APR",
            "values": [
                34922.47,
                11897.769999999999,
                16470.6,
                8953.68,
                11967.9,
                292.85,
                991.37,
                85496.64
            ]
        },
        {
            "year": 2021,
            "month": "MAY",
            "values": [
                35155.61,
                13592.53,
                14308.42,
                10039.42,
                12892.900000000001,
                288.47999999999996,
                378.54,
                86655.90000000001
            ]
        },
        {
            "year": 2021,
            "month": "JUN",
            "values": [
                33309.27,
                13708.59,
                16838.4,
                9574.2,
                13355.7,
                264.15,
                414.9,
                87465.20999999999
            ]
        },
        {
            "year": 2021,
            "month": "JUL",
            "values": [
                26125.1,
                11546.890000000001,
                14707.45,
                8070.51,
                11905.58,
                105.51,
                304.47999999999996,
                72765.52
            ]
        },
        {
            "year": 2021,
            "month": "AUG",
            "values": [
                21664.19,
                14981.32,
                18095.84,
                9444.609999999999,
                12794.06,
                268.63,
                326.74,
                77575.39000000001
            ]
        },
        {
            "year": 2021,
            "month": "SEP",
            "values": [
                22121.27,
                15159.81,
                17611.23,
                9707.68,
                13274.269999999999,
                273.32,
                410.79,
                78558.37000000002
            ]
        },
        {
            "year": 2021,
            "month": "OCT",
            "values": [
                20111.94,
                14316.78,
                17600,
                7047.24,
                11830.45,
                225.85999999999999,
                286.92,
                71419.19
            ]
        },
        {
            "year": 2021,
            "month": "NOV",
            "values": [
                17332.2,
                13375.66,
                17056.37,
                9679.730000000001,
                13003.47,
                291.25,
                339.1,
                71077.78
            ]
        },
        {
            "year": 2021,
            "month": "DEC",
            "values": [
                15583.42,
                12704.99,
                16598.32,
                9706.210000000001,
                14810.52,
                228.88,
                372.88,
                70005.22
            ]
        },
        {
            "year": 2021,
            "month": "YTD",
            "values": [
                27204.271999999994,
                13089.587780821917,
                16860.867808219176,
                9163.285506849315,
                12420.369835616439,
                258.0019726027397,
                552.2839452054795,
                79548.66884931506
            ]
        },
        {
            "year": 2022,
            "month": "JAN",
            "values": [
                14964.16,
                11435.7,
                16862.23,
                9819.99,
                15018.099999999999,
                293.18,
                400.92,
                68794.28
            ]
        },
        {
            "year": 2022,
            "month": "FEB",
            "values": [
                14163.61,
                11976.15,
                15712.61,
                9875.58,
                16019.929999999998,
                226.06,
                467.44,
                68441.38
            ]
        },
        {
            "year": 2022,
            "month": "MAR",
            "values": [
                13686.289999999999,
                12726.49,
                16644.94,
                9976.130000000001,
                16442.19,
                296.14,
                245.47,
                70017.65
            ]
        },
        {
            "year": 2022,
            "month": "APR",
            "values": [
                12169,
                13804,
                16412,
                9538,
                16419,
                300,
                234,
                68876
            ]
        },
        {
            "year": 2022,
            "month": "YTD",
            "values": [
                13748.458583333333,
                12487.334083333331,
                16425.294583333332,
                9802.799666666666,
                15969.975249999998,
                279.9883333333334,
                334.5534166666667,
                69048.40391666666
            ]
        }
    ],
    "growths": [
        {
            "year": 2017,
            "month": "",
            "values": [
                4.847128374176577,
                -3.9744554948076813,
                12.965890638820952,
                3.1253166100345884,
                2.872010842628723,
                -36.74793407136813,
                "",
                4.035915113517026
            ]
        },
        {
            "year": 2018,
            "month": "",
            "values": [
                -0.9150731011278319,
                -5.058368725353354,
                9.901924132153788,
                -5.690430808071143,
                6.738136954937069,
                -3.6453747646365877,
                "",
                0.44408118515712514
            ]
        },
        {
            "year": 2019,
            "month": "",
            "values": [
                9.145109283451573,
                -6.022978417008395,
                -0.609613156807995,
                -6.958718366959546,
                5.396793498747393,
                14.107062822162227,
                803.2368820186182,
                3.3552565277497246
            ]
        },
        {
            "year": 2020,
            "month": "",
            "values": [
                -22.258619699165404,
                -10.4519647088023,
                -22.71448020976568,
                -1.4306978384330586,
                -6.418471041964248,
                3.4087504015985703,
                89.6695811446833,
                -16.87139567875376
            ]
        },
        {
            "year": 2021,
            "month": "",
            "values": [
                -30.78949715160004,
                8.96439889601219,
                25.396397795233224,
                -2.6072496203338797,
                21.2414582884076,
                -8.797581280374562,
                50.85962540071599,
                -6.487301916898781
            ]
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "values": [
                -59.452338206140695,
                4.865088134416735,
                -5.621002617176978,
                6.725868574399533,
                41.62037923075834,
                -3.0929631022619315,
                -65.05470146386455,
                -18.696164223124285
            ]
        }
    ],
    "gHeaders": [
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        ""
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/condensate/current

Query Parameters

Parameter Type Default Description
date String

Quantity of condensate production classified by sources in current year and 5 years ago (Unit: Barrels/Day)

ปริมาณการผลิตคอนเดนเสทจำแนกตามแหล่งผลิต ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: บาร์เรล/วัน)

Production of Condensate (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/condensate/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/condensate/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/condensate/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/condensate/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/condensate/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/condensate/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "Production of Condensate",
    "unitTitle": "Barrels/day",
    "footer": [
        {
            "line": "Source : Department of Mineral Fuels (DMF)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "Remark: Erawan consisted of KUNG_N, GOMIN, SOUTH GOMIN, JAKRAWAN, DARA, TRAT, South Trat, BAANPOT, "
        },
        {
            "line": "                S BAANPOT, PLADANG, PLATONG, south platong, SOUTHWEST PLATHONG, PLAMUK,"
        },
        {
            "line": "                PAKARANG, SOUTH PAKARANG, YALA, FUNAN, SOUTH SATUN, SATUN, SURAT, ERAWAN, KAPHONG"
        },
        {
            "line": "                Pailin consisted of PAILIN, NORTH PAILIN, MORAGOT"
        }
    ],
    "headers": [
        "ERAWAN",
        "BONGKOT",
        "PAILIN",
        "TOTAL"
    ],
    "gHeaders": [
        "GROWTH_ERAWAN",
        "GROWTH_BONGKOT",
        "GROWTH_PAILIN",
        "GROWTH_TOTAL"
    ],
    "sHeaders": [
        "SHARE_ERAWAN",
        "SHARE_BONGKOT",
        "SHARE_PAILIN",
        "SHARE_TOTAL"
    ],
    "showHeaders": [
        "ERAWAN",
        "BONGKOT",
        "PAILIN",
        "TOTAL"
    ],
    "showGheaders": [
        "",
        "",
        "",
        ""
    ],
    "showSheaders": [
        "",
        "",
        "",
        ""
    ],
    "values": [
        30039.16129032258,
        13321.677419354839,
        10967.387096774193,
        54328.22580645161
    ],
    "rows": [
        {
            "year": 2000,
            "month": "JAN",
            "values": [
                30039.16129032258,
                13321.677419354839,
                10967.387096774193,
                54328.22580645161
            ]
        }
    ],
    "shares": [
        {
            "year": 2000,
            "month": "JAN",
            "unit": "SHARE (%)",
            "values": [
                55.291997565573645,
                24.52072973414283,
                20.187272700283522,
                100
            ]
        }
    ],
    "growths": [
        {
            "year": 2000,
            "month": "JAN",
            "unit": "GROWTH RATE (%)",
            "values": [
                -4.426371848899052,
                -3.0463812484152997,
                "",
                20.273300530604374
            ]
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/condensate/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of condensate production classified by sources as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตคอนเดนเสทจำแนกตามแหล่งผลิต รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Production of Condensate (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/condensate/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "Production of Condensate",
    "unitTitle": "Barrels/day",
    "footer": [
        {
            "line": "Source : Department of Mineral Fuels (DMF)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "Remark: Erawan consisted of KUNG_N, GOMIN, SOUTH GOMIN, JAKRAWAN, DARA, TRAT, South Trat, BAANPOT, "
        },
        {
            "line": "                S BAANPOT, PLADANG, PLATONG, south platong, SOUTHWEST PLATHONG, PLAMUK,"
        },
        {
            "line": "                PAKARANG, SOUTH PAKARANG, YALA, FUNAN, SOUTH SATUN, SATUN, SURAT, ERAWAN, KAPHONG"
        },
        {
            "line": "                Pailin consisted of PAILIN, NORTH PAILIN, MORAGOT"
        }
    ],
    "headers": [
        "ERAWAN",
        "BONGKOT",
        "PAILIN",
        "BONGKOT TAI",
        "ARTHIT",
        "PHUHOM",
        "OTHERS",
        "TOTAL"
    ],
    "showGheaders": [
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        ""
    ],
    "showSheaders": [
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        ""
    ],
    "values": [
        45253.64835164835,
        12923.810439560439,
        15301.722637362638,
        10257.837472527472,
        10133.504615384616,
        262.1227472527472,
        225.7784615384615,
        94358.42472527474
    ],
    "rows": [
        {
            "year": 2020,
            "unit": "Barrels/day",
            "month": "Q1",
            "values": [
                45253.64835164835,
                12923.810439560439,
                15301.722637362638,
                10257.837472527472,
                10133.504615384616,
                262.1227472527472,
                225.7784615384615,
                94358.42472527474
            ]
        }
    ],
    "shares": [
        {
            "year": 2020,
            "unit": "SHARE (%)",
            "month": "Q1",
            "values": [
                47.95930886235615,
                13.696509323028874,
                16.21659399456245,
                10.871141079763934,
                10.73937451254447,
                0.27779474701482093,
                0.23927748072926944,
                100
            ]
        }
    ],
    "growths": [
        {
            "year": 2020,
            "unit": "GROWTH RATE (%)",
            "month": "Q1",
            "values": [
                -10.94664377958811,
                -6.018229414893119,
                -12.765854704660681,
                61.11993139179069,
                -11.456393334061922,
                -16.43251026499811,
                997.6631869129917,
                -5.880806922551087
            ]
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/condensate/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of condensate production classified by sources as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตคอนเดนเสทจำแนกตามแหล่งผลิต รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Production of Condensate (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/condensate/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/condensate/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/condensate/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/condensate/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/condensate/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/condensate/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "Production of Condensate",
    "unitTitle": "Barrels/day",
    "footer": [
        {
            "line": "Source : Department of Mineral Fuels (DMF)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "Remark: Erawan consisted of KUNG_N, GOMIN, SOUTH GOMIN, JAKRAWAN, DARA, TRAT, South Trat, BAANPOT, "
        },
        {
            "line": "                S BAANPOT, PLADANG, PLATONG, south platong, SOUTHWEST PLATHONG, PLAMUK,"
        },
        {
            "line": "                PAKARANG, SOUTH PAKARANG, YALA, FUNAN, SOUTH SATUN, SATUN, SURAT, ERAWAN, KAPHONG"
        },
        {
            "line": "                Pailin consisted of PAILIN, NORTH PAILIN, MORAGOT"
        }
    ],
    "headers": [
        "ERAWAN",
        "BONGKOT",
        "PAILIN",
        "BONGKOT TAI",
        "ARTHIT",
        "PHUHOM",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        39199.17103825137,
        11979.898032786887,
        13409.31650273224,
        9382.884426229508,
        10216.335710382513,
        282.1164754098361,
        365.09103825136606,
        84834.8132240437
    ],
    "rows": [
        {
            "year": 2020,
            "unit": "Barrels/day",
            "values": [
                39199.17103825137,
                11979.898032786887,
                13409.31650273224,
                9382.884426229508,
                10216.335710382513,
                282.1164754098361,
                365.09103825136606,
                84834.8132240437
            ]
        }
    ],
    "shares": [
        {
            "year": 2020,
            "unit": "SHARE (%)",
            "values": [
                46.20646825110428,
                14.121440924433568,
                15.806384187254627,
                11.060181627853495,
                12.042621798909108,
                0.3325480008599574,
                0.43035520958498763,
                100
            ]
        }
    ],
    "growths": [
        {
            "year": 2020,
            "unit": "GROWTH RATE (%)",
            "values": [
                -22.258619699165404,
                -10.451964708802318,
                -22.714480209765693,
                -1.430697838433085,
                -6.418471041964239,
                3.4087504015985557,
                89.66958114468326,
                -16.8713956787538
            ]
        }
    ],
    "sHeaders": [
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        ""
    ],
    "gHeaders": [
        "",
        "",
        "",
        "",
        "",
        "",
        ""
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/condensate/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of condensate production classified by sources as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตคอนเดนเสทจำแนกตามแหล่งผลิต รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Import of Crude Oil Classified by Sources (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/current' \
--header 'Content-Type: application/json' \
--data-raw '{date: "2021-11-22T13:29:39.012Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-11-22T13:29:39.012Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude-import/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{date: "2021-11-22T13:29:39.012Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{date: \"2021-11-22T13:29:39.012Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude-import/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{date: "2021-11-22T13:29:39.012Z"}';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/crude-import/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude-import/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{date: ""2021-11-22T13:29:39.012Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "IMPORT OF CRUDE OIL CLASSIFIED BY SOURCES",
    "unitTitle": "Million Litres",
    "footer": [
        {
            "line": "SOURCE : DEPARTMENT OF ENERGY BUSINESS"
        },
        {
            "line": "COMPILED BY : ENERGY POLICY AND PLANNING OFFICE"
        }
    ],
    "headers": [
        "MIDDLE EAST",
        "FAREAST",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        32470.843,
        10484.484,
        9678.348,
        52633.675
    ],
    "rows": [
        {
            "section": "1.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2017,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 10484.484,
            "MIDDLE EAST": 32470.843,
            "OTHERS": 9678.348,
            "TOTAL": 52633.675,
            "year": 2017,
            "month": "",
            "fe": 10484.484,
            "me": 32470.843,
            "others": 9678.348,
            "total": 52633.675
        },
        {
            "section": "1.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2018,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 8233.826,
            "MIDDLE EAST": 33417.446,
            "OTHERS": 13540.895,
            "TOTAL": 55192.167,
            "year": 2018,
            "month": "",
            "fe": 8233.826,
            "me": 33417.446,
            "others": 13540.895,
            "total": 55192.167
        },
        {
            "section": "1.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2019,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 7337.377,
            "MIDDLE EAST": 28480.363,
            "OTHERS": 13870.203,
            "TOTAL": 49687.943,
            "year": 2019,
            "month": "",
            "fe": 7337.377,
            "me": 28480.363,
            "others": 13870.203,
            "total": 49687.943
        },
        {
            "section": "1.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 6708.522,
            "MIDDLE EAST": 26201.552,
            "OTHERS": 15774.968,
            "TOTAL": 48685.042,
            "year": 2020,
            "month": "",
            "fe": 6708.522,
            "me": 26201.552,
            "others": 15774.968,
            "total": 48685.042
        },
        {
            "section": "1.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 7793.567,
            "MIDDLE EAST": 27158.741,
            "OTHERS": 15140.334,
            "TOTAL": 50092.642,
            "year": 2021,
            "month": "",
            "fe": 7793.567,
            "me": 27158.741,
            "others": 15140.334,
            "total": 50092.642
        },
        {
            "section": "1.2",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 90,
            "period_name": "(4 MTHS)",
            "FAREAST": 2166.292,
            "MIDDLE EAST": 10625.251,
            "OTHERS": 5364.863,
            "TOTAL": 18156.406,
            "year": 2022,
            "month": "(4 MTHS)",
            "fe": 2166.292,
            "me": 10625.251,
            "others": 5364.863,
            "total": 18156.406
        },
        {
            "section": "1.2",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 90,
            "period_name": "(4 MTHS)",
            "FAREAST": 2651.385,
            "MIDDLE EAST": 8320.186,
            "OTHERS": 5675.349,
            "TOTAL": 16646.92,
            "year": 2021,
            "month": "(4 MTHS)",
            "fe": 2651.385,
            "me": 8320.186,
            "others": 5675.349,
            "total": 16646.92
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 594.199,
            "MIDDLE EAST": 2645.361,
            "OTHERS": 1589.024,
            "TOTAL": 4828.584,
            "year": 2020,
            "month": "JAN",
            "fe": 594.199,
            "me": 2645.361,
            "others": 1589.024,
            "total": 4828.584
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": 498.861,
            "MIDDLE EAST": 2124.289,
            "OTHERS": 1448.762,
            "TOTAL": 4071.912,
            "year": 2020,
            "month": "FEB",
            "fe": 498.861,
            "me": 2124.289,
            "others": 1448.762,
            "total": 4071.912
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 601.126,
            "MIDDLE EAST": 2144.589,
            "OTHERS": 1889.201,
            "TOTAL": 4634.916,
            "year": 2020,
            "month": "MAR",
            "fe": 601.126,
            "me": 2144.589,
            "others": 1889.201,
            "total": 4634.916
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": 433.279,
            "MIDDLE EAST": 2740.796,
            "OTHERS": 1041.342,
            "TOTAL": 4215.417,
            "year": 2020,
            "month": "APR",
            "fe": 433.279,
            "me": 2740.796,
            "others": 1041.342,
            "total": 4215.417
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 5,
            "period_name": "MAY",
            "FAREAST": 282.771,
            "MIDDLE EAST": 1435.499,
            "OTHERS": 1272.016,
            "TOTAL": 2990.286,
            "year": 2020,
            "month": "MAY",
            "fe": 282.771,
            "me": 1435.499,
            "others": 1272.016,
            "total": 2990.286
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 6,
            "period_name": "JUN",
            "FAREAST": 478.391,
            "MIDDLE EAST": 2881.099,
            "OTHERS": 1257.491,
            "TOTAL": 4616.981,
            "year": 2020,
            "month": "JUN",
            "fe": 478.391,
            "me": 2881.099,
            "others": 1257.491,
            "total": 4616.981
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 7,
            "period_name": "JUL",
            "FAREAST": 758.226,
            "MIDDLE EAST": 2248.502,
            "OTHERS": 1139.034,
            "TOTAL": 4145.762,
            "year": 2020,
            "month": "JUL",
            "fe": 758.226,
            "me": 2248.502,
            "others": 1139.034,
            "total": 4145.762
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 8,
            "period_name": "AUG",
            "FAREAST": 575.315,
            "MIDDLE EAST": 2036.44,
            "OTHERS": 1112.971,
            "TOTAL": 3724.726,
            "year": 2020,
            "month": "AUG",
            "fe": 575.315,
            "me": 2036.44,
            "others": 1112.971,
            "total": 3724.726
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 9,
            "period_name": "SEP",
            "FAREAST": 489.102,
            "MIDDLE EAST": 1977.674,
            "OTHERS": 1103.03,
            "TOTAL": 3569.806,
            "year": 2020,
            "month": "SEP",
            "fe": 489.102,
            "me": 1977.674,
            "others": 1103.03,
            "total": 3569.806
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 10,
            "period_name": "OCT",
            "FAREAST": 413.204,
            "MIDDLE EAST": 1997.268,
            "OTHERS": 1536.506,
            "TOTAL": 3946.978,
            "year": 2020,
            "month": "OCT",
            "fe": 413.204,
            "me": 1997.268,
            "others": 1536.506,
            "total": 3946.978
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 11,
            "period_name": "NOV",
            "FAREAST": 685.956,
            "MIDDLE EAST": 2207.022,
            "OTHERS": 1254.272,
            "TOTAL": 4147.25,
            "year": 2020,
            "month": "NOV",
            "fe": 685.956,
            "me": 2207.022,
            "others": 1254.272,
            "total": 4147.25
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 12,
            "period_name": "DEC",
            "FAREAST": 898.092,
            "MIDDLE EAST": 1763.013,
            "OTHERS": 1131.319,
            "TOTAL": 3792.424,
            "year": 2020,
            "month": "DEC",
            "fe": 898.092,
            "me": 1763.013,
            "others": 1131.319,
            "total": 3792.424
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 6708.522,
            "MIDDLE EAST": 26201.552,
            "OTHERS": 15774.968,
            "TOTAL": 48685.042,
            "year": 2020,
            "month": "YTD",
            "fe": 6708.522,
            "me": 26201.552,
            "others": 15774.968,
            "total": 48685.042
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 575.948,
            "MIDDLE EAST": 2369.486,
            "OTHERS": 1505.924,
            "TOTAL": 4451.358,
            "year": 2021,
            "month": "JAN",
            "fe": 575.948,
            "me": 2369.486,
            "others": 1505.924,
            "total": 4451.358
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": 566.379,
            "MIDDLE EAST": 2060.582,
            "OTHERS": 1278.235,
            "TOTAL": 3905.196,
            "year": 2021,
            "month": "FEB",
            "fe": 566.379,
            "me": 2060.582,
            "others": 1278.235,
            "total": 3905.196
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 607.285,
            "MIDDLE EAST": 1943.532,
            "OTHERS": 1676.728,
            "TOTAL": 4227.545,
            "year": 2021,
            "month": "MAR",
            "fe": 607.285,
            "me": 1943.532,
            "others": 1676.728,
            "total": 4227.545
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": 901.773,
            "MIDDLE EAST": 1946.586,
            "OTHERS": 1214.462,
            "TOTAL": 4062.821,
            "year": 2021,
            "month": "APR",
            "fe": 901.773,
            "me": 1946.586,
            "others": 1214.462,
            "total": 4062.821
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 5,
            "period_name": "MAY",
            "FAREAST": 763.199,
            "MIDDLE EAST": 2067.404,
            "OTHERS": 1606.459,
            "TOTAL": 4437.062,
            "year": 2021,
            "month": "MAY",
            "fe": 763.199,
            "me": 2067.404,
            "others": 1606.459,
            "total": 4437.062
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 6,
            "period_name": "JUN",
            "FAREAST": 991.909,
            "MIDDLE EAST": 2375.384,
            "OTHERS": 877.549,
            "TOTAL": 4244.842,
            "year": 2021,
            "month": "JUN",
            "fe": 991.909,
            "me": 2375.384,
            "others": 877.549,
            "total": 4244.842
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 7,
            "period_name": "JUL",
            "FAREAST": 542.494,
            "MIDDLE EAST": 1901.85,
            "OTHERS": 1289.089,
            "TOTAL": 3733.433,
            "year": 2021,
            "month": "JUL",
            "fe": 542.494,
            "me": 1901.85,
            "others": 1289.089,
            "total": 3733.433
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 8,
            "period_name": "AUG",
            "FAREAST": 882.435,
            "MIDDLE EAST": 2158.885,
            "OTHERS": 1436.19,
            "TOTAL": 4477.51,
            "year": 2021,
            "month": "AUG",
            "fe": 882.435,
            "me": 2158.885,
            "others": 1436.19,
            "total": 4477.51
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 9,
            "period_name": "SEP",
            "FAREAST": 232.021,
            "MIDDLE EAST": 2490.596,
            "OTHERS": 810.441,
            "TOTAL": 3533.058,
            "year": 2021,
            "month": "SEP",
            "fe": 232.021,
            "me": 2490.596,
            "others": 810.441,
            "total": 3533.058
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 10,
            "period_name": "OCT",
            "FAREAST": 670.506,
            "MIDDLE EAST": 2454.162,
            "OTHERS": 930.782,
            "TOTAL": 4055.45,
            "year": 2021,
            "month": "OCT",
            "fe": 670.506,
            "me": 2454.162,
            "others": 930.782,
            "total": 4055.45
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 11,
            "period_name": "NOV",
            "FAREAST": 546.84,
            "MIDDLE EAST": 2262.121,
            "OTHERS": 922.791,
            "TOTAL": 3731.752,
            "year": 2021,
            "month": "NOV",
            "fe": 546.84,
            "me": 2262.121,
            "others": 922.791,
            "total": 3731.752
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 12,
            "period_name": "DEC",
            "FAREAST": 512.778,
            "MIDDLE EAST": 3128.153,
            "OTHERS": 1591.684,
            "TOTAL": 5232.615,
            "year": 2021,
            "month": "DEC",
            "fe": 512.778,
            "me": 3128.153,
            "others": 1591.684,
            "total": 5232.615
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2021,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 7793.567,
            "MIDDLE EAST": 27158.741,
            "OTHERS": 15140.334,
            "TOTAL": 50092.642,
            "year": 2021,
            "month": "YTD",
            "fe": 7793.567,
            "me": 27158.741,
            "others": 15140.334,
            "total": 50092.642
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 420.509,
            "MIDDLE EAST": 2731.278,
            "OTHERS": 1414.917,
            "TOTAL": 4566.704,
            "year": 2022,
            "month": "JAN",
            "fe": 420.509,
            "me": 2731.278,
            "others": 1414.917,
            "total": 4566.704
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": 482.862,
            "MIDDLE EAST": 2440.678,
            "OTHERS": 1423.334,
            "TOTAL": 4346.874,
            "year": 2022,
            "month": "FEB",
            "fe": 482.862,
            "me": 2440.678,
            "others": 1423.334,
            "total": 4346.874
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 684.36,
            "MIDDLE EAST": 3025.839,
            "OTHERS": 1287.875,
            "TOTAL": 4998.074,
            "year": 2022,
            "month": "MAR",
            "fe": 684.36,
            "me": 3025.839,
            "others": 1287.875,
            "total": 4998.074
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": 578.561,
            "MIDDLE EAST": 2427.456,
            "OTHERS": 1238.737,
            "TOTAL": 4244.754,
            "year": 2022,
            "month": "APR",
            "fe": 578.561,
            "me": 2427.456,
            "others": 1238.737,
            "total": 4244.754
        },
        {
            "section": "2.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2022,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 2166.292,
            "MIDDLE EAST": 10625.251,
            "OTHERS": 5364.863,
            "TOTAL": 18156.406,
            "year": 2022,
            "month": "YTD",
            "fe": 2166.292,
            "me": 10625.251,
            "others": 5364.863,
            "total": 18156.406
        }
    ],
    "shares": [
        {
            "section": "3.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2017,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 19.919726296900226,
            "MIDDLE EAST": 61.69214481033293,
            "OTHERS": 18.388128892766844,
            "TOTAL": 100,
            "year": 2017,
            "month": "",
            "fe": 19.919726296900226,
            "me": 61.69214481033293,
            "others": 18.388128892766844,
            "total": 100
        },
        {
            "section": "3.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2018,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 14.91846841237453,
            "MIDDLE EAST": 60.547443263099275,
            "OTHERS": 24.534088324526195,
            "TOTAL": 100,
            "year": 2018,
            "month": "",
            "fe": 14.91846841237453,
            "me": 60.547443263099275,
            "others": 24.534088324526195,
            "total": 100
        },
        {
            "section": "3.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2019,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 14.766916392574354,
            "MIDDLE EAST": 57.31845852423394,
            "OTHERS": 27.914625083191712,
            "TOTAL": 100,
            "year": 2019,
            "month": "",
            "fe": 14.766916392574354,
            "me": 57.31845852423394,
            "others": 27.914625083191712,
            "total": 100
        },
        {
            "section": "3.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 13.779431473017933,
            "MIDDLE EAST": 53.81848494656737,
            "OTHERS": 32.4020835804147,
            "TOTAL": 100,
            "year": 2020,
            "month": "",
            "fe": 13.779431473017933,
            "me": 53.81848494656737,
            "others": 32.4020835804147,
            "total": 100
        },
        {
            "section": "3.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2021,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 15.55830694655714,
            "MIDDLE EAST": 54.21702652457421,
            "OTHERS": 30.224666528868653,
            "TOTAL": 100,
            "year": 2021,
            "month": "",
            "fe": 15.55830694655714,
            "me": 54.21702652457421,
            "others": 30.224666528868653,
            "total": 100
        },
        {
            "section": "3.2",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2022,
            "period_no": 90,
            "period_name": "(4 MTHS)",
            "FAREAST": 11.93128199490582,
            "MIDDLE EAST": 58.520673089156524,
            "OTHERS": 29.54804491593766,
            "TOTAL": 100,
            "year": 2022,
            "month": "(4 MTHS)",
            "fe": 11.93128199490582,
            "me": 58.520673089156524,
            "others": 29.54804491593766,
            "total": 100
        }
    ],
    "growths": [
        {
            "section": "4.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2017,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 8.97364433388673,
            "MIDDLE EAST": -0.954829223502662,
            "OTHERS": 34.68514617363489,
            "TOTAL": 6.135757009280215,
            "year": 2017,
            "month": "",
            "fe": 8.97364433388673,
            "me": -0.954829223502662,
            "others": 34.68514617363489,
            "total": 6.135757009280215
        },
        {
            "section": "4.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2018,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": -21.466559536930966,
            "MIDDLE EAST": 2.915239989303643,
            "OTHERS": 39.909155984058444,
            "TOTAL": 4.860941213016188,
            "year": 2018,
            "month": "",
            "fe": -21.466559536930966,
            "me": 2.915239989303643,
            "others": 39.909155984058444,
            "total": 4.860941213016188
        },
        {
            "section": "4.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2019,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": -10.887393053970278,
            "MIDDLE EAST": -14.773968662955278,
            "OTHERS": 2.4319515068981707,
            "TOTAL": -9.972835456886484,
            "year": 2019,
            "month": "",
            "fe": -10.887393053970278,
            "me": -14.773968662955278,
            "others": 2.4319515068981707,
            "total": -9.972835456886484
        },
        {
            "section": "4.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": -8.570569564573285,
            "MIDDLE EAST": -8.001341134591582,
            "OTHERS": 13.73278386769106,
            "TOTAL": -2.018399111430308,
            "year": 2020,
            "month": "",
            "fe": -8.570569564573285,
            "me": -8.001341134591582,
            "others": 13.73278386769106,
            "total": -2.018399111430308
        },
        {
            "section": "4.1",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2021,
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 16.174128966112058,
            "MIDDLE EAST": 3.653176727851855,
            "OTHERS": -4.023044610930431,
            "TOTAL": 2.8912371072823526,
            "year": 2021,
            "month": "",
            "fe": 16.174128966112058,
            "me": 3.653176727851855,
            "others": -4.023044610930431,
            "total": 2.8912371072823526
        },
        {
            "section": "4.2",
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2022,
            "period_no": 90,
            "period_name": "(4 MTHS)",
            "FAREAST": -18.2958340640835,
            "MIDDLE EAST": 27.70448881791826,
            "OTHERS": -5.470782501657605,
            "TOTAL": 9.067659362813068,
            "year": 2022,
            "month": "(4 MTHS)",
            "fe": -18.2958340640835,
            "me": 27.70448881791826,
            "others": -5.470782501657605,
            "total": 9.067659362813068
        }
    ],
    "gHeaders": [
        "",
        "",
        "",
        ""
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude-import/current

Query Parameters

Parameter Type Default Description
date String

Quantity of crude oil import classified by sources in current year and 5 years ago (Unit: Million Litres)

ปริมาณการนำเข้าน้ำมันดิบแยกแหล่งที่มา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ล้านลิตร)

Import of Crude Oil Classified by Sources (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude-import/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude-import/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/crude-import/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude-import/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "IMPORT OF CRUDE OIL CLASSIFIED BY SOURCES",
    "unitTitle": "Million Litres",
    "footer": [
        {
            "line": "SOURCE : DEPARTMENT OF ENERGY BUSINESS"
        },
        {
            "line": "COMPILED BY : ENERGY POLICY AND PLANNING OFFICE"
        }
    ],
    "headers": [
        "MIDDLE EAST",
        "FAREAST",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        2645.361,
        594.199,
        1589.024,
        4828.584
    ],
    "rows": [
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 594.199,
            "MIDDLE EAST": 2645.361,
            "OTHERS": 1589.024,
            "TOTAL": 4828.584,
            "year": 2020,
            "month": "JAN",
            "fe": 594.199,
            "me": 2645.361,
            "others": 1589.024,
            "total": 4828.584
        },
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": 498.861,
            "MIDDLE EAST": 2124.289,
            "OTHERS": 1448.762,
            "TOTAL": 4071.912,
            "year": 2020,
            "month": "FEB",
            "fe": 498.861,
            "me": 2124.289,
            "others": 1448.762,
            "total": 4071.912
        },
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 601.126,
            "MIDDLE EAST": 2144.589,
            "OTHERS": 1889.201,
            "TOTAL": 4634.916,
            "year": 2020,
            "month": "MAR",
            "fe": 601.126,
            "me": 2144.589,
            "others": 1889.201,
            "total": 4634.916
        },
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": 433.279,
            "MIDDLE EAST": 2740.796,
            "OTHERS": 1041.342,
            "TOTAL": 4215.417,
            "year": 2020,
            "month": "APR",
            "fe": 433.279,
            "me": 2740.796,
            "others": 1041.342,
            "total": 4215.417
        }
    ],
    "shares": [
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 12.305864410767214,
            "MIDDLE EAST": 54.78544020358763,
            "OTHERS": 32.908695385645146,
            "TOTAL": 100,
            "fe": 12.305864410767214,
            "me": 54.78544020358763,
            "others": 32.908695385645146,
            "total": 100
        },
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": 12.251271638483347,
            "MIDDLE EAST": 52.16932487735492,
            "OTHERS": 35.579403484161745,
            "TOTAL": 100,
            "fe": 12.251271638483347,
            "me": 52.16932487735492,
            "others": 35.579403484161745,
            "total": 100
        },
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 12.969512284580778,
            "MIDDLE EAST": 46.27028839357607,
            "OTHERS": 40.76019932184315,
            "TOTAL": 100,
            "fe": 12.969512284580778,
            "me": 46.27028839357607,
            "others": 40.76019932184315,
            "total": 100
        },
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": 10.278437459449444,
            "MIDDLE EAST": 65.01838370913245,
            "OTHERS": 24.7031788314181,
            "TOTAL": 100,
            "fe": 10.278437459449444,
            "me": 65.01838370913245,
            "others": 24.7031788314181,
            "total": 100
        }
    ],
    "growths": [
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "JAN",
            "FAREAST": 11.021655051288263,
            "MIDDLE EAST": -27.812552188905016,
            "OTHERS": 46.79829350716058,
            "TOTAL": -8.588256942703811,
            "fe": 11.021655051288263,
            "me": -27.812552188905016,
            "others": 46.79829350716058,
            "total": -8.588256942703811
        },
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 2,
            "period_name": "FEB",
            "FAREAST": -30.094797687861274,
            "MIDDLE EAST": -13.155730165284185,
            "OTHERS": 12.930701852165093,
            "TOTAL": -8.343777686539747,
            "fe": -30.094797687861274,
            "me": -13.155730165284185,
            "others": 12.930701852165093,
            "total": -8.343777686539747
        },
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 3,
            "period_name": "MAR",
            "FAREAST": 3.718772268549432,
            "MIDDLE EAST": -29.766984746199,
            "OTHERS": 103.33710760328836,
            "TOTAL": 1.5937688025855972,
            "fe": 3.718772268549432,
            "me": -29.766984746199,
            "others": 103.33710760328836,
            "total": 1.5937688025855972
        },
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 4,
            "period_name": "APR",
            "FAREAST": -38.87794039851878,
            "MIDDLE EAST": 0.2658835029310119,
            "OTHERS": -2.118103989562682,
            "TOTAL": -6.454593690270843,
            "fe": -38.87794039851878,
            "me": 0.2658835029310119,
            "others": -2.118103989562682,
            "total": -6.454593690270843
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude-import/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of crude oil import classified by sources as monthly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันดิบแยกแหล่งที่มา รายเดือน (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Import of Crude Oil Classified by Sources (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude-import/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude-import/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/crude-import/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude-import/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "IMPORT OF CRUDE OIL CLASSIFIED BY SOURCES",
    "unitTitle": "Million Litres",
    "footer": [
        {
            "line": "SOURCE : DEPARTMENT OF ENERGY BUSINESS"
        },
        {
            "line": "COMPILED BY : ENERGY POLICY AND PLANNING OFFICE"
        }
    ],
    "headers": [
        "MIDDLE EAST",
        "FAREAST",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        6914.239,
        1694.186,
        4926.987,
        13535.412
    ],
    "rows": [
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "Q1",
            "FAREAST": 1694.186,
            "MIDDLE EAST": 6914.239,
            "OTHERS": 4926.987,
            "TOTAL": 13535.412,
            "year": 2020,
            "quater": "Q1",
            "fe": 1694.186,
            "me": 6914.239,
            "others": 4926.987,
            "total": 13535.412
        }
    ],
    "shares": [
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "Q1",
            "FAREAST": 12.516693248790652,
            "MIDDLE EAST": 51.08258987609686,
            "OTHERS": 36.40071687511248,
            "TOTAL": 100,
            "fe": 12.516693248790652,
            "me": 51.08258987609686,
            "others": 36.40071687511248,
            "total": 100
        }
    ],
    "growths": [
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 1,
            "period_name": "Q1",
            "FAREAST": -7.340921719878714,
            "MIDDLE EAST": -24.551602781084128,
            "OTHERS": 49.555112585519375,
            "TOTAL": -5.260861369886941,
            "fe": -7.340921719878714,
            "me": -24.551602781084128,
            "others": 49.555112585519375,
            "total": -5.260861369886941
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/report/oil/crude-import/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of crude oil import classified by sources as quarterly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันดิบแยกแหล่งที่มา รายไตรมาส (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Import of Crude Oil Classified by Sources (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude-import/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/crude-import/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/crude-import/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/oil/crude-import/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/crude-import/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "headerExcel": "IMPORT OF CRUDE OIL CLASSIFIED BY SOURCES",
    "unitTitle": "Million Litres",
    "footer": [
        {
            "line": "SOURCE : DEPARTMENT OF ENERGY BUSINESS"
        },
        {
            "line": "COMPILED BY : ENERGY POLICY AND PLANNING OFFICE"
        }
    ],
    "headers": [
        "MIDDLE EAST",
        "FAREAST",
        "OTHERS",
        "TOTAL"
    ],
    "values": [
        26201.552,
        6708.522,
        15774.968,
        48685.042
    ],
    "rows": [
        {
            "section": 1.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "Million Litres",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 6708.522,
            "MIDDLE EAST": 26201.552,
            "OTHERS": 15774.968,
            "TOTAL": 48685.042,
            "year": 2020,
            "fe": 6708.522,
            "me": 26201.552,
            "others": 15774.968,
            "total": 48685.042
        }
    ],
    "shares": [
        {
            "section": 2.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "SHARE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": 13.779431473017933,
            "MIDDLE EAST": 53.81848494656737,
            "OTHERS": 32.4020835804147,
            "TOTAL": 100,
            "fe": 13.779431473017933,
            "me": 53.81848494656737,
            "others": 32.4020835804147,
            "total": 100
        }
    ],
    "growths": [
        {
            "section": 3.1,
            "update_date": "2022-06-15T00:00:00.000Z",
            "unit": "GROWTH RATE (%)",
            "year_en": 2020,
            "year_remark": "",
            "period_no": 99,
            "period_name": "YTD",
            "FAREAST": -8.570569564573285,
            "MIDDLE EAST": -8.001341134591582,
            "OTHERS": 13.73278386769106,
            "TOTAL": -2.018399111430308,
            "fe": -8.570569564573285,
            "me": -8.001341134591582,
            "others": 13.73278386769106,
            "total": -2.018399111430308
        }
    ],
    "gHeaders": [
        "",
        "",
        "",
        ""
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/crude-import/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of crude oil import classified by sources as yearly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันดิบแยกแหล่งที่มา รายปี (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Quantity and Value of Petroleum Products Import (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-import/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "REMARKS : PETROLEUM PRODUCTS EXCLUDING LUBE OIL AND GREASE"
        },
        {
            "line": "                  :  PETROLEUM PRODUCTS INCLUDING PROPANE AND BUTHANE"
        }
    ],
    "crude": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 827332.97952,
            "quantity": 55192.167,
            "bblDay": 951075.0137641113,
            "valueUs": 25448.235937128156,
            "bblPrice": 73.30777629448774
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 660649.90016,
            "quantity": 49687.943,
            "bblDay": 856225.8675698558,
            "valueUs": 21117.056330180196,
            "bblPrice": 67.56972784998068
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 443886.11747,
            "quantity": 48685.042,
            "bblDay": 836651.6160586098,
            "valueUs": 14159.688068535988,
            "bblPrice": 46.241077619210806
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 728022.32711,
            "quantity": 50092.642,
            "bblDay": 863199.667076502,
            "valueUs": 22536.104600935392,
            "bblPrice": 71.52777588578219
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 386580.29458,
            "quantity": 18156.406,
            "bblDay": 951653.4582887805,
            "valueUs": 11596.951338930363,
            "bblPrice": 101.55089577620923
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 196727.86307,
            "quantity": 16646.92,
            "bblDay": 872534.9602700373,
            "valueUs": 6403.100959405466,
            "bblPrice": 61.15419678450283
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 59771.11291,
            "quantity": 4437.062,
            "bblDay": 900251.791043867,
            "valueUs": 1899.5399147018536,
            "bblPrice": 68.06482556215079
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 59862.96565,
            "quantity": 4244.842,
            "bblDay": 889959.9555527593,
            "valueUs": 1893.8642486767965,
            "bblPrice": 70.9344368758894
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 56743.2177,
            "quantity": 3733.433,
            "bblDay": 757489.9212569662,
            "valueUs": 1731.0791846023835,
            "bblPrice": 73.71882113859635
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 68245.18368,
            "quantity": 4477.51,
            "bblDay": 908458.4341883943,
            "valueUs": 2049.9220127599756,
            "bblPrice": 72.789809695279
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 56544.446,
            "quantity": 3533.058,
            "bblDay": 740729.6056355742,
            "valueUs": 1703.0177245689333,
            "bblPrice": 76.63694964226877
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 72567.97393,
            "quantity": 4055.45,
            "bblDay": 822825.1320330548,
            "valueUs": 2156.340505388773,
            "bblPrice": 84.53724665616917
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 67889.75148,
            "quantity": 3731.752,
            "bblDay": 782387.152231796,
            "valueUs": 2041.2383822773313,
            "bblPrice": 86.96625349119479
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 89669.81269,
            "quantity": 5232.615,
            "bblDay": 1061664.4585072296,
            "valueUs": 2658.0016685538803,
            "bblPrice": 80.76185335312871
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 81811.67864,
            "quantity": 4566.704,
            "bblDay": 926555.3321470811,
            "valueUs": 2449.026176292739,
            "bblPrice": 85.26295371208266
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 84924.2773,
            "quantity": 4346.874,
            "bblDay": 976448.2042895773,
            "valueUs": 2586.0405091429525,
            "bblPrice": 94.58626602672133
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 114654.66439,
            "quantity": 4998.074,
            "bblDay": 1014077.5743656016,
            "valueUs": 3465.803280665746,
            "bblPrice": 110.24808027913298
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 105189.67425,
            "quantity": 4244.754,
            "bblDay": 889941.5057550784,
            "valueUs": 3096.081372828924,
            "bblPrice": 115.96572556762322
        }
    ],
    "petroleum": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 50979.07267,
            "quantity": 3478.535866,
            "bblDay": 59942.356433203655,
            "valueUs": 1574.5485090894394,
            "bblPrice": 71.96633213041895
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 84371.66618,
            "quantity": 6041.875128,
            "bblDay": 104113.98542339593,
            "valueUs": 2719.890480436763,
            "bblPrice": 71.57304285892911
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 23351.62426,
            "quantity": 2622.525981,
            "bblDay": 45068.06423540394,
            "valueUs": 745.8726905305978,
            "bblPrice": 45.2183505241163
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 28111.61205,
            "quantity": 2020.70602,
            "bblDay": 34820.937648357234,
            "valueUs": 873.638904805848,
            "bblPrice": 68.73827667177538
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 23204.53524,
            "quantity": 1277.053467,
            "bblDay": 66935.73322221515,
            "valueUs": 695.1982142968421,
            "bblPrice": 86.55045927772034
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 10164.47802,
            "quantity": 803.355625,
            "bblDay": 42107.24075937678,
            "valueUs": 329.4177841565248,
            "bblPrice": 65.19420773713514
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 2176.10534,
            "quantity": 176.458702,
            "bblDay": 35802.353566566286,
            "valueUs": 69.15713545688853,
            "bblPrice": 62.310857110865136
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 1091.71749,
            "quantity": 97.29448,
            "bblDay": 20398.44853974039,
            "valueUs": 34.538294277877434,
            "bblPrice": 56.43941369787626
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 3099.26263,
            "quantity": 218.803405,
            "bblDay": 44393.82574274291,
            "valueUs": 94.54996110326397,
            "bblPrice": 68.7032192931731
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 1741.9594,
            "quantity": 120.714776,
            "bblDay": 24492.263867275007,
            "valueUs": 52.324292013601024,
            "bblPrice": 68.91483762718866
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 1945.47258,
            "quantity": 136.106073,
            "bblDay": 28535.562614000854,
            "valueUs": 58.59415947594307,
            "bblPrice": 68.44577328360799
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 1402.55442,
            "quantity": 92.90185,
            "bblDay": 18849.19725119657,
            "valueUs": 41.67657911705539,
            "bblPrice": 71.32429885756457
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 2357.5394,
            "quantity": 134.483036,
            "bblDay": 28195.281883556596,
            "valueUs": 70.88404075876979,
            "bblPrice": 83.80130294081712
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 4132.52277,
            "quantity": 240.588073,
            "bblDay": 48813.79697242054,
            "valueUs": 122.49665844592391,
            "bblPrice": 80.95057865282246
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 7466.83222,
            "quantity": 440.378922,
            "bblDay": 89350.09546147134,
            "valueUs": 223.51903621526802,
            "bblPrice": 80.69707652326177
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 5398.22121,
            "quantity": 304.771218,
            "bblDay": 68461.45265200861,
            "valueUs": 164.38195496277348,
            "bblPrice": 85.75313374746355
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 3738.894,
            "quantity": 168.798073,
            "bblDay": 34248.06043796617,
            "valueUs": 113.02000804069925,
            "bblPrice": 106.4529396516916
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 6600.58781,
            "quantity": 363.105254,
            "bblDay": 76127.48265090043,
            "valueUs": 194.27721507810134,
            "bblPrice": 85.06661383992905
        }
    ],
    "others": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 100839.32303,
            "quantity": 7503.16724,
            "bblDay": 129295.06620128565,
            "valueUs": 3098.9382423083866,
            "bblPrice": 65.6656283119996
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 82363.3708,
            "quantity": 7524.169,
            "bblDay": 129656.96989644345,
            "valueUs": 2634.7532035546724,
            "bblPrice": 55.6738440927043
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 95423.83354,
            "quantity": 11645.31756,
            "bblDay": 200124.58356490047,
            "valueUs": 3032.3936262997963,
            "bblPrice": 41.40035341770498
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 220215.89664,
            "quantity": 16234.67826,
            "bblDay": 279757.0323626793,
            "valueUs": 6820.709142030831,
            "bblPrice": 66.79679936518087
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 93194.45247,
            "quantity": 4964.83718,
            "bblDay": 260227.95878147415,
            "valueUs": 2795.3382845430747,
            "bblPrice": 89.5156916020969
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 60077.27693,
            "quantity": 5312.80396,
            "bblDay": 278466.35847118223,
            "valueUs": 1957.05043533091,
            "bblPrice": 58.56633353233344
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 20930.85609,
            "quantity": 1653.90162,
            "bblDay": 335566.1686979701,
            "valueUs": 665.1874903467542,
            "bblPrice": 63.94464931368201
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 16076.06457,
            "quantity": 1227.80538,
            "bblDay": 257417.73696458832,
            "valueUs": 508.5929776107362,
            "bblPrice": 65.85831828683726
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 16546.10154,
            "quantity": 1256.13144,
            "bblDay": 254861.1172542801,
            "valueUs": 504.7759560207571,
            "bblPrice": 63.890072879427585
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 21064.59244,
            "quantity": 1376.88688,
            "bblDay": 279361.6315897321,
            "valueUs": 632.7299510987757,
            "bblPrice": 73.06172815387318
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 18332.66854,
            "quantity": 1256.82228,
            "bblDay": 263501.3271274917,
            "valueUs": 552.1472340938182,
            "bblPrice": 69.8474956607042
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 22776.50346,
            "quantity": 1488.11436,
            "bblDay": 301928.9831577959,
            "valueUs": 676.7985148558981,
            "bblPrice": 72.3090904632756
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 16397.31802,
            "quantity": 977.9673,
            "bblDay": 205037.486634379,
            "valueUs": 493.01749055145814,
            "bblPrice": 80.15078911409054
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 28014.51505,
            "quantity": 1684.24504,
            "bblDay": 341722.6565273932,
            "valueUs": 830.4090921217222,
            "bblPrice": 78.38927140698766
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 18052.05045,
            "quantity": 1061.92944,
            "bblDay": 215458.7608472023,
            "valueUs": 540.3867127864023,
            "bblPrice": 80.90564234278156
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 19963.45325,
            "quantity": 1164.28706,
            "bblDay": 261536.45332590496,
            "valueUs": 607.9097809040942,
            "bblPrice": 83.01352766554163
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 28862.64566,
            "quantity": 1498.28924,
            "bblDay": 303993.40189786674,
            "valueUs": 872.4656127103506,
            "bblPrice": 92.5811279034607
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 26316.30311,
            "quantity": 1240.33144,
            "bblDay": 260043.9105184806,
            "valueUs": 774.5761781422276,
            "bblPrice": 99.28786983165811
        }
    ],
    "total": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 979151.37522,
            "quantity": 66173.870106,
            "bblDay": 1140312.4363986005,
            "valueUs": 30121.72268852598,
            "bblPrice": 72.37075121309138
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 827384.93714,
            "quantity": 63253.987128,
            "bblDay": 1089996.8228896952,
            "valueUs": 26471.70001417163,
            "bblPrice": 66.5370797375414
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 562661.57527,
            "quantity": 62952.885541,
            "bblDay": 1081844.2638589141,
            "valueUs": 17937.95438536638,
            "bblPrice": 45.303012613647084
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 976349.8358,
            "quantity": 68348.02628,
            "bblDay": 1177777.6370875384,
            "valueUs": 30230.45264777207,
            "bblPrice": 70.3215575937665
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 502979.28229,
            "quantity": 24398.296647,
            "bblDay": 1278817.15029247,
            "valueUs": 15087.487837770279,
            "bblPrice": 98.31668685863156
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 266969.61802,
            "quantity": 22763.079585,
            "bblDay": 1193108.5595005965,
            "valueUs": 8689.5691788929,
            "bblPrice": 60.69278098305184
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 82878.07434,
            "quantity": 6267.422322,
            "bblDay": 1271620.3133084034,
            "valueUs": 2633.884540505496,
            "bblPrice": 66.81555535599172
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 77030.74771,
            "quantity": 5569.94186,
            "bblDay": 1167776.141057088,
            "valueUs": 2436.99552056541,
            "bblPrice": 69.56229123273022
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 76388.58187,
            "quantity": 5208.367845,
            "bblDay": 1056744.8642539892,
            "valueUs": 2330.4051017264046,
            "bblPrice": 71.13766119249235
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 91051.73552,
            "quantity": 5975.111656,
            "bblDay": 1212312.3296454016,
            "valueUs": 2734.9762558723523,
            "bblPrice": 72.77418397436985
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 76822.58712,
            "quantity": 4925.986353,
            "bblDay": 1032766.4953770668,
            "valueUs": 2313.7591181386947,
            "bblPrice": 74.6783559334947
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 96747.03181,
            "quantity": 5636.46621,
            "bblDay": 1143603.3124420473,
            "valueUs": 2874.815599361726,
            "bblPrice": 81.09104447953771
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 86644.6089,
            "quantity": 4844.202336,
            "bblDay": 1015619.9207497316,
            "valueUs": 2605.139913587559,
            "bblPrice": 85.50245554014086
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 121816.85051,
            "quantity": 7157.448113,
            "bblDay": 1452200.9120070434,
            "valueUs": 3610.9074191215263,
            "bblPrice": 80.20989625106792
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 107330.56131,
            "quantity": 6069.012362,
            "bblDay": 1231364.1884557547,
            "valueUs": 3212.931925294409,
            "bblPrice": 84.16922166792558
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 110285.95176,
            "quantity": 5815.932278,
            "bblDay": 1306446.1102674908,
            "valueUs": 3358.33224500982,
            "bblPrice": 91.80664734592217
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 147256.20405,
            "quantity": 6665.161313,
            "bblDay": 1352319.0367014345,
            "valueUs": 4451.288901416796,
            "bblPrice": 106.18053925505299
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 138106.56517,
            "quantity": 5848.190694,
            "bblDay": 1226112.8989244595,
            "valueUs": 4064.9347660492535,
            "bblPrice": 110.51007264814943
        }
    ],
    "growth": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 32.22132432797375,
            "growthQuantity": 4.860941213016188,
            "growthBblDay": 4.860941213016215,
            "growthValueUs": 38.544675474243846,
            "growthBblPrice": 32.12228869165112
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -20.14703674168844,
            "growthQuantity": -9.972835456886484,
            "growthBblDay": -9.97283545688651,
            "growthValueUs": -17.019567162330922,
            "growthBblPrice": -7.827339382736836
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -32.810688783499835,
            "growthQuantity": -2.018399111430308,
            "growthBblDay": -2.286108403475557,
            "growthValueUs": -32.94667662415067,
            "growthBblPrice": -31.56539312711761
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 64.01106014747201,
            "growthQuantity": 2.8912371072823526,
            "growthBblDay": 3.1731309075762826,
            "growthValueUs": 59.156787154178225,
            "growthBblPrice": 54.68449173006741
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 96.5051053507588,
            "growthQuantity": 9.067659362813068,
            "growthBblDay": 9.067659362813059,
            "growthValueUs": 81.11461013113794,
            "growthBblPrice": 66.05711646259964
        }
    ],
    "growthPetroleum": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": -1.3268495883615026,
            "growthQuantity": -10.249604535930832,
            "growthBblDay": -10.249604535930825,
            "growthValueUs": 4.098077512647425,
            "growthBblPrice": 15.98620482326703
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": 65.50255185330344,
            "growthQuantity": 73.69017772835576,
            "growthBblDay": 73.69017772835578,
            "growthValueUs": 72.74097715856809,
            "growthBblPrice": -0.546490643398509
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -72.32290730139046,
            "growthQuantity": -56.59417109025693,
            "growthBblDay": -56.71276625121251,
            "growthValueUs": -72.57710573659479,
            "growthBblPrice": -36.82209290271208
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 20.383968742395307,
            "growthQuantity": -22.948102911473107,
            "growthBblDay": -22.737001823559375,
            "growthValueUs": 17.129761673451288,
            "growthBblPrice": 52.01411788586847
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 128.29047585465682,
            "growthQuantity": 58.96490013373591,
            "growthBblDay": 58.964900133736165,
            "growthValueUs": 111.03845867851341,
            "growthBblPrice": 32.75789718420107
        }
    ],
    "growthOthers": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 36.53808045189428,
            "growthQuantity": 9.419509555152308,
            "growthBblDay": 9.419509555152352,
            "growthValueUs": 43.0560751516147,
            "growthBblPrice": 30.74092155339812
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -18.32217003728133,
            "growthQuantity": 0.2799052630472902,
            "growthBblDay": 0.2799052630472324,
            "growthValueUs": -14.978841217821259,
            "growthBblPrice": -15.216155660341743
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": 15.857125094739324,
            "growthQuantity": 54.7721424120059,
            "growthBblDay": 54.34926770596231,
            "growthValueUs": 15.092131673230272,
            "growthBblPrice": -25.637695595856602
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 130.77661887026298,
            "growthQuantity": 39.409493784555934,
            "growthBblDay": 39.79143760314385,
            "growthValueUs": 124.92822445196975,
            "growthBblPrice": 61.34354866790832
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 55.12429529485334,
            "growthQuantity": -6.549588176409952,
            "growthBblDay": -6.5495881764100154,
            "growthValueUs": 42.83424862632229,
            "growthBblPrice": 52.84496433890106
        }
    ],
    "growthTotal": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 30.338508649865986,
            "growthQuantity": 4.430020142051401,
            "growthBblDay": 4.430020142051401,
            "growthValueUs": 36.62469763228028,
            "growthBblPrice": 30.82894884673575
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -15.499793180181198,
            "growthQuantity": -4.412441003258256,
            "growthBblDay": -4.412441003258275,
            "growthValueUs": -12.117576116404269,
            "growthBblPrice": -8.060813764904937
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -31.995187486137027,
            "growthQuantity": -0.47601993276833576,
            "growthBblDay": -0.7479433755749627,
            "growthValueUs": -32.23724061634389,
            "growthBblPrice": -31.91313356049451
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 73.5234604089477,
            "growthQuantity": 8.570124614043706,
            "growthBblDay": 8.867577010246562,
            "growthValueUs": 68.52787111797872,
            "growthBblPrice": 55.22490345947286
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 88.40319210117737,
            "growthQuantity": 7.183637239829118,
            "growthBblDay": 7.183637239829101,
            "growthValueUs": 73.62757033361359,
            "growthBblPrice": 61.99074299476573
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/current

Query Parameters

Parameter Type Default Description
date String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products import in current year and 4 years ago

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การนำเข้าน้ำมันสำเร็จรูป ของปีปัจจุบันและย้อนหลัง 4 ปี

Quantity and Value of Petroleum Products Import (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-import/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "REMARKS : PETROLEUM PRODUCTS EXCLUDING LUBE OIL AND GREASE"
        },
        {
            "line": "                  :  PETROLEUM PRODUCTS INCLUDING PROPANE AND BUTHANE"
        }
    ],
    "crude": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 66891.35295,
            "quantity": 4828.584,
            "bblDay": 979689.1263195691,
            "valueUs": 2185.6205138342502,
            "bblPrice": 71.96557116838139,
            "growthValbath": 0.5120324977952198,
            "growthQuantity": -8.588256942703811,
            "growthBblDay": -8.588256942703799,
            "growthValueUs": 5.019855214407867,
            "growthBblPrice": 14.886612706402724
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 53099.29986,
            "quantity": 4071.912,
            "bblDay": 883142.0757323704,
            "valueUs": 1685.4512802932913,
            "bblPrice": 65.80935419376218,
            "growthValbath": -7.897936094529569,
            "growthQuantity": -8.343777686539747,
            "growthBblDay": -11.504337076659054,
            "growthValueUs": -8.011073896213182,
            "growthBblPrice": 0.3629909480544695
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 46350.35917,
            "quantity": 4634.916,
            "bblDay": 940395.115132012,
            "valueUs": 1437.1937008923865,
            "bblPrice": 49.29958310029366,
            "growthValbath": -24.763934401348717,
            "growthQuantity": 1.5937688025855972,
            "growthBblDay": 1.5937688025855965,
            "growthValueUs": -25.603529944034893,
            "growthBblPrice": -26.770636690789157
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 25274.4478,
            "quantity": 4215.417,
            "bblDay": 883790.8044531097,
            "valueUs": 770.4402899540314,
            "bblPrice": 29.058169500144718,
            "growthValbath": -60.210778841182375,
            "growthQuantity": -6.454593690270843,
            "growthBblDay": -6.454593690270831,
            "growthValueUs": -61.165932647974266,
            "growthBblPrice": -58.486398334252776
        }
    ],
    "petroleum": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 2497.33931,
            "quantity": 213.852888,
            "bblDay": 43389.39718261838,
            "valueUs": 81.59852933488428,
            "bblPrice": 60.664835066212845,
            "growthValbath": -35.37271665009195,
            "growthQuantity": -41.18290793491374,
            "growthBblDay": -41.18290793491383,
            "growthValueUs": -32.47427425709716,
            "growthBblPrice": 14.806297577887415
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 2043.8746,
            "quantity": 157.63974,
            "bblDay": 34189.90567613221,
            "valueUs": 64.87563998793823,
            "bblPrice": 65.43133096820844,
            "growthValbath": -61.63260301918655,
            "growthQuantity": -64.84223385856099,
            "growthBblDay": -66.0545706220589,
            "growthValueUs": -61.67973337399801,
            "growthBblPrice": 8.995169010000009
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 2339.56785,
            "quantity": 243.132592,
            "bblDay": 49330.06376948024,
            "valueUs": 72.54338989042064,
            "bblPrice": 47.43779294993901,
            "growthValbath": -51.25456972811677,
            "growthQuantity": -27.051216799765154,
            "growthBblDay": -27.051216799765054,
            "growthValueUs": -51.79854349464672,
            "growthBblPrice": -33.924248780070066
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 800.63155,
            "quantity": 173.107701,
            "bblDay": 36293.2052330335,
            "valueUs": 24.405629290478338,
            "bblPrice": 22.4152419475154,
            "growthValbath": -84.98524029079783,
            "growthQuantity": -51.910905723296885,
            "growthBblDay": -51.910905723296786,
            "growthValueUs": -85.34567471189561,
            "growthBblPrice": -69.52671804591736
        }
    ],
    "others": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 13638.13056,
            "quantity": 1202.43988,
            "bblDay": 243967.43962391556,
            "valueUs": 445.6148157829388,
            "bblPrice": 58.92045061024561,
            "growthValbath": 112.45918228571117,
            "growthQuantity": 103.5989492448243,
            "growthBblDay": 103.59894924482438,
            "growthValueUs": 121.98767658097364,
            "growthBblPrice": 9.031838034702783
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 5392.59204,
            "quantity": 509.2774,
            "bblDay": 110455.3094859574,
            "valueUs": 171.16894538875397,
            "bblPrice": 53.43679226165949,
            "growthValbath": -31.048245775777232,
            "growthQuantity": -29.54230793782281,
            "growthBblDay": -31.971883526173734,
            "growthValueUs": -31.132945830959123,
            "growthBblPrice": -2.2575787633415945
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 11980.71253,
            "quantity": 1291.44418,
            "bblDay": 262025.8486534955,
            "valueUs": 371.488050764947,
            "bblPrice": 45.733982239262616,
            "growthValbath": 42.69160170589073,
            "growthQuantity": 74.85225598133613,
            "growthBblDay": 74.85225598133617,
            "growthValueUs": 41.099237301695126,
            "growthBblPrice": -19.30373645464651
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 4962.00436,
            "quantity": 911.85084,
            "bblDay": 191175.72174350548,
            "valueUs": 151.25664102032601,
            "bblPrice": 26.373056097444277,
            "growthValbath": -26.329435793232637,
            "growthQuantity": 62.789705066065935,
            "growthBblDay": 62.78970506606613,
            "growthValueUs": -28.097922780442886,
            "growthBblPrice": -55.83131182013224
        }
    ],
    "total": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 83026.82282,
            "quantity": 6244.876768,
            "bblDay": 1267045.963126103,
            "valueUs": 2712.8338589520736,
            "bblPrice": 69.06676804975997,
            "growthValbath": 8.060020870399345,
            "growthQuantity": 0.13563377074547234,
            "growthBblDay": 0.13563377074545796,
            "growthValueUs": 12.90636020641774,
            "growthBblPrice": 12.753428479725903
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 60535.7665,
            "quantity": 4738.82914,
            "bblDay": 1027787.29089446,
            "valueUs": 1921.4958656699835,
            "bblPrice": 64.46711173951947,
            "growthValbath": -14.49823339923183,
            "growthQuantity": -15.585818580682828,
            "growthBblDay": -18.496652422728232,
            "growthValueUs": -14.603263422480891,
            "growthBblPrice": 1.1639693019365953
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 60670.63955,
            "quantity": 6169.492772,
            "bblDay": 1251751.027554988,
            "valueUs": 1881.225141547754,
            "bblPrice": 48.47983396821747,
            "growthValbath": -18.892079780284124,
            "growthQuantity": 9.502937279116653,
            "growthBblDay": 9.50293727911668,
            "growthValueUs": -19.797202180706943,
            "growthBblPrice": -26.75740047514822
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 31037.08371,
            "quantity": 5300.375541,
            "bblDay": 1111259.7314296486,
            "valueUs": 946.1025602648358,
            "bblPrice": 28.379280843962068,
            "growthValbath": -58.939428779915524,
            "growthQuantity": -2.3222926073887895,
            "growthBblDay": -2.322292607388778,
            "growthValueUs": -59.92510177797122,
            "growthBblPrice": -58.97231897453376
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products import as monthly (1986-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การนำเข้าน้ำมันสำเร็จรูป รายเดือน (2529-ปัจจุบัน)

Quantity and Value of Petroleum Products Import (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-import/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "REMARKS : PETROLEUM PRODUCTS EXCLUDING LUBE OIL AND GREASE"
        },
        {
            "line": "                  :  PETROLEUM PRODUCTS INCLUDING PROPANE AND BUTHANE"
        }
    ],
    "crude": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 166341.01198,
            "quantity": 13535.412,
            "bblDay": 935535.5129806347,
            "valueUs": 5308.265495019928,
            "bblPrice": 62.3520828958305,
            "growthValbath": -10.47782059915767,
            "growthQuantity": -5.260861369886941,
            "growthBblDay": -6.301950805382697,
            "growthValueUs": -9.185690818364375,
            "growthBblPrice": -4.142775103540884
        }
    ],
    "petroleum": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 6880.78176,
            "quantity": 614.62522,
            "bblDay": 42481.43466069111,
            "valueUs": 219.01755921324315,
            "bblPrice": 56.655016107724336,
            "growthValbath": -50.819573172173584,
            "growthQuantity": -46.333129160777794,
            "growthBblDay": -46.92287499417586,
            "growthValueUs": -50.295531328324586,
            "growthBblPrice": -7.383329986608558
        }
    ],
    "others": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 31011.43513,
            "quantity": 3003.16146,
            "bblDay": 207571.3836449726,
            "valueUs": 988.2718119366398,
            "bblPrice": 52.31997595620676,
            "growthValbath": 36.999151453891066,
            "growthQuantity": 46.35310449512817,
            "growthBblDay": 44.744828621555364,
            "growthValueUs": 38.691234848846804,
            "growthBblPrice": -5.2351944789366955
        }
    ],
    "total": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 204233.22887,
            "quantity": 17153.19868,
            "bblDay": 1185588.3312862983,
            "valueUs": 6515.554866169811,
            "bblPrice": 60.391539064965784,
            "growthValbath": -8.183767535948189,
            "growthQuantity": -1.8936510752002274,
            "growthBblDay": -2.9717428216265986,
            "growthValueUs": -6.89930573558598,
            "growthBblPrice": -5.102273925434401
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products import as quarterly (1986-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การนำเข้าน้ำมันสำเร็จรูป รายไตรมาส (2529-ปัจจุบัน)

Quantity and Value of Petroleum Products Import (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-import/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        },
        {
            "line": "REMARKS : PETROLEUM PRODUCTS EXCLUDING LUBE OIL AND GREASE"
        },
        {
            "line": "                  :  PETROLEUM PRODUCTS INCLUDING PROPANE AND BUTHANE"
        }
    ],
    "crude": [
        {
            "year": 2010,
            "month": "YTD",
            "valbath": 751466.60975,
            "quantity": 47365.252,
            "bblDay": 816201.1050923333,
            "valueUs": 23675.954502420467,
            "bblPrice": 79.47260591667141,
            "growthValbath": 20.61601520748513,
            "growthQuantity": 1.5981792261711238,
            "growthBblDay": 1.5981792261711485,
            "growthValueUs": 30.443282250198305,
            "growthBblPrice": 28.391358234692476
        },
        {
            "year": 2011,
            "month": "YTD",
            "valbath": 977374.02491,
            "quantity": 46090.029,
            "bblDay": 794226.3793621891,
            "valueUs": 31943.71834416856,
            "bblPrice": 110.19155096516347,
            "growthValbath": 30.062202661959343,
            "growthQuantity": -2.6923175664725654,
            "growthBblDay": -2.692317566472563,
            "growthValueUs": 34.920509079804376,
            "growthBblPrice": 38.653501661568086
        },
        {
            "year": 2012,
            "month": "YTD",
            "valbath": 1119337.82905,
            "quantity": 50055.994,
            "bblDay": 860211.4027860977,
            "valueUs": 35872.664413351755,
            "bblPrice": 113.94029883971135,
            "growthValbath": 14.525023227732344,
            "growthQuantity": 8.604822097204574,
            "growthBblDay": 8.308087610600207,
            "growthValueUs": 12.299589004798618,
            "growthBblPrice": 3.4020284148038016
        },
        {
            "year": 2013,
            "month": "YTD",
            "valbath": 1072221.18167,
            "quantity": 50373.541,
            "bblDay": 868040.1369259886,
            "valueUs": 34752.6306679919,
            "bblPrice": 109.68696343788964,
            "growthValbath": -4.20933217454007,
            "growthQuantity": 0.6343835665315101,
            "growthBblDay": 0.9100942064398215,
            "growthValueUs": -3.122248552418593,
            "growthBblPrice": -3.7329508919449346
        },
        {
            "year": 2014,
            "month": "YTD",
            "valbath": 979703.65895,
            "quantity": 46710.112,
            "bblDay": 804911.6899744702,
            "valueUs": 30041.23758346972,
            "bblPrice": 102.25315587759357,
            "growthValbath": -8.628585622222342,
            "growthQuantity": -7.272526265326467,
            "growthBblDay": -7.272526265326475,
            "growthValueUs": -13.556939414262814,
            "growthBblPrice": -6.7772936065510425
        },
        {
            "year": 2015,
            "month": "YTD",
            "valbath": 594300.06598,
            "quantity": 50802.371,
            "bblDay": 875429.7633951297,
            "valueUs": 17343.059806308313,
            "bblPrice": 54.27646435251931,
            "growthValbath": -39.33879285324476,
            "growthQuantity": 8.760970215614122,
            "growthBblDay": 8.760970215614112,
            "growthValueUs": -42.269156661337476,
            "growthBblPrice": -46.91952156714535
        },
        {
            "year": 2016,
            "month": "YTD",
            "valbath": 484766.58963,
            "quantity": 49590.898,
            "bblDay": 852218.7359620164,
            "valueUs": 13672.959793524356,
            "bblPrice": 43.835945006933315,
            "growthValbath": -18.430668717725855,
            "growthQuantity": -2.3846780694546683,
            "growthBblDay": -2.651386599319563,
            "growthValueUs": -21.16177914262283,
            "growthBblPrice": -19.23581329427803
        },
        {
            "year": 2017,
            "month": "YTD",
            "valbath": 625718.26725,
            "quantity": 52633.675,
            "bblDay": 906986.9131081726,
            "valueUs": 18368.252587129642,
            "bblPrice": 55.48479141590901,
            "growthValbath": 29.076194736848915,
            "growthQuantity": 6.135757009280215,
            "growthBblDay": 6.426539905196019,
            "growthValueUs": 34.33998830179418,
            "growthBblPrice": 26.57373168784946
        },
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 827332.97952,
            "quantity": 55192.167,
            "bblDay": 951075.0137641113,
            "valueUs": 25448.235937128153,
            "bblPrice": 73.30777629448772,
            "growthValbath": 32.22132432797375,
            "growthQuantity": 4.860941213016188,
            "growthBblDay": 4.860941213016188,
            "growthValueUs": 38.544675474243796,
            "growthBblPrice": 32.12228869165109
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 660649.90016,
            "quantity": 49687.943,
            "bblDay": 856225.867569856,
            "valueUs": 21117.0563301802,
            "bblPrice": 67.56972784998068,
            "growthValbath": -20.14703674168844,
            "growthQuantity": -9.972835456886484,
            "growthBblDay": -9.972835456886486,
            "growthValueUs": -17.019567162330894,
            "growthBblPrice": -7.82733938273682
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 443886.11747,
            "quantity": 48685.042,
            "bblDay": 836651.6160586098,
            "valueUs": 14159.688068535985,
            "bblPrice": 46.2410776192108,
            "growthValbath": -32.810688783499835,
            "growthQuantity": -2.018399111430308,
            "growthBblDay": -2.286108403475597,
            "growthValueUs": -32.94667662415068,
            "growthBblPrice": -31.56539312711759
        }
    ],
    "petroleum": [
        {
            "year": 2010,
            "month": "YTD",
            "valbath": 41442.81527,
            "quantity": 3116.224374,
            "bblDay": 53698.98122308023,
            "valueUs": 1309.684075070992,
            "bblPrice": 66.82017919918151,
            "growthValbath": 89.65249008388386,
            "growthQuantity": 64.18572357690186,
            "growthBblDay": 64.18572357690199,
            "growthValueUs": 105.13788247647808,
            "growthBblPrice": 24.94258209995629
        },
        {
            "year": 2011,
            "month": "YTD",
            "valbath": 51469.74211,
            "quantity": 3254.34259,
            "bblDay": 56079.04331021072,
            "valueUs": 1682.361135363656,
            "bblPrice": 82.19128426533236,
            "growthValbath": 24.194608340853673,
            "growthQuantity": 4.4322295003010685,
            "growthBblDay": 4.432229500301068,
            "growthValueUs": 28.455492999138936,
            "growthBblPrice": 23.00368728484211
        },
        {
            "year": 2012,
            "month": "YTD",
            "valbath": 70468.36008,
            "quantity": 3889.631012,
            "bblDay": 66843.24257256436,
            "valueUs": 2260.919626067404,
            "bblPrice": 92.41586418852242,
            "growthValbath": 36.9122074274174,
            "growthQuantity": 19.52125212484158,
            "growthBblDay": 19.194691326686236,
            "growthValueUs": 34.38967285574437,
            "growthBblPrice": 12.439980728592566
        },
        {
            "year": 2013,
            "month": "YTD",
            "valbath": 72892.48062,
            "quantity": 4394.769264,
            "bblDay": 75730.94997789979,
            "valueUs": 2360.859616222694,
            "bblPrice": 85.40905058610753,
            "growthValbath": 3.4400127053446306,
            "growthQuantity": 12.98679104628652,
            "growthBblDay": 13.296343898468157,
            "growthValueUs": 4.420324765331162,
            "growthBblPrice": -7.58182987730488
        },
        {
            "year": 2014,
            "month": "YTD",
            "valbath": 99562.01756,
            "quantity": 5494.892855,
            "bblDay": 94688.35129632498,
            "valueUs": 3053.8176026891674,
            "bblPrice": 88.35958652219284,
            "growthValbath": 36.58750081374305,
            "growthQuantity": 25.032567693865637,
            "growthBblDay": 25.032567693865516,
            "growthValueUs": 29.351935274117874,
            "growthBblPrice": 3.454593998923593
        },
        {
            "year": 2015,
            "month": "YTD",
            "valbath": 40031.08481,
            "quantity": 3609.875421,
            "bblDay": 62205.60819281288,
            "valueUs": 1174.9062827840378,
            "bblPrice": 51.7464810040697,
            "growthValbath": -59.792814779114245,
            "growthQuantity": -34.304898816812326,
            "growthBblDay": -34.30489881681236,
            "growthValueUs": -61.52663859984876,
            "growthBblPrice": -41.436483531899704
        },
        {
            "year": 2016,
            "month": "YTD",
            "valbath": 39062.35213,
            "quantity": 3432.083429,
            "bblDay": 58980.295165829746,
            "valueUs": 1101.4499526365114,
            "bblPrice": 51.024263131244375,
            "growthValbath": -2.41995110699075,
            "growthQuantity": -4.925155892242642,
            "growthBblDay": -5.184923225870457,
            "growthValueUs": -6.252101229169131,
            "growthBblPrice": -1.3956849988862396
        },
        {
            "year": 2017,
            "month": "YTD",
            "valbath": 51664.58399,
            "quantity": 3875.788901,
            "bblDay": 66787.84658637084,
            "valueUs": 1512.5625244117878,
            "bblPrice": 62.047320403385065,
            "growthValbath": 32.26183568787567,
            "growthQuantity": 12.928166846144581,
            "growthBblDay": 13.237559084079297,
            "growthValueUs": 37.32467106573538,
            "growthBblPrice": 21.603559945172012
        },
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 50979.07267,
            "quantity": 3478.535866,
            "bblDay": 59942.35643320366,
            "valueUs": 1574.5485090894394,
            "bblPrice": 71.96633213041893,
            "growthValbath": -1.3268495883615026,
            "growthQuantity": -10.249604535930832,
            "growthBblDay": -10.249604535930832,
            "growthValueUs": 4.09807751264744,
            "growthBblPrice": 15.986204823267048
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 84371.66618,
            "quantity": 6041.875128,
            "bblDay": 104113.98542339592,
            "valueUs": 2719.890480436763,
            "bblPrice": 71.57304285892913,
            "growthValbath": 65.50255185330344,
            "growthQuantity": 73.69017772835576,
            "growthBblDay": 73.69017772835575,
            "growthValueUs": 72.74097715856809,
            "growthBblPrice": -0.5464906433984893
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 23351.62426,
            "quantity": 2622.525981,
            "bblDay": 45068.06423540393,
            "valueUs": 745.8726905305974,
            "bblPrice": 45.21835052411629,
            "growthValbath": -72.32290730139046,
            "growthQuantity": -56.59417109025693,
            "growthBblDay": -56.71276625121251,
            "growthValueUs": -72.57710573659479,
            "growthBblPrice": -36.822092902712114
        }
    ],
    "others": [
        {
            "year": 2010,
            "month": "YTD",
            "valbath": 26070.94011,
            "quantity": 1800.40044,
            "bblDay": 31024.617555855286,
            "valueUs": 820.3160134380518,
            "bblPrice": 72.44057492927357,
            "growthValbath": 253.9172434729374,
            "growthQuantity": 157.30375627092002,
            "growthBblDay": 157.30375627092292,
            "growthValueUs": 286.88058106860865,
            "growthBblPrice": 50.35947654850804
        },
        {
            "year": 2011,
            "month": "YTD",
            "valbath": 44604.8521,
            "quantity": 2429.32774,
            "bblDay": 41862.3337213417,
            "valueUs": 1454.6127459148936,
            "bblPrice": 95.19871553971988,
            "growthValbath": 71.09030940886925,
            "growthQuantity": 34.932634208865245,
            "growthBblDay": 34.93263420886562,
            "growthValueUs": 77.3234609694405,
            "growthBblPrice": 31.416289327722644
        },
        {
            "year": 2012,
            "month": "YTD",
            "valbath": 53701.08115,
            "quantity": 2714.49728,
            "bblDay": 46648.58943941528,
            "valueUs": 1721.4314821375094,
            "bblPrice": 100.82544320878604,
            "growthValbath": 20.392913823830394,
            "growthQuantity": 11.738619507963131,
            "growthBblDay": 11.433322733351362,
            "growthValueUs": 18.342939519259964,
            "growthBblPrice": 5.91050796974093
        },
        {
            "year": 2013,
            "month": "YTD",
            "valbath": 66129.43674,
            "quantity": 3434.92258,
            "bblDay": 59190.80945040878,
            "valueUs": 2148.701995880584,
            "bblPrice": 99.45555463583582,
            "growthValbath": 23.143585424815992,
            "growthQuantity": 26.539916076099363,
            "growthBblDay": 26.886600777677728,
            "growthValueUs": 24.820651775958623,
            "growthBblPrice": -1.3586734948573684
        },
        {
            "year": 2014,
            "month": "YTD",
            "valbath": 102707.12112,
            "quantity": 5262.14724,
            "bblDay": 90677.66371107995,
            "valueUs": 3153.9511566686424,
            "bblPrice": 95.29317054966128,
            "growthValbath": 55.31225757118098,
            "growthQuantity": 53.19551219695905,
            "growthBblDay": 53.19551219695935,
            "growthValueUs": 46.78401950178701,
            "growthBblPrice": -4.185170050496831
        },
        {
            "year": 2015,
            "month": "YTD",
            "valbath": 58028.46886,
            "quantity": 5238.71286,
            "bblDay": 90273.84094976215,
            "valueUs": 1692.517824537092,
            "bblPrice": 51.36632148286007,
            "growthValbath": -43.5010267767108,
            "growthQuantity": -0.44533873590357,
            "growthBblDay": -0.44533873590355755,
            "growthValueUs": -46.336587332417274,
            "growthBblPrice": -46.09653431974864
        },
        {
            "year": 2016,
            "month": "YTD",
            "valbath": 62974.00475,
            "quantity": 6940.96768,
            "bblDay": 119280.41114727939,
            "valueUs": 1776.881929214736,
            "bblPrice": 40.7013072168421,
            "growthValbath": 8.522602762329717,
            "growthQuantity": 32.4937606906747,
            "growthBblDay": 32.13175588004453,
            "growthValueUs": 4.984532715377317,
            "growthBblPrice": -20.76265918628546
        },
        {
            "year": 2017,
            "month": "YTD",
            "valbath": 73854.35821,
            "quantity": 6857.2481,
            "bblDay": 118164.54554305521,
            "valueUs": 2166.240223649397,
            "bblPrice": 50.225765224685226,
            "growthValbath": 17.27753142458358,
            "growthQuantity": -1.206165823840862,
            "growthBblDay": -0.9354977850020846,
            "growthValueUs": 21.912446068193873,
            "growthBblPrice": 23.40086512971245
        },
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 100839.32303,
            "quantity": 7503.16724,
            "bblDay": 129295.06620128568,
            "valueUs": 3098.938242308387,
            "bblPrice": 65.6656283119996,
            "growthValbath": 36.53808045189428,
            "growthQuantity": 9.419509555152308,
            "growthBblDay": 9.41950955515239,
            "growthValueUs": 43.05607515161466,
            "growthBblPrice": 30.74092155339805
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 82363.3708,
            "quantity": 7524.169,
            "bblDay": 129656.96989644348,
            "valueUs": 2634.7532035546724,
            "bblPrice": 55.673844092704286,
            "growthValbath": -18.32217003728133,
            "growthQuantity": 0.2799052630472902,
            "growthBblDay": 0.27990526304723234,
            "growthValueUs": -14.978841217821245,
            "growthBblPrice": -15.216155660341729
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 95423.83354,
            "quantity": 11645.31756,
            "bblDay": 200124.58356490047,
            "valueUs": 3032.3936262997977,
            "bblPrice": 41.400353417705,
            "growthValbath": 15.857125094739324,
            "growthQuantity": 54.7721424120059,
            "growthBblDay": 54.34926770596231,
            "growthValueUs": 15.092131673230321,
            "growthBblPrice": -25.63769559585657
        }
    ],
    "total": [
        {
            "year": 2010,
            "month": "YTD",
            "valbath": 818980.36513,
            "quantity": 52281.876814,
            "bblDay": 900924.7038712689,
            "valueUs": 25805.954590929512,
            "bblPrice": 78.47630900873126,
            "growthValbath": 25.56382728502278,
            "growthQuantity": 6.2253662500388165,
            "growthBblDay": 6.225366250038795,
            "growthValueUs": 35.814690353446856,
            "growthBblPrice": 27.855233780751735
        },
        {
            "year": 2011,
            "month": "YTD",
            "valbath": 1073448.61912,
            "quantity": 51773.69933,
            "bblDay": 892167.7563937415,
            "valueUs": 35080.69222544711,
            "bblPrice": 107.72804201943514,
            "growthValbath": 31.07134979354567,
            "growthQuantity": -0.9719954886239288,
            "growthBblDay": -0.9719954886238875,
            "growthValueUs": 35.940300529621,
            "growthBblPrice": 37.274603482497184
        },
        {
            "year": 2012,
            "month": "YTD",
            "valbath": 1243507.27028,
            "quantity": 56660.122292,
            "bblDay": 973703.234798077,
            "valueUs": 39855.01552155666,
            "bblPrice": 111.83436712537728,
            "growthValbath": 15.842272106084792,
            "growthQuantity": 9.438040984582658,
            "growthBblDay": 9.139029943641146,
            "growthValueUs": 13.6095469993215,
            "growthBblPrice": 3.8117513592248464
        },
        {
            "year": 2013,
            "month": "YTD",
            "valbath": 1211243.09903,
            "quantity": 58203.232844,
            "bblDay": 1002961.896354297,
            "valueUs": 39262.19228009519,
            "bblPrice": 107.24998673773567,
            "growthValbath": -2.5946105842015075,
            "growthQuantity": 2.723450796748235,
            "growthBblDay": 3.0048849085200984,
            "growthValueUs": -1.4874495310153337,
            "growthBblPrice": -4.099259025181453
        },
        {
            "year": 2014,
            "month": "YTD",
            "valbath": 1181972.79763,
            "quantity": 57467.152095,
            "bblDay": 990277.7049818753,
            "valueUs": 36249.00634282753,
            "bblPrice": 100.28736953797282,
            "growthValbath": -2.416550519333447,
            "growthQuantity": -1.2646733059878152,
            "growthBblDay": -1.2646733059877984,
            "growthValueUs": -7.674522899209702,
            "growthBblPrice": -6.491951571787958
        },
        {
            "year": 2015,
            "month": "YTD",
            "valbath": 692359.61965,
            "quantity": 59650.959281,
            "bblDay": 1027909.2125377046,
            "valueUs": 20210.48391362944,
            "bblPrice": 53.867781443230484,
            "growthValbath": -41.4233879968925,
            "growthQuantity": 3.8000964140173745,
            "growthBblDay": 3.8000964140173425,
            "growthValueUs": -44.245412625970026,
            "growthBblPrice": -46.28657457923055
        },
        {
            "year": 2016,
            "month": "YTD",
            "valbath": 586802.94651,
            "quantity": 59963.949109,
            "bblDay": 1030479.4422751253,
            "valueUs": 16551.2916753756,
            "bblPrice": 43.88453233266135,
            "growthValbath": -15.245931470318954,
            "growthQuantity": 0.5247020865592203,
            "growthBblDay": 0.25004443058496806,
            "growthValueUs": -18.105416247783026,
            "growthBblPrice": -18.53287594754601
        },
        {
            "year": 2017,
            "month": "YTD",
            "valbath": 751237.20945,
            "quantity": 63366.712001,
            "bblDay": 1091939.305237599,
            "valueUs": 22047.055335190824,
            "bblPrice": 55.31707764301666,
            "growthValbath": 28.0220581573371,
            "growthQuantity": 5.674681108501703,
            "growthBblDay": 5.964200782771608,
            "growthValueUs": 33.204439675192376,
            "growthBblPrice": 26.051423366420583
        },
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 979151.37522,
            "quantity": 66173.870106,
            "bblDay": 1140312.4363986007,
            "valueUs": 30121.722688525973,
            "bblPrice": 72.37075121309135,
            "growthValbath": 30.338508649865986,
            "growthQuantity": 4.430020142051401,
            "growthBblDay": 4.4300201420514,
            "growthValueUs": 36.624697632280245,
            "growthBblPrice": 30.82894884673573
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 827384.93714,
            "quantity": 63253.987128,
            "bblDay": 1089996.8228896952,
            "valueUs": 26471.70001417163,
            "bblPrice": 66.5370797375414,
            "growthValbath": -15.499793180181198,
            "growthQuantity": -4.412441003258256,
            "growthBblDay": -4.412441003258294,
            "growthValueUs": -12.117576116404237,
            "growthBblPrice": -8.060813764904884
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 562661.57527,
            "quantity": 62952.885541,
            "bblDay": 1081844.2638589146,
            "valueUs": 17937.954385366374,
            "bblPrice": 45.303012613647056,
            "growthValbath": -31.995187486137027,
            "growthQuantity": -0.47601993276833576,
            "growthBblDay": -0.74794337557492,
            "growthValueUs": -32.23724061634391,
            "growthBblPrice": -31.91313356049454
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-import/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products import as yearly (1986-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การนำเข้าน้ำมันสำเร็จรูป รายปี (2529-ปัจจุบัน)

Quantity and Value of Petroleum Products Export (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-export/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        }
    ],
    "crude": [
        {
            "year": 2018,
            "month": "",
            "valbath": 23530.47439,
            "quantity": 1660.955,
            "bblDay": 28621.684658378537,
            "valueUs": 732.9159618938946,
            "bblPrice": 70.15621060264164
        },
        {
            "year": 2019,
            "month": "",
            "valbath": 20534.19215,
            "quantity": 1612.148,
            "bblDay": 27780.63925791828,
            "valueUs": 664.5458467089542,
            "bblPrice": 65.53749666175618
        },
        {
            "year": 2020,
            "month": "",
            "valbath": 11434.35085,
            "quantity": 1429.616,
            "bblDay": 24567.926566505663,
            "valueUs": 367.39661463655256,
            "bblPrice": 40.858795481489864
        },
        {
            "year": 2021,
            "month": "",
            "valbath": 12918.36726,
            "quantity": 938.583,
            "bblDay": 16173.723340918279,
            "valueUs": 406.30613759155653,
            "bblPrice": 68.82567957834492
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 4727.12546,
            "quantity": 233.773,
            "bblDay": 12253.024299222148,
            "valueUs": 143.24832618665306,
            "bblPrice": 97.42378880544808
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 3808.45596,
            "quantity": 329.035,
            "bblDay": 17246.10562509169,
            "valueUs": 125.80296906478631,
            "bblPrice": 60.78810476578606
        },
        {
            "year": 2021,
            "month": "JAN",
            "valbath": 975.98734,
            "quantity": 94.851,
            "bblDay": 19244.667447130934,
            "valueUs": 32.711406575212074,
            "bblPrice": 54.83111966550674
        },
        {
            "year": 2021,
            "month": "FEB",
            "valbath": 1042.76046,
            "quantity": 91.239,
            "bblDay": 20495.224317791748,
            "valueUs": 34.98292253343934,
            "bblPrice": 60.96005933418307
        },
        {
            "year": 2021,
            "month": "MAR",
            "valbath": 1182.29044,
            "quantity": 95.267,
            "bblDay": 19329.07121364903,
            "valueUs": 38.61763366682672,
            "bblPrice": 64.44852442806838
        },
        {
            "year": 2021,
            "month": "APR",
            "valbath": 607.41772,
            "quantity": 47.678,
            "bblDay": 9996.016520955167,
            "valueUs": 19.491006289308174,
            "bblPrice": 64.99591194968572
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 1241.68073,
            "quantity": 95.258,
            "bblDay": 19327.245170623388,
            "valueUs": 39.8933567871486,
            "bblPrice": 66.5838543281275
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 1323.47569,
            "quantity": 93.736,
            "bblDay": 19652.389039142865,
            "valueUs": 42.331038640776086,
            "bblPrice": 71.79964830478161
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 738.6835,
            "quantity": 47.657,
            "bblDay": 9669.303608058097,
            "valueUs": 22.77560578544758,
            "bblPrice": 75.98240686212564
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 1341.43877,
            "quantity": 92.26,
            "bblDay": 18718.96994941858,
            "valueUs": 40.71900539707016,
            "bblPrice": 70.17033024149355
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 1371.89924,
            "quantity": 90.383,
            "bblDay": 18949.409816130963,
            "valueUs": 41.75350959153425,
            "bblPrice": 73.44733511786553
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 798.80104,
            "quantity": 47.576,
            "bblDay": 9652.869220827419,
            "valueUs": 23.979593956477753,
            "bblPrice": 80.13527079074338
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 819.41973,
            "quantity": 47.613,
            "bblDay": 9982.388829486099,
            "valueUs": 24.892604395137038,
            "bblPrice": 83.12173508879613
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 1474.5126,
            "quantity": 95.065,
            "bblDay": 19288.086692407065,
            "valueUs": 44.15845397317873,
            "bblPrice": 73.8521285141293
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 759.58428,
            "quantity": 47.593,
            "bblDay": 9656.318413209161,
            "valueUs": 22.96599716396114,
            "bblPrice": 76.72060784355247
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 1836.21017,
            "quantity": 95.26,
            "bblDay": 21398.47070345839,
            "valueUs": 56.484349227735684,
            "bblPrice": 94.27300738733693
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 2131.33101,
            "quantity": 90.92,
            "bblDay": 18447.092432269,
            "valueUs": 63.79797979495622,
            "bblPrice": 111.56226141223165
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": null,
            "quantity": null,
            "bblDay": null,
            "valueUs": null,
            "bblPrice": null
        }
    ],
    "petroleum": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 193640.49678,
            "quantity": 12413.629749,
            "bblDay": 213912.475739405,
            "valueUs": 6008.700103121034,
            "bblPrice": 76.95760617253603
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 133219.54309,
            "quantity": 9609.922691,
            "bblDay": 165598.81324490855,
            "valueUs": 4312.252347626194,
            "bblPrice": 71.34344601868494
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 99977.84085,
            "quantity": 10820.789423,
            "bblDay": 185955.08159945323,
            "valueUs": 3220.681031667173,
            "bblPrice": 47.32150836762173
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 181515.88634,
            "quantity": 11780.895909,
            "bblDay": 203009.16502890125,
            "valueUs": 5659.516142538255,
            "bblPrice": 76.37844171212451
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 69566.23153,
            "quantity": 2967.068782,
            "bblDay": 155516.5304945792,
            "valueUs": 2095.0017521422915,
            "bblPrice": 112.26040009378706
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 40983.90517,
            "quantity": 3239.3606,
            "bblDay": 169788.48774555922,
            "valueUs": 1349.3781060660715,
            "bblPrice": 66.22838626963801
        },
        {
            "year": 2021,
            "month": "JAN",
            "valbath": 8372.91846,
            "quantity": 750.012583,
            "bblDay": 152172.80514700548,
            "valueUs": 280.62857861061866,
            "bblPrice": 59.48851889235915
        },
        {
            "year": 2021,
            "month": "FEB",
            "valbath": 11219.52615,
            "quantity": 899.665253,
            "bblDay": 202093.85428553322,
            "valueUs": 376.3969091878943,
            "bblPrice": 66.51734563742647
        },
        {
            "year": 2021,
            "month": "MAR",
            "valbath": 10323.18878,
            "quantity": 763.182401,
            "bblDay": 154844.87784786502,
            "valueUs": 337.19051519991643,
            "bblPrice": 70.24522570409108
        },
        {
            "year": 2021,
            "month": "APR",
            "valbath": 11068.27178,
            "quantity": 826.500363,
            "bblDay": 173281.4145543731,
            "valueUs": 355.16210306764214,
            "bblPrice": 68.32086868269757
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 14506.34343,
            "quantity": 1051.011399,
            "bblDay": 213243.55944480057,
            "valueUs": 466.0672587951808,
            "bblPrice": 70.5035488162638
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 14258.17944,
            "quantity": 953.046919,
            "bblDay": 199812.75950269256,
            "valueUs": 456.0443001576848,
            "bblPrice": 76.07860834191612
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 14995.67859,
            "quantity": 942.046696,
            "bblDay": 191135.31100555995,
            "valueUs": 462.35723967181667,
            "bblPrice": 78.03241373018164
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 19896.88042,
            "quantity": 1296.30829,
            "bblDay": 263012.74578031775,
            "valueUs": 603.9643398757885,
            "bblPrice": 74.07519579840998
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 16354.34696,
            "quantity": 1002.24877,
            "bblDay": 210128.26173553773,
            "valueUs": 497.74164366301346,
            "bblPrice": 78.95838467926775
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 21654.40107,
            "quantity": 1146.859251,
            "bblDay": 232690.48185217453,
            "valueUs": 650.0539170921928,
            "bblPrice": 90.11748581037367
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 23118.21692,
            "quantity": 1236.089473,
            "bblDay": 259154.55332620366,
            "valueUs": 702.2928629147401,
            "bblPrice": 90.33127836921163
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 15747.93434,
            "quantity": 913.924511,
            "bblDay": 185429.4976961413,
            "valueUs": 471.6164743017664,
            "bblPrice": 82.04430710277589
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 14573.281,
            "quantity": 743.698253,
            "bblDay": 150891.6675627792,
            "valueUs": 440.6225075058278,
            "bblPrice": 94.19757567771521
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 15088.30872,
            "quantity": 700.395437,
            "bblDay": 157331.4217875327,
            "valueUs": 464.1371194433422,
            "bblPrice": 105.35928237393344
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 20243.88083,
            "quantity": 799.465138,
            "bblDay": 162206.4154978288,
            "valueUs": 605.9681457756492,
            "bblPrice": 120.50916408674122
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 19660.76098,
            "quantity": 723.509954,
            "bblDay": 151688.77581399132,
            "valueUs": 584.2739794174723,
            "bblPrice": 128.39314714885685
        }
    ],
    "others": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 54331.00889,
            "quantity": 3732.90104,
            "bblDay": 64325.59366618171,
            "valueUs": 1689.535892639206,
            "bblPrice": 71.9599337599127
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 35659.6896,
            "quantity": 2998.8569,
            "bblDay": 51676.497272594606,
            "valueUs": 1154.426508061878,
            "bblPrice": 61.20407763263362
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 33937.76353,
            "quantity": 3031.31828,
            "bblDay": 52093.152918507774,
            "valueUs": 1091.4919295629281,
            "bblPrice": 57.24779975305406
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 52826.11664,
            "quantity": 2795.77098,
            "bblDay": 48176.90748190338,
            "valueUs": 1651.8996582495938,
            "bblPrice": 93.94028643401516
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 14866.15176,
            "quantity": 625.7364,
            "bblDay": 32797.47153908981,
            "valueUs": 448.2236995596073,
            "bblPrice": 113.88675166249475
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 13732.71965,
            "quantity": 855.4635,
            "bblDay": 44838.43323479391,
            "valueUs": 451.6964007484114,
            "bblPrice": 83.94888940906432
        },
        {
            "year": 2021,
            "month": "JAN",
            "valbath": 3804.7893,
            "quantity": 294.30622,
            "bblDay": 59712.86893677558,
            "valueUs": 127.52215589734651,
            "bblPrice": 68.8899730563607
        },
        {
            "year": 2021,
            "month": "FEB",
            "valbath": 2229.96388,
            "quantity": 139.458,
            "bblDay": 31326.768080651374,
            "valueUs": 74.81167215182653,
            "bblPrice": 85.28953344676626
        },
        {
            "year": 2021,
            "month": "MAR",
            "valbath": 4082.52797,
            "quantity": 230.9248,
            "bblDay": 46853.180053928256,
            "valueUs": 133.34927209597816,
            "bblPrice": 91.80997783927914
        },
        {
            "year": 2021,
            "month": "APR",
            "valbath": 3615.4385,
            "quantity": 190.77448,
            "bblDay": 39997.16544017369,
            "valueUs": 116.01330060326016,
            "bblPrice": 96.68460195993026
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 4186.138,
            "quantity": 205.39774,
            "bblDay": 41673.90117860841,
            "valueUs": 134.4943935742972,
            "bblPrice": 104.10661594610525
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 4873.46706,
            "quantity": 237.44416,
            "bblDay": 49781.78082478906,
            "valueUs": 155.8766239457027,
            "bblPrice": 104.37327429374406
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 3803.65538,
            "quantity": 181.8283,
            "bblDay": 36891.81100860377,
            "valueUs": 117.27696026590121,
            "bblPrice": 102.54654480450026
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 4827.15407,
            "quantity": 247.31638,
            "bblDay": 50178.9278692709,
            "valueUs": 146.52693587260728,
            "bblPrice": 94.19641972111242
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 4908.51497,
            "quantity": 241.92292,
            "bblDay": 50720.78327777358,
            "valueUs": 149.38978089971422,
            "bblPrice": 98.17788767284179
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 5538.77425,
            "quantity": 268.3945,
            "bblDay": 54455.54498254008,
            "valueUs": 166.27113746821686,
            "bblPrice": 98.49474615192281
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 5268.69224,
            "quantity": 254.63276,
            "bblDay": 53385.48755686867,
            "valueUs": 160.0540807213031,
            "bblPrice": 99.93607379459081
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 5687.00102,
            "quantity": 303.37072,
            "bblDay": 61551.99860409063,
            "valueUs": 170.3133447534395,
            "bblPrice": 89.25752189383918
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 3712.12935,
            "quantity": 174.3702,
            "bblDay": 35378.60973199697,
            "valueUs": 112.23606697647418,
            "bblPrice": 102.33636417570217
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 3047.81074,
            "quantity": 134.42408,
            "bblDay": 30195.987169003627,
            "valueUs": 93.75484845408711,
            "bblPrice": 110.88849078019103
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 6187.73228,
            "quantity": 216.41782,
            "bblDay": 43909.80564815312,
            "valueUs": 185.2198542243508,
            "bblPrice": 136.07060926466272
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 1918.47939,
            "quantity": 100.5243,
            "bblDay": 21075.6022391341,
            "valueUs": 57.01292990469511,
            "bblPrice": 90.17208501374955
        }
    ],
    "total": [
        {
            "year": 2018,
            "month": "YTD",
            "valbath": 271501.98006,
            "quantity": 17807.485789,
            "bblDay": 306859.7540639652,
            "valueUs": 8431.151957654134,
            "bblPrice": 75.27558160823976
        },
        {
            "year": 2019,
            "month": "YTD",
            "valbath": 189413.42484,
            "quantity": 14220.927591,
            "bblDay": 245055.94977542147,
            "valueUs": 6131.224702397026,
            "bblPrice": 68.54710490552203
        },
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 145349.95523,
            "quantity": 15281.723703,
            "bblDay": 262616.1610844667,
            "valueUs": 4679.569575866653,
            "bblPrice": 48.68591929331814
        },
        {
            "year": 2021,
            "month": "YTD",
            "valbath": 247260.37024,
            "quantity": 15515.249889,
            "bblDay": 267359.7958517229,
            "valueUs": 7717.721938379405,
            "bblPrice": 79.08610043418625
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "valbath": 89159.50875,
            "quantity": 3826.578182,
            "bblDay": 200567.02633289114,
            "valueUs": 2686.4737778885524,
            "bblPrice": 111.61995015694808
        },
        {
            "year": 2021,
            "month": "(4 MTHS)",
            "valbath": 58525.08078,
            "quantity": 4423.8591,
            "bblDay": 231873.02660544481,
            "valueUs": 1926.877475879269,
            "bblPrice": 69.25045372490452
        },
        {
            "year": 2021,
            "month": "JAN",
            "valbath": 13153.6951,
            "quantity": 1139.169803,
            "bblDay": 231130.34153091197,
            "valueUs": 440.8621410831772,
            "bblPrice": 61.52960833953472
        },
        {
            "year": 2021,
            "month": "FEB",
            "valbath": 14492.25049,
            "quantity": 1130.362253,
            "bblDay": 253915.8466839763,
            "valueUs": 486.19150387316023,
            "bblPrice": 68.38479168570959
        },
        {
            "year": 2021,
            "month": "MAR",
            "valbath": 15588.00719,
            "quantity": 1089.374201,
            "bblDay": 221027.1291154423,
            "valueUs": 509.15742096272135,
            "bblPrice": 74.30957910014234
        },
        {
            "year": 2021,
            "month": "APR",
            "valbath": 15291.128,
            "quantity": 1064.952843,
            "bblDay": 223274.59651550197,
            "valueUs": 490.6664099602105,
            "bblPrice": 73.2530581352461
        },
        {
            "year": 2021,
            "month": "MAY",
            "valbath": 19934.16216,
            "quantity": 1351.667139,
            "bblDay": 274244.7057940324,
            "valueUs": 640.4550091566266,
            "bblPrice": 75.33359284087238
        },
        {
            "year": 2021,
            "month": "JUN",
            "valbath": 20455.12219,
            "quantity": 1284.227079,
            "bblDay": 269246.9293666245,
            "valueUs": 654.2519627441635,
            "bblPrice": 80.99776220081984
        },
        {
            "year": 2021,
            "month": "JUL",
            "valbath": 19538.01747,
            "quantity": 1171.531996,
            "bblDay": 237696.42562222184,
            "valueUs": 602.4098057231655,
            "bblPrice": 81.7537509337705
        },
        {
            "year": 2021,
            "month": "AUG",
            "valbath": 26065.47326,
            "quantity": 1635.88467,
            "bblDay": 331910.6435990072,
            "valueUs": 791.2102811454658,
            "bblPrice": 76.89693833937469
        },
        {
            "year": 2021,
            "month": "SEP",
            "valbath": 22634.76117,
            "quantity": 1334.55469,
            "bblDay": 279798.45482944226,
            "valueUs": 688.8849341542619,
            "bblPrice": 82.06918495126406
        },
        {
            "year": 2021,
            "month": "OCT",
            "valbath": 27991.97636,
            "quantity": 1462.829751,
            "bblDay": 296798.89605554205,
            "valueUs": 840.3046485168875,
            "bblPrice": 91.3298597983607
        },
        {
            "year": 2021,
            "month": "NOV",
            "valbath": 29206.32889,
            "quantity": 1538.335233,
            "bblDay": 322522.4297125584,
            "valueUs": 887.2395480311802,
            "bblPrice": 91.69796850221286
        },
        {
            "year": 2021,
            "month": "DEC",
            "valbath": 22909.44796,
            "quantity": 1312.360231,
            "bblDay": 266269.582992639,
            "valueUs": 686.0882730283847,
            "bblPrice": 83.11831763270166
        },
        {
            "year": 2022,
            "month": "JAN",
            "valbath": 19044.99463,
            "quantity": 965.661453,
            "bblDay": 195926.59570798537,
            "valueUs": 575.8245716462632,
            "bblPrice": 94.80584356103556
        },
        {
            "year": 2022,
            "month": "FEB",
            "valbath": 19972.32963,
            "quantity": 930.079517,
            "bblDay": 208925.87965999468,
            "valueUs": 614.376317125165,
            "bblPrice": 105.02294575285316
        },
        {
            "year": 2022,
            "month": "MAR",
            "valbath": 28562.94412,
            "quantity": 1106.802958,
            "bblDay": 224563.3135782509,
            "valueUs": 854.9859797949562,
            "bblPrice": 122.81700183855253
        },
        {
            "year": 2022,
            "month": "APR",
            "valbath": 21579.24037,
            "quantity": 824.034254,
            "bblDay": 172764.37805312543,
            "valueUs": 641.2869093221675,
            "bblPrice": 123.73054301833957
        }
    ],
    "growth": [
        {
            "year": 2018,
            "month": "",
            "growthValbath": 11.334260230797613,
            "growthQuantity": -12.430835092936018,
            "growthBblDay": -12.43083509293608,
            "growthValueUs": 17.207964980535166,
            "growthBblPrice": 33.846160466331455
        },
        {
            "year": 2019,
            "month": "",
            "growthValbath": -12.733624449464406,
            "growthQuantity": -2.938490205935743,
            "growthBblDay": -2.9384902059357136,
            "growthValueUs": -9.328506778358104,
            "growthBblPrice": -6.583471229718249
        },
        {
            "year": 2020,
            "month": "",
            "growthValbath": -44.315555408884194,
            "growthQuantity": -11.322285546984515,
            "growthBblDay": -11.564574384287795,
            "growthValueUs": -44.714632337856095,
            "growthBblPrice": -37.65584960871316
        },
        {
            "year": 2021,
            "month": "",
            "growthValbath": 12.978580327539976,
            "growthQuantity": -34.34719533077414,
            "growthBblDay": -34.16732463305024,
            "growthValueUs": 10.590604650370897,
            "growthBblPrice": 68.4476469932277
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 24.121835978904176,
            "growthQuantity": -28.951935204461538,
            "growthBblDay": -28.951935204461538,
            "growthValueUs": 13.867206196765276,
            "growthBblPrice": 60.26785039740543
        }
    ],
    "growthPetroleum": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 29.478667715653184,
            "growthQuantity": 7.012909955881059,
            "growthBblDay": 7.012909955881044,
            "growthValueUs": 34.872393331338465,
            "growthBblPrice": 26.033759279084396
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -31.202643400902762,
            "growthQuantity": -22.585715175094997,
            "growthBblDay": -22.58571517509511,
            "growthValueUs": -28.2331906465705,
            "growthBblPrice": -7.295133558682107
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -24.952571874190173,
            "growthQuantity": 12.600171415884706,
            "growthBblDay": 12.292520674311382,
            "growthValueUs": -25.31325228589436,
            "growthBblPrice": -33.670840128428665
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 81.55611763244036,
            "growthQuantity": 8.872795213621455,
            "growthBblDay": 9.17107684434377,
            "growthValueUs": 75.72420512591488,
            "growthBblPrice": 61.40322729945794
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 69.74036817975589,
            "growthQuantity": -8.405727290749914,
            "growthBblDay": -8.4057272907499,
            "growthValueUs": 55.256835924956896,
            "growthBblPrice": 69.50496066254318
        }
    ],
    "growthOthers": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 29.202461392691514,
            "growthQuantity": 14.44483076091754,
            "growthBblDay": 14.444830760917734,
            "growthValueUs": 35.67416521252739,
            "growthBblPrice": 18.54984127326732
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -34.36586154290352,
            "growthQuantity": -19.664173577984805,
            "growthBblDay": -19.664173577984702,
            "growthValueUs": -31.67197494345263,
            "growthBblPrice": -14.947006709546102
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -4.828774701392806,
            "growthQuantity": 1.0824584527524381,
            "growthBblDay": 0.8062768722796761,
            "growthValueUs": -5.451588131375139,
            "growthBblPrice": -6.464075650851893
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 55.65585691379825,
            "growthQuantity": -7.770457544959621,
            "growthBblDay": -7.517773867000906,
            "growthValueUs": 51.3432773535094,
            "growthBblPrice": 64.09414307491114
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 8.253515245976798,
            "growthQuantity": -26.85410891288757,
            "growthBblDay": -26.854108912887938,
            "growthValueUs": -0.7688131193983826,
            "growthBblPrice": 35.66201109290424
        }
    ],
    "growthTotal": [
        {
            "year": 2018,
            "month": "YTD",
            "growthValbath": 27.621487907467735,
            "growthQuantity": 6.258755030626058,
            "growthBblDay": 6.258755030626095,
            "growthValueUs": 33.28405598086079,
            "growthBblPrice": 25.43348163870868
        },
        {
            "year": 2019,
            "month": "YTD",
            "growthValbath": -30.234974787977237,
            "growthQuantity": -20.14073317534517,
            "growthBblDay": -20.140733175345208,
            "growthValueUs": -27.278920683776114,
            "growthBblPrice": -8.938458606318122
        },
        {
            "year": 2020,
            "month": "YTD",
            "growthValbath": -23.263118571041623,
            "growthQuantity": 7.4594016825691885,
            "growthBblDay": 7.165796759939126,
            "growthValueUs": -23.676430028128674,
            "growthBblPrice": -28.974506858573264
        },
        {
            "year": 2021,
            "month": "YTD",
            "growthValbath": 70.11382621256278,
            "growthQuantity": 1.5281403494695873,
            "growthBblDay": 1.8062996380982397,
            "growthValueUs": 64.92375662456281,
            "growthBblPrice": 62.4414236849798
        },
        {
            "year": 2022,
            "month": "(4 MTHS)",
            "growthValbath": 52.34410198450989,
            "growthQuantity": -13.501354914309985,
            "growthBblDay": -13.50135491431005,
            "growthValueUs": 39.42110027845262,
            "growthBblPrice": 61.182987479555294
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/current

Query Parameters

Parameter Type Default Description
date String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products export in current year and 4 years ago

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การส่งออกน้ำมันสำเร็จรูป ของปีปัจจุบันและย้อนหลัง 4 ปี

Quantity and Value of Petroleum Products Export (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-export/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        }
    ],
    "crude": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 1589.5408,
            "quantity": 124.093,
            "bblDay": 25177.684131077356,
            "valueUs": 52.52214828080702,
            "bblPrice": 67.29224335913817,
            "growthValbath": -20.122225988226777,
            "growthQuantity": -24.73053710611713,
            "growthBblDay": -24.730537106117147,
            "growthValueUs": -16.480980654577042,
            "growthBblPrice": 10.960030979855112
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 1830.30825,
            "quantity": 166.038,
            "bblDay": 36011.37351947962,
            "valueUs": 58.727347254397394,
            "bblPrice": 56.2344821063651,
            "growthValbath": 393.04241708059544,
            "growthQuantity": 480.10621200475157,
            "growthBblDay": 460.1025495218312,
            "growthValueUs": 392.5314381973275,
            "growthBblPrice": -15.096334428962926
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 681.22624,
            "quantity": 89.933,
            "bblDay": 18246.836380458066,
            "valueUs": 21.338732756136373,
            "bblPrice": 37.72414042562938,
            "growthValbath": -70.300160512468,
            "growthQuantity": -45.503738804794395,
            "growthBblDay": -45.50373880479427,
            "growthValueUs": -70.64363386635395,
            "growthBblPrice": -46.13141252297754
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 901.30049,
            "quantity": 191.08,
            "bblDay": 40061.219783214765,
            "valueUs": 27.757689026587375,
            "bblPrice": 23.096059128831584,
            "growthValbath": -71.70858658432326,
            "growthQuantity": -12.742085002032116,
            "growthBblDay": -12.74208500203217,
            "growthValueUs": -72.397175972854,
            "growthBblPrice": -68.36639515419448
        }
    ],
    "petroleum": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 11621.10619,
            "quantity": 844.674362,
            "bblDay": 171379.08085109704,
            "valueUs": 383.9885471943749,
            "bblPrice": 72.2767753645092,
            "growthValbath": 0.672467921867993,
            "growthQuantity": -2.0643758755849064,
            "growthBblDay": -2.0643758755848354,
            "growthValueUs": 5.261643804429189,
            "growthBblPrice": 7.4804441647374516
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 10846.77645,
            "quantity": 827.093845,
            "bblDay": 179385.35388258946,
            "valueUs": 348.030123980466,
            "bblPrice": 66.9008840365082,
            "growthValbath": -11.88131631476347,
            "growthQuantity": -8.040458870162082,
            "growthBblDay": -11.211477529811596,
            "growthValueUs": -11.972640681642746,
            "growthBblPrice": -4.275991118669089
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 8641.89212,
            "quantity": 941.078733,
            "bblDay": 190938.9174405358,
            "valueUs": 270.698654320833,
            "bblPrice": 45.733026941614554,
            "growthValbath": -27.27880308975034,
            "growthQuantity": 16.612630610476337,
            "growthBblDay": 16.612630610476387,
            "growthValueUs": -28.11981077977002,
            "growthBblPrice": -38.3598596104629
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 5872.52388,
            "quantity": 978.015732,
            "bblDay": 205047.64073212026,
            "valueUs": 180.8583191408764,
            "bblPrice": 29.401024154699506,
            "growthValbath": -51.20534294378244,
            "growthQuantity": 21.92270858653678,
            "growthBblDay": 21.92270858653699,
            "growthValueUs": -52.392964169072286,
            "growthBblPrice": -60.95310186031694
        }
    ],
    "others": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 4145.07801,
            "quantity": 277.5173,
            "bblDay": 56306.50335078833,
            "valueUs": 136.96307881919893,
            "bblPrice": 78.46631507824802,
            "growthValbath": 121.29600385057408,
            "growthQuantity": 61.16700402189687,
            "growthBblDay": 61.16700402189609,
            "growthValueUs": 131.38382929820702,
            "growthBblPrice": 43.567742480819014
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 4427.6882,
            "quantity": 313.55316,
            "bblDay": 68005.39613204838,
            "valueUs": 142.0669892383415,
            "bblPrice": 72.0363673547546,
            "growthValbath": 27.265936560591296,
            "growthQuantity": 1.873451932265342,
            "growthBblDay": -1.6394257205719305,
            "growthValueUs": 27.134040796882285,
            "growthBblPrice": 24.79604684585847
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 3935.37646,
            "quantity": 396.81914,
            "bblDay": 80512.09144823383,
            "valueUs": 123.27174386989263,
            "bblPrice": 49.39019463092039,
            "growthValbath": 22.42227073330411,
            "growthQuantity": 46.94804230062727,
            "growthBblDay": 46.948042300626454,
            "growthValueUs": 21.00647897669364,
            "growthBblPrice": -17.653561706430597
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 2384.90076,
            "quantity": 337.4235,
            "bblDay": 70743.12849864711,
            "valueUs": 73.44868264229157,
            "bblPrice": 34.60815874797706,
            "growthValbath": -28.669335445797863,
            "growthQuantity": 34.399042718473055,
            "growthBblDay": 34.39904271847271,
            "growthValueUs": -30.405464283449074,
            "growthBblPrice": -48.21798257720374
        }
    ],
    "total": [
        {
            "year": 2020,
            "month": "JAN",
            "valbath": 17355.725,
            "quantity": 1246.284662,
            "bblDay": 252863.26833296273,
            "valueUs": 573.4737742943809,
            "bblPrice": 73.15872380933173,
            "growthValbath": 12.651684081120344,
            "growthQuantity": 3.8971807773687903,
            "growthBblDay": 3.897180777368719,
            "growthValueUs": 17.786935082577955,
            "growthBblPrice": 13.368749951908985
        },
        {
            "year": 2020,
            "month": "FEB",
            "valbath": 17104.7729,
            "quantity": 1306.685005,
            "bblDay": 283402.1235341175,
            "valueUs": 548.8244604732048,
            "bblPrice": 66.77783906354344,
            "growthValbath": 5.84903997120804,
            "growthQuantity": 5.734292251252819,
            "growthBblDay": 2.0882821736234116,
            "growthValueUs": 5.739340232674917,
            "growthBblPrice": 0.004774214036550461
        },
        {
            "year": 2020,
            "month": "MAR",
            "valbath": 13258.49482,
            "quantity": 1427.830873,
            "bblDay": 289697.8452692277,
            "valueUs": 415.30913094686196,
            "bblPrice": 46.24497199063019,
            "growthValbath": -23.766221256148434,
            "growthQuantity": 14.954903658372794,
            "growthBblDay": 14.954903658372645,
            "growthValueUs": -24.6478513294538,
            "growthBblPrice": -34.450687815388406
        },
        {
            "year": 2020,
            "month": "APR",
            "valbath": 9158.72513,
            "quantity": 1506.519232,
            "bblDay": 315851.9890139821,
            "valueUs": 282.06469080975535,
            "bblPrice": 29.767602191382633,
            "growthValbath": -50.66510577559323,
            "growthQuantity": 18.41801987449066,
            "growthBblDay": 18.418019874490668,
            "growthValueUs": -51.86587592263682,
            "growthBblPrice": -59.35236535083109
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products export as monthly (1989-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การส่งออกน้ำมันสำเร็จรูป รายเดือน (2532-ปัจจุบัน)

Quantity and Value of Petroleum Products Export (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-export/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        }
    ],
    "crude": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 4101.07529,
            "quantity": 380.064,
            "bblDay": 26269.120526620954,
            "valueUs": 132.58822829134078,
            "bblPrice": 55.46487543161233,
            "growthValbath": -11.897616598227282,
            "growthQuantity": 6.0112185611121625,
            "growthBblDay": 4.846260115385817,
            "growthValueUs": -10.108840666554798,
            "growthBblPrice": -15.20599371129233
        }
    ],
    "petroleum": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 31109.77476,
            "quantity": 2612.84694,
            "bblDay": 180593.77153445838,
            "valueUs": 1002.7173254956739,
            "bblPrice": 61.014682926876034,
            "growthValbath": -12.946425800765718,
            "growthQuantity": 1.710632802183183,
            "growthBblDay": 0.5929335406208248,
            "growthValueUs": -11.791429015710406,
            "growthBblPrice": -13.27497572859841
        }
    ],
    "others": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 12508.14267,
            "quantity": 987.8896,
            "bblDay": 68280.581610979,
            "valueUs": 402.3018119274331,
            "bblPrice": 64.7460658340196,
            "growthValbath": 46.00772774321925,
            "growthQuantity": 31.71514659067507,
            "growthBblDay": 30.267727397370226,
            "growthValueUs": 47.465462399313765,
            "growthBblPrice": 11.957862262861859
        }
    ],
    "total": [
        {
            "year": 2020,
            "month": "Q1",
            "valbath": 47718.99272,
            "quantity": 3980.80054,
            "bblDay": 275143.4736720584,
            "valueUs": 1537.6073657144477,
            "bblPrice": 61.41081237768869,
            "growthValbath": -2.530795680553595,
            "growthQuantity": 8.249373059243847,
            "growthBblDay": 7.059819509142219,
            "growthValueUs": -1.249746319304933,
            "growthBblPrice": -8.775218839697068
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products export as querterly (1989-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การส่งออกน้ำมันสำเร็จรูป รายไตรมาส (2532-ปัจจุบัน)

Quantity and Value of Petroleum Products Export (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/petroleum-export/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "unitTitle": "",
    "footer": [
        {
            "line": "Source : Department of Energy Business (DOEB)"
        },
        {
            "line": "Compiled by : Energy Policy and Planning Office (EPPO)"
        }
    ],
    "crude": [
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 11434.35085,
            "quantity": 1429.616,
            "bblDay": 24567.926566505666,
            "valueUs": 367.39661463655256,
            "bblPrice": 40.85879548148986,
            "growthValbath": -44.315555408884194,
            "growthQuantity": -11.322285546984515,
            "growthBblDay": -11.564574384287795,
            "growthValueUs": -44.71463233785609,
            "growthBblPrice": -37.65584960871314
        }
    ],
    "petroleum": [
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 99977.84085,
            "quantity": 10820.789423,
            "bblDay": 185955.08159945323,
            "valueUs": 3220.6810316671736,
            "bblPrice": 47.32150836762174,
            "growthValbath": -24.952571874190173,
            "growthQuantity": 12.600171415884706,
            "growthBblDay": 12.292520674311362,
            "growthValueUs": -25.313252285894368,
            "growthBblPrice": -33.67084012842865
        }
    ],
    "others": [
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 33937.76353,
            "quantity": 3031.31828,
            "bblDay": 52093.152918507774,
            "valueUs": 1091.4919295629281,
            "bblPrice": 57.24779975305406,
            "growthValbath": -4.828774701392806,
            "growthQuantity": 1.0824584527524381,
            "growthBblDay": 0.8062768722796761,
            "growthValueUs": -5.451588131375158,
            "growthBblPrice": -6.464075650851915
        }
    ],
    "total": [
        {
            "year": 2020,
            "month": "YTD",
            "valbath": 145349.95523,
            "quantity": 15281.723703,
            "bblDay": 262616.1610844667,
            "valueUs": 4679.569575866654,
            "bblPrice": 48.68591929331814,
            "growthValbath": -23.263118571041623,
            "growthQuantity": 7.4594016825691885,
            "growthBblDay": 7.165796759939114,
            "growthValueUs": -23.676430028128674,
            "growthBblPrice": -28.974506858573264
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/petroleum-export/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity (Unit: Million Litre, Barrels/Day), value (Unit: Million Baht, Million US$) and price (Unit: US$/Barrel) of petroleum products export as yearly (1989-present)

ปริมาณ (หน่วย: ล้านลิตร, บาร์เรล/วัน) ราคา (หน่วย: ล้านบาท, ล้านดอลล่าร์สหรัฐ) และมูลค่า (หน่วย: ดอลล่าร์สหรัฐ/บาร์เรล) การส่งออกน้ำมันสำเร็จรูป รายปี (2532-ปัจจุบัน)

Oil (Petroleum Products)

Production of Petroleum Products (Million Litres) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-mill/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 13085.306999999999
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 4766.355
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products production classified by energy type in current year and 3 years ago (Unit: Million Litres)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: ล้านลิตร)

Production of Petroleum Products (Million Litres) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-mill/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1112.069,
        "share": 20.443802802477915,
        "growth": 3.6869036275111178
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 398.435,
        "share": 7.324659323841676,
        "growth": -0.07624034769611043
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 713.634,
        "share": 13.11914347863624,
        "growth": 5.9138867327508615
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 160.028,
        "share": 2.9418865869608233,
        "growth": -10.56090854217434
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 2200.062,
        "share": 40.44500267629542,
        "growth": 0.010182567989081015
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 2200.062,
        "share": 40.44500267629542,
        "growth": 0.010182567989081015
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 661.378,
        "share": 12.158491433442745,
        "growth": -5.678986992280355
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 420.635,
        "share": 7.732774667597332,
        "growth": -13.940270597068983
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 885.466656,
        "share": 16.278041833225767,
        "growth": 3.645964686203307
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 5439.638656,
        "share": 100,
        "growth": -1.0178704445130804
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products production classified by energy type as monthly (Unit: Million Litres) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Production of Petroleum Products (Million Litres) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-mill/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 3193.086,
        "share": 19.942480566263363,
        "growth": -0.5995618155703042
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 1142.098,
        "share": 7.1329952183462195,
        "growth": -4.278757909734743
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 2050.988,
        "share": 12.809485347917143,
        "growth": 1.574488063565882
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 471.973,
        "share": 2.947716528869256,
        "growth": -7.808590308800289
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 6625.417,
        "share": 41.3791704219338,
        "growth": 1.4158444591630515
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 6625.417,
        "share": 41.3791704219338,
        "growth": 1.4158444591630515
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 1682.036,
        "share": 10.50518847339388,
        "growth": -15.516121660208281
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 1377.974,
        "share": 8.60616335288689,
        "growth": -7.736117639339168
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 2660.992559,
        "share": 16.619280656652816,
        "growth": -1.626352476185433
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 16011.478559,
        "share": 100,
        "growth": -2.6460772240092467
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products production classified by energy type as quarterly (Unit: Million Litres) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Production of Petroleum Products (Million Litres) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-mill/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 13019.402,
        "share": 21.624303614513188,
        "growth": -0.503656505728145
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 4344.019,
        "share": 7.215107557414233,
        "growth": -8.86077516257181
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 8675.383,
        "share": 14.409196057098955,
        "growth": 4.284566132849443
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 1657.136,
        "share": 2.752385400999211,
        "growth": -19.14871609720874
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 27605.09,
        "share": 45.85009722151308,
        "growth": 7.670099578428369
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 27605.09,
        "share": 45.85009722151308,
        "growth": 7.670099578428369
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 3011.348,
        "share": 5.001635516051894,
        "growth": -57.638579409129996
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 4736.892,
        "share": 7.86764175475637,
        "growth": -13.562730947145607
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 10177.39801,
        "share": 16.903936492166256,
        "growth": -8.09818012958189
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 60207.26601,
        "share": 100,
        "growth": -6.563505311112916
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-mill/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products production classified by energy type as yearly (Unit: Million Litres) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Production of Petroleum Products (Barrel/Day) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-barrel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 225486.8618427787
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 82134.13956421797
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  PREMIUM",
        "qty": 143352.72227856077
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products production classified by energy type in current year and 3 years ago (Unit: Barrels/Day)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: บาร์เรล/วัน)

Production of Petroleum Products (Barrel/Day) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-barrel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 225631.7601634501,
        "share": 20.44380280247785,
        "growth": 3.6869036275111178
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 80839.93921305632,
        "share": 7.324659323841661,
        "growth": -0.07624034769618815
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 144791.82095039377,
        "share": 13.119143478636191,
        "growth": 5.913886732750884
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 32468.668145085165,
        "share": 2.941886586960824,
        "growth": -10.560908542174296
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 446378.6523396681,
        "share": 40.44500267629545,
        "growth": 0.010182567989147628
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 446378.65233966813,
        "share": 40.44500267629545,
        "growth": 0.010182567989147628
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 134189.40935623858,
        "share": 12.158491433442753,
        "growth": -5.678986992280343
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 85344.1786762809,
        "share": 7.732774667597324,
        "growth": -13.940270597068949
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 179655.57906867747,
        "share": 16.278041833225792,
        "growth": 3.645964686203307
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 1103668.2477494003,
        "share": 100,
        "growth": -1.0178704445130693
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products production classified by energy type as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Production of Petroleum Products (Barrel/Day) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-barrel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 220698.51652844183,
        "share": 19.942480566263296,
        "growth": -0.5995618155703153
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 78939.09977059827,
        "share": 7.1329952183462,
        "growth": -4.278757909734832
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 141759.41675784357,
        "share": 12.809485347917096,
        "growth": 1.5744880635659042
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 32621.652201499932,
        "share": 2.9477165288692557,
        "growth": -7.808590308800312
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 457933.0789343995,
        "share": 41.37917042193385,
        "growth": 1.4158444591631403
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 457933.07893439964,
        "share": 41.37917042193386,
        "growth": 1.4158444591631403
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 116258.33126556434,
        "share": 10.505188473393886,
        "growth": -15.516121660208293
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 95242.28837393167,
        "share": 8.606163352886888,
        "growth": -7.736117639339135
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 183921.482310381,
        "share": 16.619280656652844,
        "growth": -1.626352476185433
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 1106675.349614218,
        "share": 100,
        "growth": -2.6460772240092467
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products production classified by energy type as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Production of Petroleum Products (Barrel/Day) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/prod-barrel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 223738.20122033887,
        "share": 21.624303614513117,
        "growth": -0.5036565057281561
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 74651.8923931357,
        "share": 7.2151075574142105,
        "growth": -8.860775162571855
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 149086.3088272032,
        "share": 14.409196057098908,
        "growth": 4.2845661328494655
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 28477.85388433882,
        "share": 2.7523854009992097,
        "growth": -19.148716097208773
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 474393.0006251895,
        "share": 45.85009722151314,
        "growth": 7.670099578428502
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 474393.00062518945,
        "share": 45.85009722151314,
        "growth": 7.670099578428458
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 51749.96399746067,
        "share": 5.001635516051895,
        "growth": -57.63857940913002
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 81403.40819455577,
        "share": 7.867641754756362,
        "growth": -13.56273094714563
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 174898.41114521757,
        "share": 16.90393649216628,
        "growth": -8.0981801295819
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Production",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 1034660.8390671011,
        "share": 100,
        "growth": -6.563505311112927
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/prod-barrel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products production classified by energy type as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการผลิตน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Sale of Petroleum Products (Million Litres) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-mill/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 11750.469
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 3485.4290000000005
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products sale classified by energy type in current year and 3 years ago (Unit: Million Litres)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: ล้านลิตร)

Sale of Petroleum Products (Million Litres) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-mill/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 984.43,
        "share": 20.223381992858837,
        "growth": 1.832494582167432
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 282.594,
        "share": 5.805396433357323,
        "growth": -3.915215107324155
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 701.836,
        "share": 14.417985559501515,
        "growth": 4.345783415550852
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 0.662,
        "share": 0.013599625041163467,
        "growth": -14.025974025974019
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 2088.185,
        "share": 42.89808612776727,
        "growth": -1.5219360732144027
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 2088.185,
        "share": 42.89808612776727,
        "growth": -1.5219360732144027
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 693.802,
        "share": 14.252941167385643,
        "growth": 3.234513379678128
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 126.656,
        "share": 2.6019246362743202,
        "growth": -32.215145838908214
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 974.046266,
        "share": 20.010066450672763,
        "growth": -4.309471803088016
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 4867.781266,
        "share": 100,
        "growth": -1.953518325439041
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as monthly (Unit: Million Litres) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Sale of Petroleum Products (Million Litres) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-mill/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 2833.605,
        "share": 20.6095515853633,
        "growth": -1.2129078411767469
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 792.785,
        "share": 5.766133019105431,
        "growth": -8.732721573123992
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as quarterly (Unit: Million Litres) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Sale of Petroleum Products (Million Litres) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-mill/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 11608.388,
        "share": 22.888378666682883,
        "growth": -1.2091517368370441
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 3006.558,
        "share": 5.928061500644598,
        "growth": -13.739226935909466
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-mill/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as yearly (Unit: Million Litres) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Sale of Petroleum Products (Barrel/Day) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-barrel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 202484.84655276753
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 60061.1393669109
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products sale classified by energy type in current year and 3 years ago (Unit: Barrels/Day)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: บาร์เรล/วัน)

Sale of Petroleum Products (Barrel/Day) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-barrel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 199734.6150802739,
        "share": 20.223381992858794,
        "growth": 1.8324945821673877
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 57336.53364281355,
        "share": 5.805396433357313,
        "growth": -3.9152151073242436
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Sale of Petroleum Products (Barrel/Day) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-barrel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 195852.04405004287,
        "share": 20.60955158536325,
        "growth": -1.2129078411768246
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 54795.41528978571,
        "share": 5.766133019105416,
        "growth": -8.732721573124136
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 141056.62876025715,
        "share": 14.843418566257832,
        "growth": 2.0535015539403068
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Sale of Petroleum Products (Barrel/Day) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-barrel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 199489.94970642796,
        "share": 22.888378666682826,
        "growth": -1.2091517368370885
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Sale",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 51667.64792919213,
        "share": 5.928061500644586,
        "growth": -13.739226935909521
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-barrel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products sale classified by energy type as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Sale of LPG (Thousand Tons) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-lpg/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "1",
        "comp_desc": "PTT",
        "qty": 2.865
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "2",
        "comp_desc": "PICNIC GAS",
        "qty": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/current

Query Parameters

Parameter Type Default Description
date String

Quantity of LPG, propane and butane consumption (sale) classified by sector and company in current year and 3 years ago (Unit: Thousand Tons)

ปริมาณการใช้ LPG โพรเพน และบิวเทน จำแนกตามรายสาขาและบริษัท ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: พันตัน)

Sale of LPG (Thousand Tons) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-lpg/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "1",
        "comp_desc": "PTT",
        "qty": 0.233
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "2",
        "comp_desc": "PICNIC GAS",
        "qty": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of LPG, propane and butane consumption (sale) classified by sector and company as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ LPG โพรเพน และบิวเทน จำแนกตามรายสาขาและบริษัท รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

Sale of LPG (Thousand Tons) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-lpg/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "1",
        "comp_desc": "PTT",
        "qty": 0.71
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "2",
        "comp_desc": "PICNIC GAS",
        "qty": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of LPG, propane and butane consumption (sale) classified by sector and company as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ LPG โพรเพน และบิวเทน จำแนกตามรายสาขาและบริษัท รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

Sale of LPG (Thousand Tons) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/sale-lpg/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "1",
        "comp_desc": "PTT",
        "qty": 2.758
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Thousand Tons",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "sector_code": "1",
        "sector_desc": "COOKING",
        "comp_code": "2",
        "comp_desc": "PICNIC GAS",
        "qty": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/sale-lpg/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of LPG, propane and butane consumption (sale) classified by sector and company as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ LPG โพรเพน และบิวเทน จำแนกตามรายสาขาและบริษัท รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

Import of Petroleum Products (Million Litres) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-mill/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 2245.1690000000003
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 28.269
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products import classified by energy type in current year and 3 years ago (Unit: Million Litres)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: ล้านลิตร)

Import of Petroleum Products (Million Litres) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-mill/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 91.599,
        "share": 42.83271591824376,
        "growth": -42.15555022291827
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products import classified by energy type as monthly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Import of Petroleum Products (Million Litres) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-mill/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 348.674,
        "share": 56.729530233074385,
        "growth": -22.951102232750554
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": -100
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products import classified by energy type as quarterly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Import of Petroleum Products (Million Litres) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-mill/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1408.92,
        "share": 53.72377662633345,
        "growth": -37.24659479976785
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": -100
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 55.41,
        "share": 2.1128484675248678,
        "growth": -97.66574043336934
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 55.41,
        "share": 2.1128484675248678,
        "growth": -97.66574043336934
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 145.095,
        "share": 5.532642995768286,
        "growth": -61.88430924422729
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 23.201,
        "share": 0.8846814166223509,
        "growth": -4.976245085190034
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 989.899981,
        "share": 37.746050493751056,
        "growth": -2.745807181953175
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 2622.525981,
        "share": 100,
        "growth": -56.59417109025693
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-mill/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products import classified by energy type as yearly (Unit: Million Litres) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Import of Petroleum Products (Barrel/Day) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-barrel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 2245.1690000000003
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 28.269
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products import classified by energy type in current year and 3 years ago (Unit: Barrels/Day)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: บาร์เรล/วัน)

Import of Petroleum Products (Barrel/Day) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-barrel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 91.599,
        "share": 42.83271591824376,
        "growth": -42.15555022291827
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 34.765,
        "share": 16.25650246070093,
        "growth": 79.8313676805297
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 87.488888,
        "share": 40.910781621055314,
        "growth": -52.938597526238574
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 213.852888,
        "share": 100,
        "growth": -41.182907934913736
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products import classified by energy type as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Import of Petroleum Products (Barrel/Day) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-barrel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 348.674,
        "share": 56.729530233074385,
        "growth": -22.951102232750554
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": -100
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 11.009,
        "share": 1.10797013024443,
        "growth": -96.41099034367645
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products import classified by energy type as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Import of Petroleum Products (Barrel/Day) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/import-barrel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1408.92,
        "share": 53.72377662633345,
        "growth": -37.24659479976785
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": null,
        "share": null,
        "growth": -100
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 55.41,
        "share": 2.1128484675248678,
        "growth": -97.66574043336934
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 55.41,
        "share": 2.1128484675248678,
        "growth": -97.66574043336934
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 145.095,
        "share": 5.532642995768286,
        "growth": -61.88430924422729
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 23.201,
        "share": 0.8846814166223509,
        "growth": -4.976245085190034
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 989.899981,
        "share": 37.746050493751056,
        "growth": -2.745807181953175
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Import",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 2622.525981,
        "share": 100,
        "growth": -56.59417109025693
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/import-barrel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products import classified by energy type as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการนำเข้าน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Export of Petroleum Products (Million Litres) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-mill/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 1225.2400000000002
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 1131.3170000000002
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products export classified by energy type in current year and 3 years ago (Unit: Million Litres)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: ล้านลิตร)

Export of Petroleum Products (Million Litres) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-mill/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 115.472,
        "share": 13.670593686138185,
        "growth": 5.005092390513588
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 108.513,
        "share": 12.846725896008667,
        "growth": 7.789730905623271
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 6.685,
        "share": 0.7914292537743676,
        "growth": -24.75236380009006
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 0.044,
        "share": 0.005209108027834281,
        "growth": -82.53968253968253
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 90.873,
        "share": 10.75834713212238,
        "growth": -34.71720342818555
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 211.488,
        "share": 25.0378145134231,
        "growth": 2.170583830527306
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 42.520362,
        "share": 5.033935432741357,
        "growth": -2.777654434391874
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 844.674362,
        "share": 100,
        "growth": -2.0643758755849118
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products export classified by energy type as monthly (Unit: Million Litres) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: ล้านลิตร) (2532-ปัจจุบัน)

Export of Petroleum Products (Million Litres) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-mill/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 338.216,
        "share": 12.94434797623469,
        "growth": 1.8910100952283404
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 319.298,
        "share": 12.220310157165196,
        "growth": 4.741785115616892
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products export classified by energy type as quarterly (Unit: Million Litres) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: ล้านลิตร) (2532-ปัจจุบัน)

Export of Petroleum Products (Million Litres) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-mill/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1311.443,
        "share": 12.119661040741427,
        "growth": 7.035601188338614
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 1176.895,
        "share": 10.87623974548904,
        "growth": 4.028755865950928
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 132.416,
        "share": 1.2237184813757187,
        "growth": 43.44863447767824
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 8.167,
        "share": 0.07547508486433283,
        "growth": 309.3734335839598
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 685.659,
        "share": 6.336497026202226,
        "growth": -17.742109632558655
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 2629.169,
        "share": 24.297386237011516,
        "growth": -18.32306819600955
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 430.768423,
        "share": 3.980933425100994,
        "growth": -22.21977521163707
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 10820.789423,
        "share": 100,
        "growth": 12.600171415884699
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-mill/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products export classified by energy type as yearly (Unit: Million Litres) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: ล้านลิตร) (2532-ปัจจุบัน)

Export of Petroleum Products (Barrel/Day) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-barrel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": 1225.2400000000002
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 1131.3170000000002
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products export classified by energy type in current year and 3 years ago (Unit: Barrels/Day)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: บาร์เรล/วัน)

Export of Petroleum Products (Barrel/Day) (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-barrel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 115.472,
        "share": 13.670593686138185,
        "growth": 5.005092390513588
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 108.513,
        "share": 12.846725896008667,
        "growth": 7.789730905623271
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 6.685,
        "share": 0.7914292537743676,
        "growth": -24.75236380009006
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 0.044,
        "share": 0.005209108027834281,
        "growth": -82.53968253968253
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 90.873,
        "share": 10.75834713212238,
        "growth": -34.71720342818555
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 211.488,
        "share": 25.0378145134231,
        "growth": 2.170583830527306
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 42.520362,
        "share": 5.033935432741357,
        "growth": -2.777654434391874
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 844.674362,
        "share": 100,
        "growth": -2.0643758755849118
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products export classified by energy type as monthly (Unit: Barrels/Day) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาร์เรล/วัน) (2532-ปัจจุบัน)

Export of Petroleum Products (Barrel/Day) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-barrel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 338.216,
        "share": 12.94434797623469,
        "growth": 1.8910100952283404
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 319.298,
        "share": 12.220310157165196,
        "growth": 4.741785115616892
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products export classified by energy type as quarterly (Unit: Barrels/Day) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาร์เรล/วัน) (2532-ปัจจุบัน)

Export of Petroleum Products (Barrel/Day) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/export-barrel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1311.443,
        "share": 12.119661040741427,
        "growth": 7.035601188338614
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 1176.895,
        "share": 10.87623974548904,
        "growth": 4.028755865950928
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 132.416,
        "share": 1.2237184813757187,
        "growth": 43.44863447767824
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 8.167,
        "share": 0.07547508486433283,
        "growth": 309.3734335839598
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 685.659,
        "share": 6.336497026202226,
        "growth": -17.742109632558655
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 2629.169,
        "share": 24.297386237011516,
        "growth": -18.32306819600955
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 430.768423,
        "share": 3.980933425100994,
        "growth": -22.21977521163707
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 10820.789423,
        "share": 100,
        "growth": 12.600171415884699
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/export-barrel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products export classified by energy type as yearly (Unit: Barrels/Day) (1989-present)

ปริมาณการส่งออกน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: บาร์เรล/วัน) (2532-ปัจจุบัน)

Net Export of Petroleum Products (Million Litres) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-mill/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": -1019.9289999999999
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Million Litres",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 1103.048
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products net export classified by energy type in current year and 3 years ago (Unit: Million Litres)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: ล้านลิตร)

Net Export of Petroleum Products (Million Litres)(Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-mill/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 115.472,
        "share": 13.670593686138185,
        "growth": 5.005092390513588
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 108.513,
        "share": 12.846725896008667,
        "growth": 7.789730905623271
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 6.685,
        "share": 0.7914292537743676,
        "growth": -24.75236380009006
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 0.044,
        "share": 0.005209108027834281,
        "growth": -82.53968253968253
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 384.277,
        "share": 45.49410012754714,
        "growth": 6.057185438688495
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 90.873,
        "share": 10.75834713212238,
        "growth": -34.71720342818555
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 211.488,
        "share": 25.0378145134231,
        "growth": 2.170583830527306
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 42.520362,
        "share": 5.033935432741357,
        "growth": -2.777654434391874
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 844.674362,
        "share": 100,
        "growth": -2.0643758755849118
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as monthly (Unit: Million Litres) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Net Export of Petroleum Products (Million Litres)(Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-mill/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": -10.458,
        "share": null,
        "growth": -91.32814249110675
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 319.298,
        "share": null,
        "growth": 15.44758364849914
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as quarterly (Unit: Million Litres) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Net Export of Petroleum Products (Million Litres)(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-mill/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 1311.443,
        "share": 12.119661040741427,
        "growth": 7.035601188338614
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 1176.895,
        "share": 10.87623974548904,
        "growth": 4.028755865950928
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 132.416,
        "share": 1.2237184813757187,
        "growth": 43.44863447767824
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 8.167,
        "share": 0.07547508486433283,
        "growth": 309.3734335839598
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 5755.583,
        "share": 53.190047186079504,
        "growth": 52.41223877387704
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 685.659,
        "share": 6.336497026202226,
        "growth": -17.742109632558655
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 2629.169,
        "share": 24.297386237011516,
        "growth": -18.32306819600955
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 430.768423,
        "share": 3.980933425100994,
        "growth": -22.21977521163707
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Export",
        "unit": "Million Litres",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 10820.789423,
        "share": 100,
        "growth": 12.600171415884699
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-mill/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as yearly (Unit: Million Litres) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: ล้านลิตร) (2529-ปัจจุบัน)

Net Export of Petroleum Products (Barrel/Day) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-barrel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": null,
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "GASOLINE",
        "qty": -17575.482907084282
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "eng_detail": 0,
        "eng_detail_name": null,
        "eng_display": "  REGULAR",
        "qty": 19007.794924639522
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of petroleum products net export classified by energy type in current year and 3 years ago (Unit: Barrels/Day)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน ของปีปัจจุบันและย้อนหลัง 3 ปี (หน่วย: บาร์เรล/วัน)

Net Export of Petroleum Products (Barrel/Day)(Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-barrel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 4843.680572322033,
        "share": null,
        "growth": -149.33865167609756
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 22016.60076003942,
        "share": null,
        "growth": 7.789730905623826
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 1356.3441807050322,
        "share": null,
        "growth": -24.752363800092645
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 8.927321458612903,
        "share": null,
        "growth": -82.53968253973963
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 77967.37064006814,
        "share": null,
        "growth": 6.057185438688473
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 77967.37064006814,
        "share": null,
        "growth": 6.0571854386884505
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 11383.95800912613,
        "share": null,
        "growth": -53.19145386136286
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 42909.57637830726,
        "share": null,
        "growth": 2.1705838305274394
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": -9123.829252803484,
        "share": null,
        "growth": -68.36956281286592
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 127989.68366847868,
        "share": null,
        "growth": 26.445135768799855
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Net Export of Petroleum Products (Barrel/Day)(Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-barrel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": -722.8321084542645,
        "share": null,
        "growth": -91.32814249110224
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 22069.11900603298,
        "share": null,
        "growth": 15.447583648499585
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Net Export of Petroleum Products (Barrel/Day)(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/products/net-export-barrel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": -1675.1405817533132,
        "share": null,
        "growth": -90.44276611410983
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 1,
        "eng_subtype_name": "REGULAR",
        "qty": 20224.920493676138,
        "share": null,
        "growth": 6.694812918386428
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1030,
        "eng_type_name": "GASOLINE",
        "eng_subtype": 2,
        "eng_subtype_name": "PREMIUM",
        "qty": 2275.5667005897044,
        "share": null,
        "growth": 43.44863447768446
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1040,
        "eng_type_name": "KEROSENE",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 140.34975564671583,
        "share": null,
        "growth": 309.3734335840077
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 0,
        "eng_subtype_name": "TOTAL",
        "qty": 97957.37574312107,
        "share": null,
        "growth": 306.4137993973895
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 1,
        "eng_subtype_name": "HSD",
        "qty": 97957.37574312107,
        "share": null,
        "growth": 306.4137993973895
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1050,
        "eng_type_name": "DIESEL",
        "eng_subtype": 2,
        "eng_subtype_name": "LSD",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1060,
        "eng_type_name": "JET FUEL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 9289.583116372858,
        "share": null,
        "growth": 19.361947367724184
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1070,
        "eng_type_name": "FUEL OIL",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": 44783.51561444718,
        "share": null,
        "growth": -18.425077553473646
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 1080,
        "eng_type_name": "LPG",
        "eng_subtype": 0,
        "eng_subtype_name": "",
        "qty": -9608.66628378525,
        "share": null,
        "growth": 20.49718361866033
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "process": "Net Export",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_type": 9999,
        "eng_type_name": "TOTAL",
        "eng_subtype": 9999,
        "eng_subtype_name": "TOTAL",
        "qty": 140887.01736404927,
        "share": null,
        "growth": 129.76889453533533
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/products/net-export-barrel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of petroleum products net export classified by energy type as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการส่งออกสุทธิของน้ำมันสำเร็จรูปแยกตามชนิดน้ำมัน รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Oil (Demand and Supply)

Demand and Supply of Crude oil and Oil Products (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-crude/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 187004.43999999997
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 903152.358943248
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 19244.667447130934
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 1018481.584356086
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/current

Query Parameters

Parameter Type Default Description
date String

Quantity of crude oil and oil products classified by demand (Consumption and Export) and supply (Production and Import) in current year and year ago (Unit: Barrels/Day)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) น้ำมันดิบและน้ำมันสำเร็จรูป ของปีปัจจุบันและย้อนหลัง 1 ปี (หน่วย: บาร์เรล/วัน)

Demand and Supply of Crude oil and Oil Products (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-crude/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 220979.10000000003,
        "growth": 6.2874491269055355
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 979689.126319569,
        "growth": -8.58825694270384
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 25177.684131077356,
        "growth": -24.730537106117147
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 1037755.8742789662,
        "growth": -5.09658212193996
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1534806.189068492,
        "growth": -1.0268369354694928
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 287356.8368065339,
        "growth": 48.43003229365823
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1822163.0258750264,
        "growth": 4.4622287872338
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 1123441.0616208327,
        "growth": -4.878091886037978
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 199734.61508027397,
        "growth": 1.8324945821674103
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 423679.5172753804,
        "growth": -1.521936073214488
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 500026.9292651784,
        "growth": -9.854105618584672
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 223399.86122072575,
        "growth": 2.477464660941953
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1346840.922841557,
        "growth": -3.7319565375563024
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of crude oil and oil products classified by demand (Consumption and Export) and supply (Production and Import) as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) น้ำมันดิบและน้ำมันสำเร็จรูป รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Demand and Supply of Crude oil and Oil Products (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-crude/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 222627.2221978022,
        "growth": 1.5250564888893952
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 935535.5129806346,
        "growth": -5.260861369886984
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 26269.120526620954,
        "growth": 6.011218561112328
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 1044296.379135048,
        "growth": -4.111771000059639
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1548777.5852237546,
        "growth": -0.7533722625473015
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 250052.81830566368,
        "growth": 13.152822408845674
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1798830.4035294186,
        "growth": 0.9716063447907523
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 1097747.965004361,
        "growth": -7.531919238839352
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 195852.04405004287,
        "growth": -1.212907841176823
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 425489.404613877,
        "growth": -1.789903790776786
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 476406.5163404412,
        "growth": -14.263476900229938
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 244347.49438246078,
        "growth": 3.2446495111260463
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1342095.4593868218,
        "growth": -5.740645773581876
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 196650.15340659342,
        "growth": -16.22007407997093
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 817155.8236090593,
        "growth": -6.484278054833593
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 33142.66084880583,
        "growth": 9.1067332896461
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 958901.6241950386,
        "growth": -7.2646715227665055
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1404290.3894017772,
        "growth": -9.753353691117168
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 251675.93040961126,
        "growth": 21.510156087055975
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1655966.319811388,
        "growth": -6.080786203964912
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 986365.3003955565,
        "growth": -14.258523579959101
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 177227.33270251894,
        "growth": -12.85590237950803
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 400112.7308442224,
        "growth": -6.907362254627213
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 409025.2368488152,
        "growth": -20.91870755381552
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 276928.4966432984,
        "growth": 24.45170829564753
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1263293.7970388546,
        "growth": -7.984452891826843
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 199414.33282608693,
        "growth": -12.118697205846916
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 782131.0883648678,
        "growth": -6.099501437280911
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 24448.010129157658,
        "growth": 11.479554459612505
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 946199.2414070338,
        "growth": -4.2735437630693385
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1430474.5554820208,
        "growth": -7.5738392424848255
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 300260.3092346518,
        "growth": 40.8355097269382
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1730734.8647166728,
        "growth": -1.71270253689252
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 1056026.4744569624,
        "growth": -5.967689649722889
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 214588.14746347093,
        "growth": 7.3595445664844386
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 402890.3239744354,
        "growth": 0.11038609481748124
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 438548.00301905593,
        "growth": -15.780826687699504
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 210166.4032739231,
        "growth": -5.073313532334914
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1266192.877730885,
        "growth": -5.820406823993001
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 188931.27739130435,
        "growth": -17.661948835708248
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 812646.9534589263,
        "growth": 12.402988473226376
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 14523.609633638393,
        "growth": -56.94126899190868
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 978032.7310714097,
        "growth": 16.691909819624584
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1463601.0940666182,
        "growth": 1.3954267389299053
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 178904.83165471107,
        "growth": -38.479398414520524
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1642505.9257213299,
        "growth": -5.290863430622686
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 1043495.4118662059,
        "growth": -9.34083856309287
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 210010.74718945858,
        "growth": 1.8507134885441952
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 418437.4461615021,
        "growth": -1.9421501241160197
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 415047.2185152453,
        "growth": -19.888907256565066
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 215092.00441919608,
        "growth": 0.17853271921149358
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1258587.4162854014,
        "growth": -7.844269277013045
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of crude oil and oil products classified by demand (Consumption and Export) and supply (Production and Import) as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) น้ำมันดิบและน้ำมันสำเร็จรูป รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Demand and Supply of Crude oil and Oil Products(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-crude/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 1,
        "process_desc": "PRODUCTION",
        "qty": 201863.48994535516,
        "growth": -11.306762703828047
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 2,
        "process_desc": "IMPORT",
        "qty": 836651.6160586097,
        "growth": -2.0183991114303197
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 3,
        "process_desc": "EXPORT",
        "qty": 24567.926566505666,
        "growth": -11.322285546984471
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 1,
        "eng_desc": "CRUDE OIL BALANCE",
        "balance_seq": 3,
        "balance_desc": "THROUGHPUT",
        "process_seq": 4,
        "process_desc": "THROUGHPUT",
        "qty": 981749.616860805,
        "growth": -0.5331944437238233
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 5,
        "process_desc": "PRODUCTION",
        "qty": 1461705.315435514,
        "growth": -4.261279133111394
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 6,
        "process_desc": "IMPORT",
        "qty": 245192.64780030443,
        "growth": 5.173206031016167
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 7,
        "process_desc": "SUPPLY",
        "qty": 1706897.9632358185,
        "growth": -3.011500146146612
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 8,
        "process_desc": "CONSUMPTION",
        "qty": 1045929.8379593549,
        "growth": -9.271814464469806
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 9,
        "process_desc": "MOGAS",
        "qty": 199489.949706428,
        "growth": -1.20915173683707
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 10,
        "process_desc": "DIESEL OIL",
        "qty": 411726.637101621,
        "growth": -2.666865895095309
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 11,
        "process_desc": "OTHERS",
        "qty": 434713.2511513063,
        "growth": -17.64885220567669
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 12,
        "process_desc": "EXPORT",
        "qty": 236502.4281177897,
        "growth": 5.6795151731475935
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BARRELS/DAY",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "eng_seq": 2,
        "eng_desc": "OIL PRODUCTS",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 13,
        "process_desc": "DEMAND",
        "qty": 1282432.2660771443,
        "growth": -6.841211610440097
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-crude/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of crude oil and oil products classified by demand (Consumption and Export) and supply (Production and Import) as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) น้ำมันดิบและน้ำมันสำเร็จรูป รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Demand and Supply of LPG, Propane and Butane (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-11-22T16:59:06.192Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-22T16:59:06.192Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/demand-supply/demand-lpg/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2021-11-22T16:59:06.192Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-11-22T16:59:06.192Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-11-22T16:59:06.192Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-11-22T16:59:06.192Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2016,
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 9,
        "process_desc": "TOTAL SUPPLY",
        "dim_seq": 99,
        "dim_group": "TOTAL SUPPLY",
        "dim_sub_group": "TOTAL SUPPLY",
        "qty": 6174.154
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2016,
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION (DOMESTIC)",
        "dim_seq": 100,
        "dim_group": "PRODUCTION (DOMESTIC)",
        "dim_sub_group": "PRODUCTION (DOMESTIC)",
        "qty": 5718.451
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2016,
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION (DOMESTIC)",
        "dim_seq": 101,
        "dim_group": "GSP",
        "dim_sub_group": "GSP",
        "qty": 3743.599
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/current

Query Parameters

Parameter Type Default Description
date String

Quantity of LPG, propane and butane classified by demand (Consumption and Export) and supply (Production and Import) in current year and 6 years ago (Unit: 1,000 Tons)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) LPG โพรเพน และบิวเทน ของปีปัจจุบันและย้อนหลัง 6 ปี (หน่วย: พันตัน)

Demand and Supply of LPG, Propane and Butane (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-lpg/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 101,
        "dim_group": "GSP",
        "dim_sub_group": "GSP",
        "qty": 297.334,
        "share": 56.59236080975112,
        "growth": 12.231155399539501
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 102,
        "dim_group": "REFINERY",
        "dim_sub_group": "REFINERY",
        "qty": 180.818,
        "share": 34.415564640766206,
        "growth": -7.934746082015458
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 103,
        "dim_group": "OTHERS",
        "dim_sub_group": "OTHERS",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 199,
        "dim_group": "TOTAL PRODUCTION",
        "dim_sub_group": "TOTAL PRODUCTION",
        "qty": 478.152,
        "share": 91.00792545051732,
        "growth": 3.6459642946944935
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 20,
        "process_desc": "IMPORT",
        "dim_seq": 201,
        "dim_group": "IMPORT",
        "dim_sub_group": "IMPORT",
        "qty": 47.244,
        "share": 8.992074549482677,
        "growth": -52.93859823883332
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 29,
        "process_desc": "TOTAL SUPPLY",
        "dim_seq": 299,
        "dim_group": "TOTAL SUPPLY",
        "dim_sub_group": "TOTAL SUPPLY",
        "qty": 525.396,
        "share": 100,
        "growth": -6.466566972869045
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 301,
        "dim_group": "COOKING",
        "dim_sub_group": "COOKING",
        "qty": 182.042,
        "share": 34.6097322166982,
        "growth": -1.6441094632196018
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 302,
        "dim_group": "INDUSTRY",
        "dim_sub_group": "INDUSTRY",
        "qty": 54.95,
        "share": 10.44706598096904,
        "growth": -2.947773715537187
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 303,
        "dim_group": "AUTOMOBILE",
        "dim_sub_group": "AUTOMOBILE",
        "qty": 79.794,
        "share": 15.170394593001701,
        "growth": -12.13566040852282
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 304,
        "dim_group": "FEEDSTOCK",
        "dim_sub_group": "FEEDSTOCK",
        "qty": 74.299,
        "share": 14.125687994904798,
        "growth": -25.53867430999579
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 305,
        "dim_group": "OWN USED",
        "dim_sub_group": "FEEDSTOCK",
        "qty": 128.296,
        "share": 24.391570101808988,
        "growth": 16.59033078880407
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 306,
        "dim_group": "OWN USED",
        "dim_sub_group": "ENERGY",
        "qty": 6.604,
        "share": 1.25554911261728,
        "growth": -9.929078014184398
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 307,
        "dim_group": "OWN USED",
        "dim_sub_group": "TOTAL OWN USED",
        "qty": 134.9,
        "share": 25.64711921442627,
        "growth": 14.933715025730157
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 399,
        "dim_group": "TOTAL CONSUMPTION",
        "dim_sub_group": "TOTAL CONSUMPTION",
        "qty": 525.985,
        "share": 100,
        "growth": -4.309471267462655
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 40,
        "process_desc": "EXPORT",
        "dim_seq": 401,
        "dim_group": "EXPORT",
        "dim_sub_group": "EXPORT",
        "qty": 22.961,
        "share": null,
        "growth": -2.7776601600541984
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 49,
        "process_desc": "TOTAL DEMAND",
        "dim_seq": 499,
        "dim_group": "TOTAL DEMAND",
        "dim_sub_group": "TOTAL DEMAND",
        "qty": 548.946,
        "share": null,
        "growth": -4.246367458005547
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "balance_seq": 9,
        "balance_desc": "BALANCE (SUPPLY-DEMAND)",
        "process_seq": 99,
        "process_desc": "BALANCE (SUPPLY-DEMAND)",
        "dim_seq": 999,
        "dim_group": "BALANCE (SUPPLY-DEMAND)",
        "dim_sub_group": "BALANCE (SUPPLY-DEMAND)",
        "qty": -23.55,
        "share": null,
        "growth": 103.5436473638721
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of LPG, propane and butane classified by demand (Consumption and Export) and supply (Production and Import) as monthly (Unit: 1,000 Tons) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) LPG โพรเพน และบิวเทน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

Demand and Supply of LPG, Propane and Butane (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/demand-supply/demand-lpg/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 101,
        "dim_group": "GSP",
        "dim_sub_group": "GSP",
        "qty": 898.852,
        "share": 59.34477597454687,
        "growth": 1.1634018559056403
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 102,
        "dim_group": "REFINERY",
        "dim_sub_group": "REFINERY",
        "qty": 538.084,
        "share": 35.52584233609991,
        "growth": -5.958470892748223
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 103,
        "dim_group": "OTHERS",
        "dim_sub_group": "OTHERS",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 199,
        "dim_group": "TOTAL PRODUCTION",
        "dim_sub_group": "TOTAL PRODUCTION",
        "qty": 1436.936,
        "share": 94.87061831064678,
        "growth": -1.6263524411717185
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of LPG, propane and butane classified by demand (Consumption and Export) and supply (Production and Import) as quarterly (Unit: 1,000 Tons) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) LPG โพรเพน และบิวเทน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

Demand and Supply of LPG, Propane and Butane(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/demand-supply/demand-lpg/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 101,
        "dim_group": "GSP",
        "dim_sub_group": "GSP",
        "qty": 3383.543,
        "share": 56.10865123547739,
        "growth": -11.653311476933673
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 102,
        "dim_group": "REFINERY",
        "dim_sub_group": "REFINERY",
        "qty": 2112.252,
        "share": 35.027073925006896,
        "growth": -1.7660012324291645
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 103,
        "dim_group": "OTHERS",
        "dim_sub_group": "OTHERS",
        "qty": null,
        "share": null,
        "growth": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 10,
        "process_desc": "PRODUCTION",
        "dim_seq": 199,
        "dim_group": "TOTAL PRODUCTION",
        "dim_sub_group": "TOTAL PRODUCTION",
        "qty": 5495.795,
        "share": 91.1357251604843,
        "growth": -8.098180088801607
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 20,
        "process_desc": "IMPORT",
        "dim_seq": 201,
        "dim_group": "IMPORT",
        "dim_sub_group": "IMPORT",
        "qty": 534.546,
        "share": 8.86427483951571,
        "growth": -2.7458072404018643
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 1,
        "balance_desc": "SUPPLY",
        "process_seq": 29,
        "process_desc": "TOTAL SUPPLY",
        "dim_seq": 299,
        "dim_group": "TOTAL SUPPLY",
        "dim_sub_group": "TOTAL SUPPLY",
        "qty": 6030.341,
        "share": 100,
        "growth": -7.647644382369203
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 301,
        "dim_group": "COOKING",
        "dim_sub_group": "COOKING",
        "qty": 2032.587,
        "share": 35.40890614768114,
        "growth": -4.350017364493422
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 302,
        "dim_group": "INDUSTRY",
        "dim_sub_group": "INDUSTRY",
        "qty": 611.95,
        "share": 10.660542509163678,
        "growth": -7.330990170527938
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 303,
        "dim_group": "AUTOMOBILE",
        "dim_sub_group": "AUTOMOBILE",
        "qty": 752.443,
        "share": 13.108016320324609,
        "growth": -26.44503683892051
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 304,
        "dim_group": "FEEDSTOCK",
        "dim_sub_group": "FEEDSTOCK",
        "qty": 769.412,
        "share": 13.403626657505749,
        "growth": -23.039636869580526
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 305,
        "dim_group": "OWN USED",
        "dim_sub_group": "FEEDSTOCK",
        "qty": 1460.92,
        "share": 25.450118085607322,
        "growth": -13.777371724275508
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 306,
        "dim_group": "OWN USED",
        "dim_sub_group": "ENERGY",
        "qty": 113.015,
        "share": 1.9687902797175143,
        "growth": 97.94202644714949
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 307,
        "dim_group": "OWN USED",
        "dim_sub_group": "TOTAL OWN USED",
        "qty": 1573.935,
        "share": 27.418908365324835,
        "growth": -10.135470378023276
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 30,
        "process_desc": "CONSUMPTION",
        "dim_seq": 399,
        "dim_group": "TOTAL CONSUMPTION",
        "dim_sub_group": "TOTAL CONSUMPTION",
        "qty": 5740.327,
        "share": 100,
        "growth": -12.489118931488981
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 40,
        "process_desc": "EXPORT",
        "dim_seq": 401,
        "dim_group": "EXPORT",
        "dim_sub_group": "EXPORT",
        "qty": 232.615,
        "share": null,
        "growth": -22.219770151838887
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 2,
        "balance_desc": "DEMAND",
        "process_seq": 49,
        "process_desc": "TOTAL DEMAND",
        "dim_seq": 499,
        "dim_group": "TOTAL DEMAND",
        "dim_sub_group": "TOTAL DEMAND",
        "qty": 5972.942,
        "share": null,
        "growth": -12.913419234904955
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "1,000 TONS",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "balance_seq": 9,
        "balance_desc": "BALANCE (SUPPLY-DEMAND)",
        "process_seq": 99,
        "process_desc": "BALANCE (SUPPLY-DEMAND)",
        "dim_seq": 999,
        "dim_group": "BALANCE (SUPPLY-DEMAND)",
        "dim_sub_group": "BALANCE (SUPPLY-DEMAND)",
        "qty": 57.399,
        "share": null,
        "growth": -117.45101317969689
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/demand-supply/demand-lpg/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of LPG, propane and butane classified by demand (Consumption and Export) and supply (Production and Import) as yearly (Unit: 1,000 Tons) (1986-present)

ปริมาณความต้องการใช้ (การใช้และการส่งออก) และการจัดหา (การผลิตและการนำเข้า) LPG โพรเพน และบิวเทน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

Oil (Refinery)

Capacity (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current' \
--header 'Content-Type: application/json' \
--data-raw '{date: "2021-12-11T04:02:45.626Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-11T04:02:45.626Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/refinery/capacity/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{date: "2021-12-11T04:02:45.626Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{date: \"2021-12-11T04:02:45.626Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{date: "2021-12-11T04:02:45.626Z"}';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{date: ""2021-12-11T04:02:45.626Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "footer": [
        {
            "line": "Source by : Department of Energy Business (DOEB)"
        },
        {
            "line": "Complied by : Energy Policy and Planning Office"
        },
        {
            "line": "Remark: Refinery capacity of PTTAR / PTTGC included crude refining capacity 145 KBD and condensate splitter capacity 135 KBD"
        }
    ],
    "headers": [
        "ESSO",
        "BCP",
        "THAI OIL (TOP)",
        "FANG",
        "TPI/IRPC",
        "STAR REFINERY CO.,LTD. (SPRC)",
        "RAYONG PURIFIER CO.(RPC)",
        "PTTAR/PTTGC",
        "TOTAL"
    ],
    "current": [
        {
            "year": 2012,
            "values": [
                170000,
                120000,
                275000,
                2500,
                215000,
                150000,
                17000,
                280000,
                1229500
            ]
        },
        {
            "year": 2013,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                150000,
                17000,
                280000,
                1236500
            ]
        },
        {
            "year": 2014,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                17000,
                280000,
                1251500
            ]
        },
        {
            "year": 2015,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                17000,
                280000,
                1251500
            ]
        },
        {
            "year": 2016,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                null,
                280000,
                1234500
            ]
        },
        {
            "year": 2017,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                null,
                280000,
                1234500
            ]
        },
        {
            "year": 2018,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                null,
                280000,
                1234500
            ]
        },
        {
            "year": 2019,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                165000,
                null,
                280000,
                1234500
            ]
        },
        {
            "year": 2020,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                175000,
                null,
                280000,
                1244500
            ]
        },
        {
            "year": 2021,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                175000,
                null,
                280000,
                1244500
            ]
        },
        {
            "year": 2022,
            "values": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ]
        }
    ],
    "share": [
        {
            "year": 2012,
            "values": [
                13.826758845058967,
                9.760065067100447,
                22.36681577877186,
                0.203334688897926,
                17.486783245221634,
                12.20008133387556,
                1.3826758845058966,
                22.77348515656771,
                100
            ]
        },
        {
            "year": 2013,
            "values": [
                14.314597654670441,
                9.704811969268096,
                22.240194096239385,
                0.2021835826930853,
                17.38778811160534,
                12.13101496158512,
                1.3748483623129801,
                22.644561261625554,
                100
            ]
        },
        {
            "year": 2014,
            "values": [
                14.143028365960847,
                9.588493807431083,
                21.973631642029563,
                0.1997602876548142,
                17.179384738314024,
                13.18417898521774,
                1.3583699560527367,
                22.373152217339193,
                100
            ]
        },
        {
            "year": 2015,
            "values": [
                14.143028365960847,
                9.588493807431083,
                21.973631642029563,
                0.1997602876548142,
                17.179384738314024,
                13.18417898521774,
                1.3583699560527367,
                22.373152217339193,
                100
            ]
        },
        {
            "year": 2016,
            "values": [
                14.33778857837181,
                9.720534629404618,
                22.27622519238558,
                0.2025111381125962,
                17.415957877683272,
                13.365735115431349,
                null,
                22.681247468610774,
                100
            ]
        },
        {
            "year": 2017,
            "values": [
                14.33778857837181,
                9.720534629404618,
                22.27622519238558,
                0.2025111381125962,
                17.415957877683272,
                13.365735115431349,
                null,
                22.681247468610774,
                100
            ]
        },
        {
            "year": 2018,
            "values": [
                14.33778857837181,
                9.720534629404618,
                22.27622519238558,
                0.2025111381125962,
                17.415957877683272,
                13.365735115431349,
                null,
                22.681247468610774,
                100
            ]
        },
        {
            "year": 2019,
            "values": [
                14.33778857837181,
                9.720534629404618,
                22.27622519238558,
                0.2025111381125962,
                17.415957877683272,
                13.365735115431349,
                null,
                22.681247468610774,
                100
            ]
        },
        {
            "year": 2020,
            "values": [
                14.222579349136199,
                9.642426677380474,
                22.097227802330252,
                0.2008838891120932,
                17.276014463640017,
                14.061872237846524,
                null,
                22.49899558055444,
                100
            ]
        },
        {
            "year": 2021,
            "values": [
                14.222579349136199,
                9.642426677380474,
                22.097227802330252,
                0.2008838891120932,
                17.276014463640017,
                14.061872237846524,
                null,
                22.49899558055444,
                100
            ]
        },
        {
            "year": 2022,
            "values": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                100
            ]
        }
    ]
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/current

Query Parameters

Parameter Type Default Description
date String

Refinery capacity classified by company in current year and 10 years ago (Unit: Barrels/Day)

กำลังการกลั่นน้ำมันแยกรายโรงกลั่น ของปีปัจจุบันและย้อนหลัง 10 ปี (หน่วย: บาร์เรล/วัน)

Capacity(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year' \
--header 'Content-Type: application/json' \
--data-raw '{startYear: "2019", endYear: 2020}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{startYear: \"2019\", endYear: 2020}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/refinery/capacity/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{startYear: "2019", endYear: 2020}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{startYear: \"2019\", endYear: 2020}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{startYear: "2019", endYear: 2020}';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{startYear: ""2019"", endYear: 2020}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

{
    "updateDate": "2022-06-15",
    "requestDate": "2022-06-15",
    "footer": [
        {
            "line": "Source by : Department of Energy Business (DOEB)"
        },
        {
            "line": "Complied by : Energy Policy and Planning Office"
        },
        {
            "line": "Remark: Refinery capacity of PTTAR / PTTGC included crude refining capacity 145 KBD and condensate splitter capacity 135 KBD"
        }
    ],
    "headers": [
        "ESSO",
        "BCP",
        "THAI OIL (TOP)",
        "FANG",
        "TPI/IRPC",
        "STAR REFINERY CO.,LTD. (SPRC)",
        "PTTAR/PTTGC",
        "TOTAL"
    ],
    "years": [
        {
            "year": 2020,
            "values": [
                177000,
                120000,
                275000,
                2500,
                215000,
                175000,
                280000,
                1244500
            ]
        }
    ],
    "configData": {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    }
}

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/capacity/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Refinery capacity classified by company as yearly (Unit: Barrels/Day) (1986-present)

กำลังการกลั่นน้ำมันแยกรายโรงกลั่น รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Material Intake (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current' \
--header 'Content-Type: application/json' \
--data-raw '{date: "2021-12-11T05:23:31.130Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-11T05:23:31.130Z\"}\n")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/refinery/material-intake/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{date: "2021-12-11T05:23:31.130Z"}
',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{date: \"2021-12-11T05:23:31.130Z\"}\n");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{date: "2021-12-11T05:23:31.130Z"}\n';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{date: ""2021-12-11T05:23:31.130Z""}" + "\n" +
@"";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ESSO": 132043.60590745206,
        "BCP": 93352.79759936203,
        "THAI OIL (TOP)": 255896.800163938,
        "FANG": 1459.4141648186128,
        "TPI/IRPC": 220985.08934422737,
        "STAR REFINERY CO.,LTD. (SPRC)": 139869.21474063082,
        "PTTAR/PTTGC": 174874.66243565732,
        "TOTAL": 1018481.5843560861
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "ESSO": 132258.7673977698,
        "BCP": 55637.82088720758,
        "THAI OIL (TOP)": 250136.57642439316,
        "FANG": null,
        "TPI/IRPC": 175235.18999397982,
        "STAR REFINERY CO.,LTD. (SPRC)": 139288.63450531475,
        "PTTAR/PTTGC": 171572.11145355046,
        "TOTAL": 924129.1006622156
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "ESSO": 130730.88386569246,
        "BCP": 48955.40194250393,
        "THAI OIL (TOP)": 272343.15812112344,
        "FANG": null,
        "TPI/IRPC": 180568.06169590697,
        "STAR REFINERY CO.,LTD. (SPRC)": 137305.85611998316,
        "PTTAR/PTTGC": 147540.62438497852,
        "TOTAL": 917443.9861301885
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 4,
        "period_name": "APR",
        "ESSO": 132098.8741430278,
        "BCP": 108808.52045201996,
        "THAI OIL (TOP)": 273024.2992221732,
        "FANG": 1312.6611736587,
        "TPI/IRPC": 192828.06046501864,
        "STAR REFINERY CO.,LTD. (SPRC)": 142686.12281694857,
        "PTTAR/PTTGC": 171444.9546093045,
        "TOTAL": 1022203.4928821515
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 5,
        "period_name": "MAY",
        "ESSO": 127038.01618685687,
        "BCP": 97378.20800253203,
        "THAI OIL (TOP)": 255225.42501151416,
        "FANG": 1413.1544081692903,
        "TPI/IRPC": 195784.07244115567,
        "STAR REFINERY CO.,LTD. (SPRC)": 132329.88887513714,
        "PTTAR/PTTGC": 173185.16684960906,
        "TOTAL": 982353.9317749742
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 6,
        "period_name": "JUN",
        "ESSO": 117339.24565486293,
        "BCP": 100837.57888336784,
        "THAI OIL (TOP)": 245168.03991865308,
        "FANG": null,
        "TPI/IRPC": 193711.1348722141,
        "STAR REFINERY CO.,LTD. (SPRC)": 136163.90967985403,
        "PTTAR/PTTGC": 170046.7534645784,
        "TOTAL": 963266.6624735304
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 7,
        "period_name": "JUL",
        "ESSO": 114925.06122316474,
        "BCP": 109660.3762865994,
        "THAI OIL (TOP)": 239903.09798343977,
        "FANG": 1359.1846920784194,
        "TPI/IRPC": 197762.2857189232,
        "STAR REFINERY CO.,LTD. (SPRC)": 131460.89528860603,
        "PTTAR/PTTGC": 142468.07975344357,
        "TOTAL": 937538.9809462551
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 8,
        "period_name": "AUG",
        "ESSO": 111861.77260083302,
        "BCP": 112449.14977407783,
        "THAI OIL (TOP)": 237565.15422962283,
        "FANG": null,
        "TPI/IRPC": 185988.56897065951,
        "STAR REFINERY CO.,LTD. (SPRC)": 133663.3060711872,
        "PTTAR/PTTGC": 168873.8792660929,
        "TOTAL": 950401.8309124733
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 9,
        "period_name": "SEP",
        "ESSO": 115400.9686143782,
        "BCP": 111556.492022559,
        "THAI OIL (TOP)": 258966.18235947745,
        "FANG": 1145.7743673605999,
        "TPI/IRPC": 190363.75453382806,
        "STAR REFINERY CO.,LTD. (SPRC)": 125926.15887791681,
        "PTTAR/PTTGC": 55081.032350042864,
        "TOTAL": 858440.3631255629
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 10,
        "period_name": "OCT",
        "ESSO": 116220.74019668506,
        "BCP": 97321.803562407,
        "THAI OIL (TOP)": 278219.5674712753,
        "FANG": null,
        "TPI/IRPC": 195404.2554918243,
        "STAR REFINERY CO.,LTD. (SPRC)": 134085.32490377765,
        "PTTAR/PTTGC": 182792.9936758042,
        "TOTAL": 1004044.6853017735
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 11,
        "period_name": "NOV",
        "ESSO": 128905.38188984626,
        "BCP": 117881.20846174803,
        "THAI OIL (TOP)": 298766.3794368618,
        "FANG": 365.0124745791,
        "TPI/IRPC": 201042.62322577936,
        "STAR REFINERY CO.,LTD. (SPRC)": 139331.61414764024,
        "PTTAR/PTTGC": 181659.64316414023,
        "TOTAL": 1067951.8628005951
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 12,
        "period_name": "DEC",
        "ESSO": 131058.55714195856,
        "BCP": 111574.6780584698,
        "THAI OIL (TOP)": 295783.46376014716,
        "FANG": 1440.342159884258,
        "TPI/IRPC": 199326.3930172114,
        "STAR REFINERY CO.,LTD. (SPRC)": 146460.01270114363,
        "PTTAR/PTTGC": 177399.26836542768,
        "TOTAL": 1063042.7152042426
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ESSO": 124098.12971781625,
        "BCP": 97320.10370256762,
        "THAI OIL (TOP)": 263464.6790053996,
        "FANG": 713.8038318943013,
        "TPI/IRPC": 194233.7891501748,
        "STAR REFINERY CO.,LTD. (SPRC)": 136530.75449735345,
        "PTTAR/PTTGC": 159814.15217808986,
        "TOTAL": 976175.4120832958
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "year_remark": "(3 MTHS)",
        "period_no": 1,
        "period_name": "JAN",
        "ESSO": 122762.64078284486,
        "BCP": 121149.83900387316,
        "THAI OIL (TOP)": 289903.8081112831,
        "FANG": null,
        "TPI/IRPC": 193624.2693291726,
        "STAR REFINERY CO.,LTD. (SPRC)": 135496.04458791277,
        "PTTAR/PTTGC": 179432.26293396414,
        "TOTAL": 1042368.8647490507
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "year_remark": "(3 MTHS)",
        "period_no": 2,
        "period_name": "FEB",
        "ESSO": 129943.03325456221,
        "BCP": 122026.09328529194,
        "THAI OIL (TOP)": 281337.3257976692,
        "FANG": null,
        "TPI/IRPC": 191034.9258264221,
        "STAR REFINERY CO.,LTD. (SPRC)": 139684.43657732286,
        "PTTAR/PTTGC": 182011.6718931109,
        "TOTAL": 1046037.4866343793
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "year_remark": "(3 MTHS)",
        "period_no": 3,
        "period_name": "MAR",
        "ESSO": 135679.05467781497,
        "BCP": 119966.36022959441,
        "THAI OIL (TOP)": 302606.98075959325,
        "FANG": 699.577372486387,
        "TPI/IRPC": 197999.4684185858,
        "STAR REFINERY CO.,LTD. (SPRC)": 162376.00660621782,
        "PTTAR/PTTGC": 168217.3153515437,
        "TOTAL": 1087544.7634158365
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2022,
        "year_remark": "(3 MTHS)",
        "period_no": 99,
        "period_name": "YTD",
        "ESSO": 129445.52767120219,
        "BCP": 121014.80875806298,
        "THAI OIL (TOP)": 291614.21752591,
        "FANG": 240.96553941197777,
        "TPI/IRPC": 194325.7088146703,
        "STAR REFINERY CO.,LTD. (SPRC)": 146057.75345758986,
        "PTTAR/PTTGC": 176371.81933175382,
        "TOTAL": 1059070.8010986012
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/current

Query Parameters

Parameter Type Default Description
date String

Material intake classified by company in current year and year ago (Unit: Barrels/Day)

ปริมาณการใช้น้ำมันในการกลั่นแยกรายโรงกลั่น ของปีปัจจุบันและย้อนหลัง 1 ปี (หน่วย: บาร์เรล/วัน)

Material Intake (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/refinery/material-intake/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ESSO": 105417.26097604023,
        "BCP": 109253.37158555309,
        "THAI OIL (TOP)": 302650.1971111999,
        "FANG": 1288.3748014178063,
        "TPI/IRPC": 184681.93373898533,
        "STAR REFINERY CO.,LTD. (SPRC)": 148570.51265143475,
        "PTTAR/PTTGC": 185894.2234143352,
        "TOTAL": 1037755.8742789662
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Material intake classified by company as monthly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันในการกลั่นแยกรายโรงกลั่น รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Material Intake (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ESSO": 123864.38016351842,
        "BCP": 100995.4320162509,
        "THAI OIL (TOP)": 292800.22449404164,
        "FANG": 733.5453401243626,
        "TPI/IRPC": 188272.39808433584,
        "STAR REFINERY CO.,LTD. (SPRC)": 155056.05784868627,
        "PTTAR/PTTGC": 182574.3411880904,
        "TOTAL": 1044296.3791350478
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "ESSO": 112394.58698418376,
        "BCP": 87881.88351053935,
        "THAI OIL (TOP)": 261045.37641112265,
        "FANG": 826.2320734803187,
        "TPI/IRPC": 188727.88322439237,
        "STAR REFINERY CO.,LTD. (SPRC)": 143696.4381614988,
        "PTTAR/PTTGC": 164329.22382982128,
        "TOTAL": 958901.6241950385
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "ESSO": 109361.6771084864,
        "BCP": 93389.38462085389,
        "THAI OIL (TOP)": 241002.78387757496,
        "FANG": 778.4192060205978,
        "TPI/IRPC": 195087.94646641702,
        "STAR REFINERY CO.,LTD. (SPRC)": 143949.23662138986,
        "PTTAR/PTTGC": 162629.79350629097,
        "TOTAL": 946199.2414070335
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "ESSO": 120512.02290546024,
        "BCP": 98004.79658277657,
        "THAI OIL (TOP)": 260494.37071513926,
        "FANG": 445.06490700808695,
        "TPI/IRPC": 197156.0284075837,
        "STAR REFINERY CO.,LTD. (SPRC)": 136932.38841928798,
        "PTTAR/PTTGC": 164488.05913415382,
        "TOTAL": 978032.7310714097
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Material intake classified by company as quarterly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันในการกลั่นแยกรายโรงกลั่น รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Material Intake(Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year' \
--header 'Content-Type: application/json' \
--data-raw '{startYear: "2019", endYear: 2020}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{startYear: \"2019\", endYear: 2020}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/refinery/material-intake/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{startYear: "2019", endYear: 2020}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{startYear: \"2019\", endYear: 2020}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = '{startYear: "2019", endYear: 2020}';

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{startYear: ""2019"", endYear: 2020}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ESSO": 116524.44374787976,
        "BCP": 95071.31252369375,
        "THAI OIL (TOP)": 263764.174603551,
        "FANG": 695.3559645810519,
        "TPI/IRPC": 192331.8887636676,
        "STAR REFINERY CO.,LTD. (SPRC)": 144884.11650456072,
        "PTTAR/PTTGC": 168478.32475287124,
        "TOTAL": 981749.616860805
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/oil/refinery/material-intake/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Material intake classified by company as yearly (Unit: Barrels/Day) (1986-present)

ปริมาณการใช้น้ำมันในการกลั่นแยกรายโรงกลั่น รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Utilization Ratio (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-20T13:58:45.352Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/refinery/util-ratio/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2021,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "process_display": "Intake",
        "ESSO": 132043.60590745206,
        "BCP": 93352.79759936203,
        "THAI OIL (TOP)": 255896.800163938,
        "FANG": 1459.4141648186128,
        "TPI/IRPC": 220985.08934422734,
        "STAR REFINERY CO.,LTD. (SPRC)": 139869.21474063082,
        "PTTAR/PTTGC": 174874.6624356573,
        "TOTAL": 1018481.5843560862
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/current

Query Parameters

Parameter Type Default Description
date String

Refinery capacity, material intake and utilization ratio classified by company in current year and year ago (Unit: Barrels/Day)

กำลังการกลั่นน้ำมัน ปริมาณการใช้น้ำมันในการกลั่น และอัตราการใช้กำลังการผลิต แยกรายโรงกลั่น ของปีปัจจุบันและย้อนหลัง 1 ปี (หน่วย: บาร์เรล/วัน)

Utilization Ratio (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/refinery/util-ratio/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "process_display": "Intake",
        "ESSO": 105417.26097604023,
        "BCP": 109253.37158555309,
        "THAI OIL (TOP)": 302650.1971111999,
        "FANG": 1288.3748014178063,
        "TPI/IRPC": 184681.93373898536,
        "STAR REFINERY CO.,LTD. (SPRC)": 148570.51265143472,
        "PTTAR/PTTGC": 185894.22341433517,
        "TOTAL": 1037755.8742789662
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "process_display": "Utilization Ratio",
        "ESSO": 59.55777456273459,
        "BCP": 91.04447632129424,
        "THAI OIL (TOP)": 110.05461713134542,
        "FANG": 51.534992056712255,
        "TPI/IRPC": 85.89857383208621,
        "STAR REFINERY CO.,LTD. (SPRC)": 84.89743580081985,
        "PTTAR/PTTGC": 66.39079407654827,
        "TOTAL": 83.38737438963167
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Refinery capacity, material intake and utilization ratio classified by company as monthly (Unit: Barrels/Day) (1986-present)

กำลังการกลั่นน้ำมัน ปริมาณการใช้น้ำมันในการกลั่น และอัตราการใช้กำลังการผลิต แยกรายโรงกลั่น รายเดือน (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Utilization Ratio (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/refinery/util-ratio/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "process_display": "Intake",
        "ESSO": 123864.38016351842,
        "BCP": 100995.4320162509,
        "THAI OIL (TOP)": 292800.22449404164,
        "FANG": 733.5453401243626,
        "TPI/IRPC": 188272.39808433584,
        "STAR REFINERY CO.,LTD. (SPRC)": 155056.05784868624,
        "PTTAR/PTTGC": 182574.3411880904,
        "TOTAL": 1044296.3791350478
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "process_display": "Utilization Ratio",
        "ESSO": 69.97987579859797,
        "BCP": 84.16286001354241,
        "THAI OIL (TOP)": 106.47280890692424,
        "FANG": 29.3418136049745,
        "TPI/IRPC": 87.56855724852831,
        "STAR REFINERY CO.,LTD. (SPRC)": 88.6034616278207,
        "PTTAR/PTTGC": 65.20512185288942,
        "TOTAL": 83.91292721053016
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "process_display": "Intake",
        "ESSO": 112394.58698418376,
        "BCP": 87881.88351053937,
        "THAI OIL (TOP)": 261045.37641112262,
        "FANG": 826.2320734803187,
        "TPI/IRPC": 188727.88322439237,
        "STAR REFINERY CO.,LTD. (SPRC)": 143696.4381614988,
        "PTTAR/PTTGC": 164329.22382982128,
        "TOTAL": 958901.6241950386
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "process_display": "Utilization Ratio",
        "ESSO": 63.49976665773093,
        "BCP": 73.23490292544948,
        "THAI OIL (TOP)": 94.9255914222264,
        "FANG": 33.049282939212745,
        "TPI/IRPC": 87.78041080204297,
        "STAR REFINERY CO.,LTD. (SPRC)": 82.11225037799932,
        "PTTAR/PTTGC": 58.68900851065045,
        "TOTAL": 77.05115501768088
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "process_display": "Intake",
        "ESSO": 109361.6771084864,
        "BCP": 93389.38462085389,
        "THAI OIL (TOP)": 241002.78387757496,
        "FANG": 778.4192060205978,
        "TPI/IRPC": 195087.94646641702,
        "STAR REFINERY CO.,LTD. (SPRC)": 143949.23662138986,
        "PTTAR/PTTGC": 162629.79350629097,
        "TOTAL": 946199.2414070335
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "process_display": "Utilization Ratio",
        "ESSO": 61.78625825338215,
        "BCP": 77.8244871840449,
        "THAI OIL (TOP)": 87.6373759554818,
        "FANG": 31.136768240823912,
        "TPI/IRPC": 90.73857975182187,
        "STAR REFINERY CO.,LTD. (SPRC)": 82.2567066407942,
        "PTTAR/PTTGC": 58.08206910938963,
        "TOTAL": 76.0304733955029
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "process_display": "Intake",
        "ESSO": 120512.02290546024,
        "BCP": 98004.79658277657,
        "THAI OIL (TOP)": 260494.37071513923,
        "FANG": 445.06490700808695,
        "TPI/IRPC": 197156.02840758365,
        "STAR REFINERY CO.,LTD. (SPRC)": 136932.388419288,
        "PTTAR/PTTGC": 164488.05913415382,
        "TOTAL": 978032.7310714093
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 4,
        "period_name": "Q4",
        "process_display": "Utilization Ratio",
        "ESSO": 68.08588864715269,
        "BCP": 81.67066381898047,
        "THAI OIL (TOP)": 94.72522571459609,
        "FANG": 17.802596280323478,
        "TPI/IRPC": 91.70047832910868,
        "STAR REFINERY CO.,LTD. (SPRC)": 78.247079096736,
        "PTTAR/PTTGC": 58.74573540505494,
        "TOTAL": 78.58840747861866
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Refinery capacity, material intake and utilization ratio classified by company as quarterly (Unit: Barrels/Day) (1986-present)

กำลังการกลั่นน้ำมัน ปริมาณการใช้น้ำมันในการกลั่น และอัตราการใช้กำลังการผลิต แยกรายโรงกลั่น รายไตรมาส (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Utilization Ratio (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/report/oil/refinery/util-ratio/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "process_display": "Capacity",
        "ESSO": 177000,
        "BCP": 120000,
        "THAI OIL (TOP)": 275000,
        "FANG": 2500,
        "TPI/IRPC": 215000,
        "STAR REFINERY CO.,LTD. (SPRC)": 175000,
        "PTTAR/PTTGC": 280000,
        "TOTAL": 1244500
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "process_display": "Intake",
        "ESSO": 116524.44374787976,
        "BCP": 95071.31252369375,
        "THAI OIL (TOP)": 263764.1746035509,
        "FANG": 695.3559645810519,
        "TPI/IRPC": 192331.88876366758,
        "STAR REFINERY CO.,LTD. (SPRC)": 144884.11650456066,
        "PTTAR/PTTGC": 168478.32475287124,
        "TOTAL": 981749.616860805
    },
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "%",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "process_display": "Utilization Ratio",
        "ESSO": 65.83301906659874,
        "BCP": 79.22609376974478,
        "THAI OIL (TOP)": 95.91424531038216,
        "FANG": 27.81423858324208,
        "TPI/IRPC": 89.45669244821747,
        "STAR REFINERY CO.,LTD. (SPRC)": 82.7909237168918,
        "PTTAR/PTTGC": 60.17083026888259,
        "TOTAL": 78.88707246772238
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/report/oil/refinery/util-ratio/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Refinery capacity, material intake and utilization ratio classified by company as yearly (Unit: Barrels/Day) (1986-present)

กำลังการกลั่นน้ำมัน ปริมาณการใช้น้ำมันในการกลั่น และอัตราการใช้กำลังการผลิต แยกรายโรงกลั่น รายปี (หน่วย: บาร์เรล/วัน) (2529-ปัจจุบัน)

Natural Gas (Production / Import)

Production and Import of Natural Gas (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current' \
--header 'Content-Type: application/json' \
--data-raw '{
    "date": "2021-12-27T02:34:12.146Z"
}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2017-12-01T14:14:15.917Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1317.9983835616435,
        "BONGKOT": 549.8707945205479,
        "BONGKOT TAI": 414.0513150684932,
        "PAILIN": 363.6565205479452,
        "ARTHIT": 244.2407397260274,
        "TAN TAWAN": 110.59542465753424,
        "PHU HORM": 78.11509589041097,
        "SIRIKIT": 44.04202739726028,
        "LANTA": 2.471205479452055,
        "NAM PHONG": 8.41972602739726,
        "JASMIN": 5.873315068493151,
        "YOONG THONG": 3.562191780821918,
        "JDA": 472.1817892328767,
        "OTHERS": 5.070849315068494,
        "TOTAL PRODUCTION": 3620.149378273972,
        "YADANA": 419.51409041095883,
        "YETAKUN": 203.6885054246575,
        "ZAWTIKA": 223.92632602739724,
        "LNG": 511.01210958904113,
        "TOTAL IMPORT": 1358.141031452055,
        "GRAND TOTAL": 4978.290409726028
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1291.2993150684931,
        "BONGKOT": 486.5567945205479,
        "BONGKOT TAI": 352.32756164383557,
        "PAILIN": 421.9628767123288,
        "ARTHIT": 244.5420821917808,
        "TAN TAWAN": 83.59241095890413,
        "PHU HORM": 77.89983561643837,
        "SIRIKIT": 32.53794520547945,
        "LANTA": 1.7956164383561644,
        "NAM PHONG": 8.206904109589042,
        "JASMIN": 6.101698630136986,
        "YOONG THONG": 4.315150684931507,
        "JDA": 510.4212082191781,
        "OTHERS": 5.438958904109587,
        "TOTAL PRODUCTION": 3526.99835890411,
        "YADANA": 439.60858630136977,
        "YETAKUN": 141.2095386027397,
        "ZAWTIKA": 224.28332328767124,
        "LNG": 579.4631780821917,
        "TOTAL IMPORT": 1384.5646262739724,
        "GRAND TOTAL": 4911.562985178082
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1322.0025205479453,
        "BONGKOT": 529.3826301369863,
        "BONGKOT TAI": 354.3826575342465,
        "PAILIN": 426.73487671232874,
        "ARTHIT": 254.6573424657534,
        "TAN TAWAN": 81.62271232876712,
        "PHU HORM": 85.25153424657533,
        "SIRIKIT": 30.97490410958904,
        "LANTA": 1.7123013698630134,
        "NAM PHONG": 8.264958904109589,
        "JASMIN": 3.7977534246575346,
        "YOONG THONG": 2.5312054794520544,
        "JDA": 506.50202739726024,
        "OTHERS": 15.509342465753424,
        "TOTAL PRODUCTION": 3623.326767123287,
        "YADANA": 419.12667397260276,
        "YETAKUN": 99.34208175342467,
        "ZAWTIKA": 218.31906301369864,
        "LNG": 656.9847671232875,
        "TOTAL IMPORT": 1393.7725858630135,
        "GRAND TOTAL": 5017.099352986302
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1185.0523497267761,
        "BONGKOT": 482.7217486338799,
        "BONGKOT TAI": 374.99336065573766,
        "PAILIN": 351.16762295081963,
        "ARTHIT": 250.574043715847,
        "TAN TAWAN": 63.95912568306011,
        "PHU HORM": 94.1456830601093,
        "SIRIKIT": 29.945546448087438,
        "LANTA": 1.746120218579235,
        "NAM PHONG": 8.108005464480875,
        "JASMIN": 4.41226775956284,
        "YOONG THONG": 2.664863387978142,
        "JDA": 386.1697267759563,
        "OTHERS": 25.486286885245896,
        "TOTAL PRODUCTION": 3261.1467513661205,
        "YADANA": 408.88837431693986,
        "YETAKUN": 52.14833193989071,
        "ZAWTIKA": 233.30779508196724,
        "LNG": 743.0672131147542,
        "TOTAL IMPORT": 1437.4117144535521,
        "GRAND TOTAL": 4698.558465819673
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 867.1048219178083,
        "BONGKOT": 547.6293698630137,
        "BONGKOT TAI": 401.76939726027393,
        "PAILIN": 429.7417808219178,
        "ARTHIT": 263.68964383561644,
        "TAN TAWAN": 59.883917808219174,
        "PHU HORM": 90.90268493150685,
        "SIRIKIT": 28.5018904109589,
        "LANTA": 1.419945205479452,
        "NAM PHONG": 8.078931506849315,
        "JASMIN": 6.0518904109589045,
        "YOONG THONG": 1.0091506849315068,
        "JDA": 466.87413698630144,
        "OTHERS": 31.446712328767127,
        "TOTAL PRODUCTION": 3204.104273972603,
        "YADANA": 433.804002739726,
        "YETAKUN": 15.76585805479452,
        "ZAWTIKA": 242.9721589041096,
        "LNG": 828.8941643835619,
        "TOTAL IMPORT": 1521.436184082192,
        "GRAND TOTAL": 4725.540458054796
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ERAWAN": 482.76233333333334,
        "BONGKOT": 506.5872222222222,
        "BONGKOT TAI": 393.3142222222222,
        "PAILIN": 442.1352222222222,
        "ARTHIT": 304.1447777777778,
        "TAN TAWAN": 62.979222222222226,
        "PHU HORM": 95.68377777777779,
        "SIRIKIT": 28.717111111111112,
        "LANTA": 1.6631111111111112,
        "NAM PHONG": 9.817222222222222,
        "JASMIN": 5.720333333333333,
        "YOONG THONG": 1.531666666666667,
        "JDA": 436.6411111111112,
        "OTHERS": 27.463888888888903,
        "TOTAL PRODUCTION": 2799.1612222222225,
        "YADANA": 438.4138,
        "YETAKUN": 42.47981411111111,
        "ZAWTIKA": 238.49125555555554,
        "LNG": 758.8601,
        "TOTAL IMPORT": 1478.2449696666665,
        "GRAND TOTAL": 4277.406191888888
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ERAWAN": 1063.8235555555555,
        "BONGKOT": 577.9181111111111,
        "BONGKOT TAI": 435.52566666666667,
        "PAILIN": 444.91377777777774,
        "ARTHIT": 269.0586666666667,
        "TAN TAWAN": 62.42311111111111,
        "PHU HORM": 98.94411111111113,
        "SIRIKIT": 29.19911111111111,
        "LANTA": 1.27,
        "NAM PHONG": 7.887555555555555,
        "JASMIN": 5.841666666666667,
        "YOONG THONG": 1.9666666666666666,
        "JDA": 542.8122222222223,
        "OTHERS": 36.79044444444444,
        "TOTAL PRODUCTION": 3578.374666666666,
        "YADANA": 423.5125,
        "YETAKUN": 14.763190999999999,
        "ZAWTIKA": 255.11524444444444,
        "LNG": 736.6674444444444,
        "TOTAL IMPORT": 1430.0583798888888,
        "GRAND TOTAL": 5008.433046555556
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 1257.25,
        "BONGKOT": 498.47999999999996,
        "BONGKOT TAI": 406.19,
        "PAILIN": 410.68,
        "ARTHIT": 253.45,
        "TAN TAWAN": 66.19,
        "PHU HORM": 100.42,
        "SIRIKIT": 30.529999999999998,
        "LANTA": 1.8699999999999999,
        "NAM PHONG": 8.42,
        "JASMIN": 3.39,
        "YOONG THONG": 0.08,
        "JDA": 503.54,
        "OTHERS": 20.69,
        "TOTAL PRODUCTION": 3561.1799999999994,
        "YADANA": 306.7750322580645,
        "YETAKUN": 58.227123870967745,
        "ZAWTIKA": 210.6827741935484,
        "LNG": 710.3435483870968,
        "TOTAL IMPORT": 1286.0284787096775,
        "GRAND TOTAL": 4847.208478709677
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 1348.25,
        "BONGKOT": 432.12,
        "BONGKOT TAI": 394.92999999999995,
        "PAILIN": 374.13,
        "ARTHIT": 248.67000000000002,
        "TAN TAWAN": 65.28,
        "PHU HORM": 69.25,
        "SIRIKIT": 33.97,
        "LANTA": 2.79,
        "NAM PHONG": 8.28,
        "JASMIN": 3.5500000000000003,
        "YOONG THONG": 0.33,
        "JDA": 424.29,
        "OTHERS": 20.389999999999997,
        "TOTAL PRODUCTION": 3426.23,
        "YADANA": 403.9953448275862,
        "YETAKUN": 62.02195689655172,
        "ZAWTIKA": 235.63755172413792,
        "LNG": 808.493103448276,
        "TOTAL IMPORT": 1510.1479568965517,
        "GRAND TOTAL": 4936.377956896553
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 1357.3300000000002,
        "BONGKOT": 515.37,
        "BONGKOT TAI": 367.94,
        "PAILIN": 413.62,
        "ARTHIT": 260.62,
        "TAN TAWAN": 66.30000000000001,
        "PHU HORM": 81.97,
        "SIRIKIT": 33.37,
        "LANTA": 2.0999999999999996,
        "NAM PHONG": 8.15,
        "JASMIN": 3.8,
        "YOONG THONG": 2.6599999999999997,
        "JDA": 423.20000000000005,
        "OTHERS": 23.73,
        "TOTAL PRODUCTION": 3560.1600000000008,
        "YADANA": 421.51464516129033,
        "YETAKUN": 57.32173258064516,
        "ZAWTIKA": 271.37764516129033,
        "LNG": 775.897741935484,
        "TOTAL IMPORT": 1526.1117648387096,
        "GRAND TOTAL": 5086.27176483871
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "ERAWAN": 1172.5,
        "BONGKOT": 464.15,
        "BONGKOT TAI": 294.92,
        "PAILIN": 263.51,
        "ARTHIT": 231.95,
        "TAN TAWAN": 60.79,
        "PHU HORM": 91.48,
        "SIRIKIT": 28.31,
        "LANTA": 1.73,
        "NAM PHONG": 8.06,
        "JASMIN": 4.88,
        "YOONG THONG": 5.15,
        "JDA": 347.67,
        "OTHERS": 20.05,
        "TOTAL PRODUCTION": 2995.15,
        "YADANA": 347.3297333333333,
        "YETAKUN": 57.321256,
        "ZAWTIKA": 211.92606666666669,
        "LNG": 845.3603333333334,
        "TOTAL IMPORT": 1461.9373893333332,
        "GRAND TOTAL": 4457.087389333334
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "ERAWAN": 1168,
        "BONGKOT": 427.88,
        "BONGKOT TAI": 282.07,
        "PAILIN": 243.97,
        "ARTHIT": 235.82999999999998,
        "TAN TAWAN": 61.33,
        "PHU HORM": 97.66,
        "SIRIKIT": 26.59,
        "LANTA": 1.8800000000000001,
        "NAM PHONG": 8.1,
        "JASMIN": 4.76,
        "YOONG THONG": 6.34,
        "JDA": 348.67,
        "OTHERS": 19.459999999999994,
        "TOTAL PRODUCTION": 2932.539999999999,
        "YADANA": 422.26274193548386,
        "YETAKUN": 57.40544161290322,
        "ZAWTIKA": 228.03651612903224,
        "LNG": 816.2858064516129,
        "TOTAL IMPORT": 1523.9905061290324,
        "GRAND TOTAL": 4456.530506129032
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "ERAWAN": 1137.57,
        "BONGKOT": 362.95,
        "BONGKOT TAI": 375.54,
        "PAILIN": 231.65,
        "ARTHIT": 241.17000000000002,
        "TAN TAWAN": 62.62,
        "PHU HORM": 101.36,
        "SIRIKIT": 29.56,
        "LANTA": 2.29,
        "NAM PHONG": 8.06,
        "JASMIN": 5.05,
        "YOONG THONG": 5.8,
        "JDA": 306.93,
        "OTHERS": 26.46,
        "TOTAL PRODUCTION": 2897.0100000000007,
        "YADANA": 466.13739999999996,
        "YETAKUN": 57.32339733333333,
        "ZAWTIKA": 239.77993333333333,
        "LNG": 854.3083333333333,
        "TOTAL IMPORT": 1617.5490639999998,
        "GRAND TOTAL": 4514.559064
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "ERAWAN": 1104.16,
        "BONGKOT": 459.22999999999996,
        "BONGKOT TAI": 384.46,
        "PAILIN": 269.53000000000003,
        "ARTHIT": 241.21,
        "TAN TAWAN": 65.64,
        "PHU HORM": 107.86999999999999,
        "SIRIKIT": 29.6,
        "LANTA": 1.31,
        "NAM PHONG": 8.02,
        "JASMIN": 4.63,
        "YOONG THONG": 3.73,
        "JDA": 351,
        "OTHERS": 23.573580645161286,
        "TOTAL PRODUCTION": 3053.963580645161,
        "YADANA": 477.06277419354836,
        "YETAKUN": 57.12467935483871,
        "ZAWTIKA": 248.0740322580645,
        "LNG": 898.5283870967743,
        "TOTAL IMPORT": 1680.7898729032256,
        "GRAND TOTAL": 4734.7534535483865
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "ERAWAN": 1191.0800000000002,
        "BONGKOT": 441.26,
        "BONGKOT TAI": 399.90999999999997,
        "PAILIN": 349.83,
        "ARTHIT": 251.8,
        "TAN TAWAN": 63.480000000000004,
        "PHU HORM": 104.98,
        "SIRIKIT": 30.66,
        "LANTA": 1.7999999999999998,
        "NAM PHONG": 8.040000000000001,
        "JASMIN": 5.47,
        "YOONG THONG": 1.65,
        "JDA": 349,
        "OTHERS": 27.049999999999997,
        "TOTAL PRODUCTION": 3226.01,
        "YADANA": 448.82583870967744,
        "YETAKUN": 47.67562612903225,
        "ZAWTIKA": 248.39145161290324,
        "LNG": 603.9151612903227,
        "TOTAL IMPORT": 1348.8080777419357,
        "GRAND TOTAL": 4574.818077741937
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "ERAWAN": 1217.62,
        "BONGKOT": 531.7099999999999,
        "BONGKOT TAI": 403.18,
        "PAILIN": 381.08,
        "ARTHIT": 251.11,
        "TAN TAWAN": 65.19,
        "PHU HORM": 90.58,
        "SIRIKIT": 30.77,
        "LANTA": 1.6700000000000002,
        "NAM PHONG": 8.06,
        "JASMIN": 4.26,
        "YOONG THONG": 1.8599999999999999,
        "JDA": 335,
        "OTHERS": 26.82,
        "TOTAL PRODUCTION": 3348.9100000000003,
        "YADANA": 462.0876,
        "YETAKUN": 47.64831366666667,
        "ZAWTIKA": 247.94866666666667,
        "LNG": 778.6036666666666,
        "TOTAL IMPORT": 1536.2882470000002,
        "GRAND TOTAL": 4885.198246999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "ERAWAN": 1075.9199999999998,
        "BONGKOT": 596.4599999999999,
        "BONGKOT TAI": 424.95000000000005,
        "PAILIN": 417.86,
        "ARTHIT": 259.38,
        "TAN TAWAN": 63.07,
        "PHU HORM": 90.26,
        "SIRIKIT": 28.66,
        "LANTA": 1.23,
        "NAM PHONG": 8.09,
        "JASMIN": 4.5600000000000005,
        "YOONG THONG": 1.6700000000000002,
        "JDA": 411,
        "OTHERS": 32.62,
        "TOTAL PRODUCTION": 3415.7299999999996,
        "YADANA": 388.3411290322581,
        "YETAKUN": 46.22411548387097,
        "ZAWTIKA": 220.47177419354838,
        "LNG": 674.3809677419355,
        "TOTAL IMPORT": 1329.417986451613,
        "GRAND TOTAL": 4745.147986451613
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "ERAWAN": 1139.45,
        "BONGKOT": 529.41,
        "BONGKOT TAI": 366.3,
        "PAILIN": 429.45,
        "ARTHIT": 269.52000000000004,
        "TAN TAWAN": 64.3,
        "PHU HORM": 96.82,
        "SIRIKIT": 29.09,
        "LANTA": 1.27,
        "NAM PHONG": 8.03,
        "JASMIN": 4.65,
        "YOONG THONG": 1.6400000000000001,
        "JDA": 425,
        "OTHERS": 31.310000000000002,
        "TOTAL PRODUCTION": 3396.24,
        "YADANA": 411.39113333333336,
        "YETAKUN": 47.06718433333334,
        "ZAWTIKA": 232.06003333333334,
        "LNG": 587.246,
        "TOTAL IMPORT": 1277.764351,
        "GRAND TOTAL": 4674.004351
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "ERAWAN": 1059.6699999999998,
        "BONGKOT": 529,
        "BONGKOT TAI": 398.88,
        "PAILIN": 426.99,
        "ARTHIT": 261.78000000000003,
        "TAN TAWAN": 63.309999999999995,
        "PHU HORM": 95.61,
        "SIRIKIT": 28.43,
        "LANTA": 1.0799999999999998,
        "NAM PHONG": 7.99,
        "JASMIN": 3.93,
        "YOONG THONG": 1.04,
        "JDA": 407,
        "OTHERS": 33.44,
        "TOTAL PRODUCTION": 3318.15,
        "YADANA": 352.2792580645161,
        "YETAKUN": 31.080900322580646,
        "ZAWTIKA": 205.40848387096773,
        "LNG": 570.6725806451614,
        "TOTAL IMPORT": 1159.4412229032257,
        "GRAND TOTAL": 4477.5912229032265
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1185.0523497267761,
        "BONGKOT": 482.7217486338799,
        "BONGKOT TAI": 374.99336065573766,
        "PAILIN": 351.16762295081963,
        "ARTHIT": 250.574043715847,
        "TAN TAWAN": 63.95912568306011,
        "PHU HORM": 94.1456830601093,
        "SIRIKIT": 29.945546448087438,
        "LANTA": 1.746120218579235,
        "NAM PHONG": 8.108005464480875,
        "JASMIN": 4.41226775956284,
        "YOONG THONG": 2.664863387978142,
        "JDA": 386.1697267759563,
        "OTHERS": 25.486286885245896,
        "TOTAL PRODUCTION": 3261.1467513661214,
        "YADANA": 408.88837431693986,
        "YETAKUN": 52.14833193989071,
        "ZAWTIKA": 233.30779508196724,
        "LNG": 743.0672131147542,
        "TOTAL IMPORT": 1437.4117144535521,
        "GRAND TOTAL": 4698.558465819673
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 1035.59,
        "BONGKOT": 572.7,
        "BONGKOT TAI": 444.44,
        "PAILIN": 443.01,
        "ARTHIT": 267.36,
        "TAN TAWAN": 57.49,
        "PHU HORM": 97.03,
        "SIRIKIT": 27.91,
        "LANTA": 0.95,
        "NAM PHONG": 7.92,
        "JASMIN": 5.88,
        "YOONG THONG": 1.35,
        "JDA": 510,
        "OTHERS": 41.04,
        "TOTAL PRODUCTION": 3512.67,
        "YADANA": 356.21570967741934,
        "YETAKUN": 11.949176774193548,
        "ZAWTIKA": 219.02499999999998,
        "LNG": 500.3451612903226,
        "TOTAL IMPORT": 1087.5350477419354,
        "GRAND TOTAL": 4600.205047741935
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 1048.73,
        "BONGKOT": 574.67,
        "BONGKOT TAI": 432.56,
        "PAILIN": 440.56,
        "ARTHIT": 264.14,
        "TAN TAWAN": 66.46000000000001,
        "PHU HORM": 102.64,
        "SIRIKIT": 29.639999999999997,
        "LANTA": 1.27,
        "NAM PHONG": 7.86,
        "JASMIN": 5.4799999999999995,
        "YOONG THONG": 3,
        "JDA": 560.62,
        "OTHERS": 38.120000000000005,
        "TOTAL PRODUCTION": 3575.75,
        "YADANA": 465.59225000000004,
        "YETAKUN": 17.926053928571427,
        "ZAWTIKA": 274.4072857142857,
        "LNG": 757.9271428571428,
        "TOTAL IMPORT": 1515.8527325,
        "GRAND TOTAL": 5091.602732500001
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 1105.69,
        "BONGKOT": 586.0699999999999,
        "BONGKOT TAI": 429.29,
        "PAILIN": 450.75,
        "ARTHIT": 275.20000000000005,
        "TAN TAWAN": 63.71,
        "PHU HORM": 97.52,
        "SIRIKIT": 30.09,
        "LANTA": 1.59,
        "NAM PHONG": 7.88,
        "JASMIN": 6.13,
        "YOONG THONG": 1.65,
        "JDA": 559.5400000000001,
        "OTHERS": 31.34,
        "TOTAL PRODUCTION": 3646.4499999999994,
        "YADANA": 452.8017741935484,
        "YETAKUN": 14.720425806451614,
        "ZAWTIKA": 273.78041935483867,
        "LNG": 953.7874193548388,
        "TOTAL IMPORT": 1695.0900387096776,
        "GRAND TOTAL": 5341.540038709678
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "ERAWAN": 1039.28,
        "BONGKOT": 559.0300000000001,
        "BONGKOT TAI": 411.39000000000004,
        "PAILIN": 468.15,
        "ARTHIT": 263.31,
        "TAN TAWAN": 56.519999999999996,
        "PHU HORM": 100.94,
        "SIRIKIT": 30.36,
        "LANTA": 1.3900000000000001,
        "NAM PHONG": 7.84,
        "JASMIN": 4.77,
        "YOONG THONG": 0.85,
        "JDA": 438.74,
        "OTHERS": 34.96,
        "TOTAL PRODUCTION": 3417.53,
        "YADANA": 370.32026666666667,
        "YETAKUN": 0.0012666666666666666,
        "ZAWTIKA": 233.45996666666667,
        "LNG": 822.4873333333333,
        "TOTAL IMPORT": 1426.2688333333333,
        "GRAND TOTAL": 4843.798833333332
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "ERAWAN": 1042.52,
        "BONGKOT": 578.4399999999999,
        "BONGKOT TAI": 446.56,
        "PAILIN": 361.71999999999997,
        "ARTHIT": 268.33,
        "TAN TAWAN": 65.27,
        "PHU HORM": 98.67,
        "SIRIKIT": 29.25,
        "LANTA": 1.32,
        "NAM PHONG": 7.83,
        "JASMIN": 4.3100000000000005,
        "YOONG THONG": 1.3900000000000001,
        "JDA": 459.21,
        "OTHERS": 28.5,
        "TOTAL PRODUCTION": 3393.3199999999993,
        "YADANA": 417.3687419354839,
        "YETAKUN": null,
        "ZAWTIKA": 262.20616129032254,
        "LNG": 1163.991935483871,
        "TOTAL IMPORT": 1843.5668387096773,
        "GRAND TOTAL": 5236.886838709676
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "ERAWAN": 1040.15,
        "BONGKOT": 556.91,
        "BONGKOT TAI": 445.92,
        "PAILIN": 433.10999999999996,
        "ARTHIT": 272.87,
        "TAN TAWAN": 47.47,
        "PHU HORM": 90.08,
        "SIRIKIT": 28.08,
        "LANTA": 1.27,
        "NAM PHONG": 15.65,
        "JASMIN": 4.71,
        "YOONG THONG": 0.87,
        "JDA": 512.9,
        "OTHERS": 34.15,
        "TOTAL PRODUCTION": 3484.1400000000003,
        "YADANA": 473.75983333333335,
        "YETAKUN": null,
        "ZAWTIKA": 293.1861666666666,
        "LNG": 913.3056666666666,
        "TOTAL IMPORT": 1680.2516666666666,
        "GRAND TOTAL": 5164.391666666667
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "ERAWAN": 801.42,
        "BONGKOT": 460.87,
        "BONGKOT TAI": 328.65,
        "PAILIN": 376.04999999999995,
        "ARTHIT": 243.59,
        "TAN TAWAN": 56.349999999999994,
        "PHU HORM": 51.75,
        "SIRIKIT": 26.39,
        "LANTA": 1.49,
        "NAM PHONG": 7.54,
        "JASMIN": 5.050000000000001,
        "YOONG THONG": null,
        "JDA": 394.38,
        "OTHERS": 25.52,
        "TOTAL PRODUCTION": 2779.0500000000006,
        "YADANA": 431.58732258064515,
        "YETAKUN": 15.242806451612903,
        "ZAWTIKA": 242.34545161290322,
        "LNG": 906.8135483870968,
        "TOTAL IMPORT": 1595.989129032258,
        "GRAND TOTAL": 4375.039129032258
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "ERAWAN": 780.3100000000001,
        "BONGKOT": 554.1899999999999,
        "BONGKOT TAI": 390.22999999999996,
        "PAILIN": 450.22999999999996,
        "ARTHIT": 274.6,
        "TAN TAWAN": 60.190000000000005,
        "PHU HORM": 82.16,
        "SIRIKIT": 28.04,
        "LANTA": 1.2000000000000002,
        "NAM PHONG": 7.42,
        "JASMIN": 5,
        "YOONG THONG": null,
        "JDA": 359.63,
        "OTHERS": 26.970000000000002,
        "TOTAL PRODUCTION": 3020.17,
        "YADANA": 437.90509677419357,
        "YETAKUN": 22.373387096774195,
        "ZAWTIKA": 250.89035483870967,
        "LNG": 596.771935483871,
        "TOTAL IMPORT": 1307.9407741935486,
        "GRAND TOTAL": 4328.110774193548
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "ERAWAN": 712,
        "BONGKOT": 562.45,
        "BONGKOT TAI": 402.39000000000004,
        "PAILIN": 448.25,
        "ARTHIT": 259.33,
        "TAN TAWAN": 64.35,
        "PHU HORM": 102.45,
        "SIRIKIT": 28.1,
        "LANTA": 1.8599999999999999,
        "NAM PHONG": 7.29,
        "JASMIN": 6.22,
        "YOONG THONG": null,
        "JDA": 448.27000000000004,
        "OTHERS": 31.9,
        "TOTAL PRODUCTION": 3074.86,
        "YADANA": 483.7651666666667,
        "YETAKUN": null,
        "ZAWTIKA": 274.7752,
        "LNG": 660.0480000000001,
        "TOTAL IMPORT": 1418.5883666666668,
        "GRAND TOTAL": 4493.4483666666665
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "ERAWAN": 663.12,
        "BONGKOT": 561.91,
        "BONGKOT TAI": 283.54,
        "PAILIN": 441.52000000000004,
        "ARTHIT": 257.96999999999997,
        "TAN TAWAN": 64.27,
        "PHU HORM": 84.21000000000001,
        "SIRIKIT": 27.31,
        "LANTA": 1.98,
        "NAM PHONG": 5.83,
        "JASMIN": 6.96,
        "YOONG THONG": 1.1300000000000001,
        "JDA": 468.25,
        "OTHERS": 24.36,
        "TOTAL PRODUCTION": 2892.3599999999997,
        "YADANA": 444.99251612903225,
        "YETAKUN": 15.266741935483871,
        "ZAWTIKA": 162.03280645161288,
        "LNG": 1005.4212903225806,
        "TOTAL IMPORT": 1627.7133548387094,
        "GRAND TOTAL": 4520.07335483871
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "ERAWAN": 606.7900000000001,
        "BONGKOT": 516.18,
        "BONGKOT TAI": 414.57,
        "PAILIN": 421.59000000000003,
        "ARTHIT": 259.27000000000004,
        "TAN TAWAN": 63.03,
        "PHU HORM": 103.68,
        "SIRIKIT": 28,
        "LANTA": 1.63,
        "NAM PHONG": 7.86,
        "JASMIN": 12.620000000000001,
        "YOONG THONG": 0.38,
        "JDA": 451.40999999999997,
        "OTHERS": 32.64,
        "TOTAL PRODUCTION": 2919.6500000000005,
        "YADANA": 476.33610000000004,
        "YETAKUN": 44.58273333333333,
        "ZAWTIKA": 234.64253333333332,
        "LNG": 894.4736666666666,
        "TOTAL IMPORT": 1650.035033333333,
        "GRAND TOTAL": 4569.685033333334
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "ERAWAN": 544.97,
        "BONGKOT": 490.88,
        "BONGKOT TAI": 396.84000000000003,
        "PAILIN": 424.69,
        "ARTHIT": 258.35,
        "TAN TAWAN": 53.87,
        "PHU HORM": 81.92,
        "SIRIKIT": 28.98,
        "LANTA": 1.09,
        "NAM PHONG": 6.21,
        "JASMIN": 5.569999999999999,
        "YOONG THONG": 1.6199999999999999,
        "JDA": 448.09000000000003,
        "OTHERS": 28.759999999999998,
        "TOTAL PRODUCTION": 2771.84,
        "YADANA": 400.30422580645165,
        "YETAKUN": 46.740645161290324,
        "ZAWTIKA": 200.02683870967743,
        "LNG": 763.674193548387,
        "TOTAL IMPORT": 1410.7459032258062,
        "GRAND TOTAL": 4182.585903225807
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 867.1048219178083,
        "BONGKOT": 547.6293698630137,
        "BONGKOT TAI": 401.76939726027393,
        "PAILIN": 429.7417808219178,
        "ARTHIT": 263.68964383561644,
        "TAN TAWAN": 59.883917808219174,
        "PHU HORM": 90.90268493150685,
        "SIRIKIT": 28.5018904109589,
        "LANTA": 1.419945205479452,
        "NAM PHONG": 8.078931506849315,
        "JASMIN": 6.0518904109589045,
        "YOONG THONG": 1.0091506849315068,
        "JDA": 466.87413698630144,
        "OTHERS": 31.446712328767127,
        "TOTAL PRODUCTION": 3204.104273972603,
        "YADANA": 433.804002739726,
        "YETAKUN": 15.76585805479452,
        "ZAWTIKA": 242.9721589041096,
        "LNG": 828.8941643835619,
        "TOTAL IMPORT": 1521.436184082192,
        "GRAND TOTAL": 4725.540458054796
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 508.49,
        "BONGKOT": 455.94,
        "BONGKOT TAI": 397.19,
        "PAILIN": 443.95000000000005,
        "ARTHIT": 260.89,
        "TAN TAWAN": 62.910000000000004,
        "PHU HORM": 102.03,
        "SIRIKIT": 28.450000000000003,
        "LANTA": 1.47,
        "NAM PHONG": 7.4,
        "JASMIN": 5.89,
        "YOONG THONG": 1.76,
        "JDA": 417.68,
        "OTHERS": 30.99,
        "TOTAL PRODUCTION": 2725.0399999999995,
        "YADANA": 362.9347096774194,
        "YETAKUN": 39.011967741935486,
        "ZAWTIKA": 216.43683870967743,
        "LNG": 733.0612903225807,
        "TOTAL IMPORT": 1351.444806451613,
        "GRAND TOTAL": 4076.484806451613
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "ERAWAN": 466.57,
        "BONGKOT": 507.81,
        "BONGKOT TAI": 382.23,
        "PAILIN": 435.67,
        "ARTHIT": 327.04,
        "TAN TAWAN": 60.730000000000004,
        "PHU HORM": 80.48,
        "SIRIKIT": 29.22,
        "LANTA": 1.67,
        "NAM PHONG": 15.379999999999999,
        "JASMIN": 5.3999999999999995,
        "YOONG THONG": 1.7899999999999998,
        "JDA": 448.18,
        "OTHERS": 33.13,
        "TOTAL PRODUCTION": 2795.3,
        "YADANA": 483.9806785714286,
        "YETAKUN": 44.32111678571429,
        "ZAWTIKA": 248.96407142857143,
        "LNG": 146.50675,
        "TOTAL IMPORT": 923.7726167857143,
        "GRAND TOTAL": 3719.072616785714
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "ERAWAN": 471.65999999999997,
        "BONGKOT": 556.13,
        "BONGKOT TAI": 399.45000000000005,
        "PAILIN": 446.15999999999997,
        "ARTHIT": 326.71999999999997,
        "TAN TAWAN": 65.08,
        "PHU HORM": 103.07000000000001,
        "SIRIKIT": 28.529999999999998,
        "LANTA": 1.85,
        "NAM PHONG": 7.21,
        "JASMIN": 5.84,
        "YOONG THONG": 1.07,
        "JDA": 445.18,
        "OTHERS": 18.820000000000004,
        "TOTAL PRODUCTION": 2876.7699999999995,
        "YADANA": 472.7357096774194,
        "YETAKUN": 44.28454838709677,
        "ZAWTIKA": 251.08635483870967,
        "LNG": 1337.7522580645161,
        "TOTAL IMPORT": 2105.858870967742,
        "GRAND TOTAL": 4982.628870967743
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 482.76233333333334,
        "BONGKOT": 506.5872222222222,
        "BONGKOT TAI": 393.3142222222222,
        "PAILIN": 442.1352222222222,
        "ARTHIT": 304.1447777777778,
        "TAN TAWAN": 62.979222222222226,
        "PHU HORM": 95.68377777777779,
        "SIRIKIT": 28.717111111111112,
        "LANTA": 1.6631111111111112,
        "NAM PHONG": 9.817222222222222,
        "JASMIN": 5.720333333333333,
        "YOONG THONG": 1.5316666666666665,
        "JDA": 436.6411111111112,
        "OTHERS": 27.4638888888889,
        "TOTAL PRODUCTION": 2799.1612222222225,
        "YADANA": 438.4138,
        "YETAKUN": 42.47981411111111,
        "ZAWTIKA": 238.49125555555554,
        "LNG": 758.8601000000001,
        "TOTAL IMPORT": 1478.2449696666667,
        "GRAND TOTAL": 4277.406191888888
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -1.8594124879167366,
        "BONGKOT": -7.288963351668669,
        "BONGKOT TAI": 6.816230662550818,
        "PAILIN": 7.125600320350169,
        "ARTHIT": -0.2264342150347955,
        "TAN TAWAN": -20.990706721910822,
        "PHU HORM": -35.0312198770606,
        "SIRIKIT": -3.943130736672736,
        "LANTA": -58.687039403474536,
        "NAM PHONG": -24.244893747917185,
        "JASMIN": 77.65972396560444,
        "YOONG THONG": -43.46206435405088,
        "JDA": -11.3278562424092,
        "OTHERS": 37.712980006774174,
        "TOTAL PRODUCTION": -4.150594450663086,
        "YADANA": -1.2714205870823032,
        "YETAKUN": -6.867466158046179,
        "ZAWTIKA": 3.1272355949425372,
        "LNG": 30.536549437687494,
        "TOTAL IMPORT": 8.457683072507605,
        "GRAND TOTAL": -1.011198113674767
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -2.0257284702429774,
        "BONGKOT": -11.51434130179722,
        "BONGKOT TAI": -14.907271436741395,
        "PAILIN": 16.033359191945618,
        "ARTHIT": 0.12337927984143213,
        "TAN TAWAN": -24.41603147892118,
        "PHU HORM": -0.27556808516831927,
        "SIRIKIT": -26.12069169299064,
        "LANTA": -27.338440559207978,
        "NAM PHONG": -2.527658466744756,
        "JASMIN": 3.888494980781415,
        "YOONG THONG": 21.137517305030006,
        "JDA": 8.09845272695215,
        "OTHERS": 7.259328096128217,
        "TOTAL PRODUCTION": -2.5731263999463847,
        "YADANA": 4.7899454034371525,
        "YETAKUN": -30.67378136614007,
        "ZAWTIKA": 0.1594262124544947,
        "LNG": 13.395194988275192,
        "TOTAL IMPORT": 1.9455707625346554,
        "GRAND TOTAL": -1.340368260107535
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 2.3776985801176242,
        "BONGKOT": 8.80181637554541,
        "BONGKOT TAI": 0.5832912647601599,
        "PAILIN": 1.130905172791588,
        "ARTHIT": 4.136408827189008,
        "TAN TAWAN": -2.35631274124315,
        "PHU HORM": 9.43737374021573,
        "SIRIKIT": -4.80374862647194,
        "LANTA": -4.639914555996351,
        "NAM PHONG": 0.7073897019549212,
        "JASMIN": -37.75907898990624,
        "YOONG THONG": -41.341434766321925,
        "JDA": -0.7678326759954962,
        "OTHERS": 185.15277903708414,
        "TOTAL PRODUCTION": 2.731172470664506,
        "YADANA": -4.659124722992971,
        "YETAKUN": -29.64917049059938,
        "ZAWTIKA": -2.6592526749403933,
        "LNG": 13.378173449720057,
        "TOTAL IMPORT": 0.6650436833577784,
        "GRAND TOTAL": 2.1487328601242135
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -10.113706288500643,
        "BONGKOT": -8.564383034753416,
        "BONGKOT TAI": 6.1058524540495505,
        "PAILIN": -17.482787265879942,
        "ARTHIT": -1.3338686753179774,
        "TAN TAWAN": -21.425845411682015,
        "PHU HORM": 10.73538707855982,
        "SIRIKIT": -3.0583309157037304,
        "LANTA": 2.2544360709771594,
        "NAM PHONG": -1.6302528250975346,
        "JASMIN": 16.499300235178662,
        "YOONG THONG": 5.568844775893252,
        "JDA": -23.548632565751536,
        "OTHERS": 64.77882531253806,
        "TOTAL PRODUCTION": -9.749199832830513,
        "YADANA": -2.1754896790087477,
        "YETAKUN": -47.36248409613269,
        "ZAWTIKA": 7.158299092676458,
        "LNG": 13.412525066780848,
        "TOTAL IMPORT": 3.413558521618726,
        "GRAND TOTAL": -6.092526831557213
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -27.02974824196741,
        "BONGKOT": 13.136214869057582,
        "BONGKOT TAI": 6.847669507008401,
        "PAILIN": 22.040756305953565,
        "ARTHIT": 4.946696165416889,
        "TAN TAWAN": -6.627396937251606,
        "PHU HORM": -3.708471813826506,
        "SIRIKIT": -5.080989446235313,
        "LANTA": -18.902171872066102,
        "NAM PHONG": -0.63082765801863,
        "JASMIN": 36.78578726724424,
        "YOONG THONG": -62.23470789673344,
        "JDA": 20.568364712930972,
        "OTHERS": 23.04967173496605,
        "TOTAL PRODUCTION": -2.0175988899663917,
        "YADANA": 5.803630789048898,
        "YETAKUN": -69.8498852120261,
        "ZAWTIKA": 3.8577817176313167,
        "LNG": 11.24557935539669,
        "TOTAL IMPORT": 5.556344042618098,
        "GRAND TOTAL": 0.2994680094023698
    },
    {
        "section": "3.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ERAWAN": -54.62007484114951,
        "BONGKOT": -12.342732909295298,
        "BONGKOT TAI": -9.692068154676939,
        "PAILIN": -0.6245155116197288,
        "ARTHIT": 13.040319996299873,
        "TAN TAWAN": 0.8908737504627948,
        "PHU HORM": -3.295126204804735,
        "SIRIKIT": -1.6507351821973313,
        "LANTA": 30.953630796150488,
        "NAM PHONG": 24.464698258860647,
        "JASMIN": -2.077032810271055,
        "YOONG THONG": -22.1186440677966,
        "JDA": -19.559454773596762,
        "OTHERS": -25.350483519271254,
        "TOTAL PRODUCTION": -21.77562488643198,
        "YADANA": 3.5185029957793414,
        "YETAKUN": 187.7414111292817,
        "ZAWTIKA": -6.516266374081395,
        "LNG": 3.012574496527692,
        "TOTAL IMPORT": 3.3695540304810216,
        "GRAND TOTAL": -14.595919479634775
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/current

Query Parameters

Parameter Type Default Description
date String

Quantity of natural gas production and import classified by sources in current year and 5 years ago (Unit: MMSCFD)

ปริมาณการผลิตและการนำเข้าก๊าซธรรมชาติรายแหล่ง ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน)

Production and Import of Natural Gas (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 1257.25,
        "BONGKOT": 498.47999999999996,
        "BONGKOT TAI": 406.19,
        "PAILIN": 410.68,
        "ARTHIT": 253.45,
        "TAN TAWAN": 66.19,
        "PHU HORM": 100.42,
        "SIRIKIT": 30.529999999999998,
        "LANTA": 1.8699999999999999,
        "NAM PHONG": 8.42,
        "JASMIN": 3.39,
        "YOONG THONG": 0.08,
        "JDA": 503.54,
        "OTHERS": 20.690000000000005,
        "TOTAL PRODUCTION": 3561.18,
        "YADANA": 306.7750322580645,
        "YETAKUN": 58.227123870967745,
        "ZAWTIKA": 210.6827741935484,
        "LNG": 710.3435483870968,
        "TOTAL IMPORT": 1286.0284787096773,
        "GRAND TOTAL": 4847.208478709677
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": 35.30430924581178,
        "BONGKOT": 13.997607534581233,
        "BONGKOT TAI": 11.406050803385396,
        "PAILIN": 11.532132607731146,
        "ARTHIT": 7.117023009227279,
        "TAN TAWAN": 1.8586535923486036,
        "PHU HORM": 2.819851846859749,
        "SIRIKIT": 0.857300108391039,
        "LANTA": 0.052510684660702356,
        "NAM PHONG": 0.2364384838733229,
        "JASMIN": 0.0951931663100433,
        "YOONG THONG": 0.002246446402596892,
        "JDA": 14.139695269545488,
        "OTHERS": 0.5809872008716214,
        "TOTAL PRODUCTION": 100,
        "YADANA": 23.854450918992395,
        "YETAKUN": 4.527669863842307,
        "ZAWTIKA": 16.382434579126482,
        "LNG": 55.235444638038835,
        "TOTAL IMPORT": 100,
        "GRAND TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ERAWAN": -0.31398418978600434,
        "BONGKOT": -13.082596641732499,
        "BONGKOT TAI": 9007.399103139014,
        "PAILIN": 3.777828317287045,
        "ARTHIT": -14.172028445648488,
        "TAN TAWAN": -11.213950368879958,
        "PHU HORM": -1.6358115388382795,
        "SIRIKIT": 1.7327557480839726,
        "LANTA": 20.645161290322587,
        "NAM PHONG": -3.107019562715767,
        "JASMIN": -24.666666666666664,
        "YOONG THONG": -97.67441860465115,
        "JDA": -2.2062536414837823,
        "OTHERS": 358.7583148558759,
        "TOTAL PRODUCTION": 8.75658507535617,
        "YADANA": -15.668022714059868,
        "YETAKUN": -49.09109839440849,
        "ZAWTIKA": 31.565168729903636,
        "LNG": -5.587980444169287,
        "TOTAL IMPORT": -7.524426631481658,
        "GRAND TOTAL": 3.9032275932374287
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of natural gas production and import classified by sources as monthly (Unit: MMSCFD) (1986-present)

ปริมาณการผลิตและการนำเข้าก๊าซธรรมชาติรายแหล่ง รายเดือน (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Production and Import of Natural Gas (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 1320.343186813187,
        "BONGKOT": 483.0860439560439,
        "BONGKOT TAI": 389.57142857142856,
        "PAILIN": 400.0337362637363,
        "ARTHIT": 254.3692307692308,
        "TAN TAWAN": 65.93747252747252,
        "PHU HORM": 84.20153846153846,
        "SIRIKIT": 32.59373626373626,
        "LANTA": 2.2415384615384615,
        "NAM PHONG": 8.283406593406593,
        "JASMIN": 3.580659340659341,
        "YOONG THONG": 1.0385714285714287,
        "JDA": 450.91593406593415,
        "OTHERS": 21.63,
        "TOTAL PRODUCTION": 3517.8264835164846,
        "YADANA": 376.8444505494506,
        "YETAKUN": 59.128036263736256,
        "ZAWTIKA": 239.31167032967033,
        "LNG": 763.9536263736263,
        "TOTAL IMPORT": 1439.2377835164834,
        "GRAND TOTAL": 4957.064267032966
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 37.53292531624094,
        "BONGKOT": 13.73251484175371,
        "BONGKOT TAI": 11.074208190678176,
        "PAILIN": 11.37161648359231,
        "ARTHIT": 7.2308634880410185,
        "TAN TAWAN": 1.8743810371670235,
        "PHU HORM": 2.3935671317525884,
        "SIRIKIT": 0.9265305272008459,
        "LANTA": 0.06371941515710514,
        "NAM PHONG": 0.23546944774622156,
        "JASMIN": 0.10178612724184302,
        "YOONG THONG": 0.029523099943612154,
        "JDA": 12.818026590532408,
        "OTHERS": 0.6148683029521754,
        "TOTAL PRODUCTION": 100,
        "YADANA": 26.18361294189402,
        "YETAKUN": 4.108288216229912,
        "ZAWTIKA": 16.62766730212996,
        "LNG": 53.08043153974611,
        "TOTAL IMPORT": 100,
        "GRAND TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ERAWAN": 3.4554453859860432,
        "BONGKOT": -12.56942008128743,
        "BONGKOT TAI": 77.34828519801415,
        "PAILIN": -4.959445385922178,
        "ARTHIT": -6.008067496047039,
        "TAN TAWAN": -20.915253209686337,
        "PHU HORM": -10.830858462197321,
        "SIRIKIT": 9.614652588631378,
        "LANTA": 29.78303747534517,
        "NAM PHONG": -2.2537183759741684,
        "JASMIN": -19.652808600877826,
        "YOONG THONG": -26.27925117004679,
        "JDA": -12.92181089171565,
        "OTHERS": 298.35060309236627,
        "TOTAL PRODUCTION": 0.8884691849972114,
        "YADANA": -11.738879841308908,
        "YETAKUN": -49.93506079341954,
        "ZAWTIKA": 14.507670945222314,
        "LNG": 20.37427653133982,
        "TOTAL IMPORT": 3.638582123829707,
        "GRAND TOTAL": 1.6717861310447926
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of natural gas production and import classified by sources as quarterly (Unit: MMSCFD) (1986-present)

ปริมาณการผลิตและการนำเข้าก๊าซธรรมชาติรายแหล่ง รายไตรมาส (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Production and Import of Natural Gas (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 1185.052349726776,
        "BONGKOT": 482.7217486338799,
        "BONGKOT TAI": 374.9933606557377,
        "PAILIN": 351.1676229508197,
        "ARTHIT": 250.57404371584698,
        "TAN TAWAN": 63.95912568306011,
        "PHU HORM": 94.1456830601093,
        "SIRIKIT": 29.94554644808743,
        "LANTA": 1.7461202185792348,
        "NAM PHONG": 8.108005464480875,
        "JASMIN": 4.412267759562841,
        "YOONG THONG": 2.664863387978142,
        "JDA": 386.1697267759563,
        "OTHERS": 25.486286885245896,
        "TOTAL PRODUCTION": 3261.1467513661214,
        "YADANA": 408.8883743169398,
        "YETAKUN": 52.14833193989071,
        "ZAWTIKA": 233.30779508196719,
        "LNG": 743.067213114754,
        "TOTAL IMPORT": 1437.4117144535517,
        "GRAND TOTAL": 4698.558465819671
    },
    {
        "section": 2.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 36.33851648136803,
        "BONGKOT": 14.802208714822903,
        "BONGKOT TAI": 11.498818950685061,
        "PAILIN": 10.76822509761981,
        "ARTHIT": 7.683617537630881,
        "TAN TAWAN": 1.9612464743043876,
        "PHU HORM": 2.886888884122462,
        "SIRIKIT": 0.9182520362060678,
        "LANTA": 0.05354313533568433,
        "NAM PHONG": 0.2486243669066523,
        "JASMIN": 0.13529804378519633,
        "YOONG THONG": 0.0817155311045665,
        "JDA": 11.841531713167667,
        "OTHERS": 0.7815130329406209,
        "TOTAL PRODUCTION": 100.00000000000003,
        "YADANA": 28.44615569815244,
        "YETAKUN": 3.6279328612342265,
        "ZAWTIKA": 16.231104333991166,
        "LNG": 51.69480710662214,
        "TOTAL IMPORT": 99.99999999999997,
        "GRAND TOTAL": 100
    },
    {
        "section": 3.1,
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": -10.113706288500653,
        "BONGKOT": -8.564383034753401,
        "BONGKOT TAI": 6.105852454049573,
        "PAILIN": -17.48278726587995,
        "ARTHIT": -1.3338686753180085,
        "TAN TAWAN": -21.425845411682015,
        "PHU HORM": 10.735387078559807,
        "SIRIKIT": -3.058330915703762,
        "LANTA": 2.2544360709771225,
        "NAM PHONG": -1.6302528250975197,
        "JASMIN": 16.499300235178676,
        "YOONG THONG": 5.568844775893213,
        "JDA": -23.548632565751547,
        "OTHERS": 64.77882531253803,
        "TOTAL PRODUCTION": -9.749199832830447,
        "YADANA": -2.1754896790087668,
        "YETAKUN": -47.362484096132675,
        "ZAWTIKA": 7.15829909267644,
        "LNG": 13.412525066780795,
        "TOTAL IMPORT": 3.413558521618691,
        "GRAND TOTAL": -6.0925268315572625
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/productionAndImport/productionAndImport/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of natural gas production and import classified by sources as yearly (Unit: MMSCFD) (1986-present)

ปริมาณการผลิตและการนำเข้าก๊าซธรรมชาติรายแหล่ง รายปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Natural Gas (Consumption / Sales)

Distribution of NGL (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2017-12-01T14:14:15.917Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 60.818111,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 998.096304,
        "MLITRE_TOTAL": 1058.914415,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 382527.90112585097,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 6277730.071073635,
        "BBL_TOTAL": 6660257.972199486,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1048.0216469201396,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17199.26046869489,
        "BPD_TOTAL": 18247.282115615028
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 32.492685,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 961.570688,
        "MLITRE_TOTAL": 994.063373,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 204369.36285300198,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 6047994.766966459,
        "BBL_TOTAL": 6252364.129819461,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 559.9160626109643,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16569.848676620437,
        "BPD_TOTAL": 17129.7647392314
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 56.897562,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 979.814148,
        "MLITRE_TOTAL": 1036.71171,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 357868.80935907195,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 6162740.725831798,
        "BBL_TOTAL": 6520609.53519087,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 980.4624913947176,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16884.22116666246,
        "BPD_TOTAL": 17864.68365805718
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 64.411098,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 867.172571,
        "MLITRE_TOTAL": 931.583669,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 405126.72495124995,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 5454258.576011053,
        "BBL_TOTAL": 5859385.300962303,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1106.9036200853825,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14902.345836095774,
        "BPD_TOTAL": 16009.249456181155
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 28.1582,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 925.882421,
        "MLITRE_TOTAL": 954.040621,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 177106.73627271698,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 5823526.140008786,
        "BBL_TOTAL": 6000632.876281503,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 485.22393499374516,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15954.866137010373,
        "BPD_TOTAL": 16440.090072004117
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 205.230992,
        "MLITRE_TOTAL": 205.230992,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 1290842.141015153,
        "BBL_TOTAL": 1290842.141015153,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14342.690455723921,
        "BPD_TOTAL": 14342.690455723921
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.688258,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 253.695287,
        "MLITRE_TOTAL": 259.383545,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 35777.457701741,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 1595668.199257811,
        "BBL_TOTAL": 1631445.656959552,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 397.5273077971222,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17729.646658420123,
        "BPD_TOTAL": 18127.173966217244
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 7.353178,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 84.527155,
        "MLITRE_TOTAL": 91.880333,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 46249.311277438,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 531650.764199005,
        "BBL_TOTAL": 577900.0754764429,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1491.913267014129,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17150.024651580807,
        "BPD_TOTAL": 18641.937918594933
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.677548,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 60.325765,
        "MLITRE_TOTAL": 64.003313,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23130.68746462,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 379431.19064092,
        "BBL_TOTAL": 402561.87810554,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 797.6099125731035,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13083.834160031725,
        "BPD_TOTAL": 13881.444072604827
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 9.261342,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 82.723682,
        "MLITRE_TOTAL": 91.985024,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 58251.097553305,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 520307.453298947,
        "BBL_TOTAL": 578558.550852252,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1879.0676630098387,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16784.111396740227,
        "BPD_TOTAL": 18663.179059750066
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.51903,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 64.996021,
        "MLITRE_TOTAL": 70.515051,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34713.063714699,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 408805.71734071197,
        "BBL_TOTAL": 443518.781055411,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1157.1021238233,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13626.857244690398,
        "BPD_TOTAL": 14783.959368513699
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.519837,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 55.655402,
        "MLITRE_TOTAL": 61.175239,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34718.139505629,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 350055.990942826,
        "BBL_TOTAL": 384774.13044845505,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1119.9399840525484,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 11292.128740091162,
        "BPD_TOTAL": 12412.068724143712
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.676071,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 60.83662,
        "MLITRE_TOTAL": 64.512691,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23121.397572174,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 382644.317252656,
        "BBL_TOTAL": 405765.71482482995,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 770.7132524058,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 12754.810575088533,
        "BPD_TOTAL": 13525.523827494331
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.518367,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 67.692378,
        "MLITRE_TOTAL": 73.210745,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34708.893641109,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 425765.004088306,
        "BBL_TOTAL": 460473.897729415,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1119.641730358355,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13734.354970590515,
        "BPD_TOTAL": 14853.99670094887
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.513144,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 78.058751,
        "MLITRE_TOTAL": 83.571895,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34676.042518397,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 490966.419271651,
        "BBL_TOTAL": 525642.461790048,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1118.5820167224838,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15837.626428117776,
        "BPD_TOTAL": 16956.20844484026
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.682959,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 78.239856,
        "MLITRE_TOTAL": 81.922815,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23164.721051638,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 492105.51607019093,
        "BBL_TOTAL": 515270.23712182895,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 772.1573683879334,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16403.5172023397,
        "BPD_TOTAL": 17175.67457072763
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.522605,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 83.672322,
        "MLITRE_TOTAL": 89.194927,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34735.549405622,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 526274.117869047,
        "BBL_TOTAL": 561009.6672746689,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1120.501593729742,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16976.584447388614,
        "BPD_TOTAL": 18097.086041118353
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 5.488623,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 71.385712,
        "MLITRE_TOTAL": 76.874335,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 34521.812692622,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 448994.980816402,
        "BBL_TOTAL": 483516.793509024,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1150.7270897540666,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14966.499360546733,
        "BPD_TOTAL": 16117.226450300801
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.678394,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 79.058907,
        "MLITRE_TOTAL": 82.737301,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23136.008553997,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 497257.10422038997,
        "BBL_TOTAL": 520393.11277438694,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 746.3228565805483,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16040.551749044838,
        "BPD_TOTAL": 16786.874605625384
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 64.411098,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 867.172571,
        "MLITRE_TOTAL": 931.583669,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 405126.72495124995,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 5454258.576011053,
        "BBL_TOTAL": 5859385.300962303,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1106.9036200853825,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14902.345836095774,
        "BPD_TOTAL": 16009.249456181155
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.791167,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 85.742426,
        "MLITRE_TOTAL": 89.533593,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23845.317315554,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 539294.458770991,
        "BBL_TOTAL": 563139.776086545,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 769.2037843727096,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17396.595444225513,
        "BPD_TOTAL": 18165.799228598225
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 1.897091,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 80.112704,
        "MLITRE_TOTAL": 82.009795,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 11932.140386187,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 503885.175168248,
        "BBL_TOTAL": 515817.315554435,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 426.14787093525,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17995.899113151714,
        "BPD_TOTAL": 18422.046984086966
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 87.840157,
        "MLITRE_TOTAL": 87.840157,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 552488.565318572,
        "BBL_TOTAL": 552488.565318572,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17822.211784470062,
        "BPD_TOTAL": 17822.211784470062
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 1.836519,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 75.332882,
        "MLITRE_TOTAL": 77.169401,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 11551.160450342,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 473821.51078684104,
        "BBL_TOTAL": 485372.67123718304,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 385.03868167806667,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15794.050359561368,
        "BPD_TOTAL": 16179.089041239435
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 1.839896,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 88.362906,
        "MLITRE_TOTAL": 90.202802,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 11572.400779923,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 555776.50166677,
        "BBL_TOTAL": 567348.9024466929,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 373.3032509652581,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17928.27424731516,
        "BPD_TOTAL": 18301.577498280418
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.678471,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 78.351262,
        "MLITRE_TOTAL": 82.029733,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23136.492861186,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 492806.226806715,
        "BBL_TOTAL": 515942.719667901,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 771.2164287062001,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 16426.8742268905,
        "BPD_TOTAL": 17198.0906555967
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 67.780198,
        "MLITRE_TOTAL": 67.780198,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 426317.365872066,
        "BBL_TOTAL": 426317.365872066,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13752.17309264729,
        "BPD_TOTAL": 13752.17309264729
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.727817,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 76.728606,
        "MLITRE_TOTAL": 80.456423,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23446.864582678,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 482600.201270518,
        "BBL_TOTAL": 506047.065853196,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 756.3504704089678,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15567.748428081226,
        "BPD_TOTAL": 16324.098898490194
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.802778,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 71.093,
        "MLITRE_TOTAL": 74.895778,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 23918.347065852002,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 447153.90905088204,
        "BBL_TOTAL": 471072.25611673406,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 797.2782355284,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14905.130301696068,
        "BPD_TOTAL": 15702.408537224468
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 3.904702,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 67.657182,
        "MLITRE_TOTAL": 71.561884,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 24559.418831373,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 425543.63167494605,
        "BBL_TOTAL": 450103.05050631904,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 792.2393171410646,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13727.21392499826,
        "BPD_TOTAL": 14519.453242139323
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 1.841121,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 73.374187,
        "MLITRE_TOTAL": 75.215308,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 11580.105667023,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 461501.89949053293,
        "BBL_TOTAL": 473082.0051575559,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 386.0035222341,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15383.396649684431,
        "BPD_TOTAL": 15769.40017191853
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 1.838638,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 73.506911,
        "MLITRE_TOTAL": 75.345549,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 11564.488332599,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 462336.694131704,
        "BBL_TOTAL": 473901.182464303,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 373.048010729,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14914.086907474322,
        "BPD_TOTAL": 15287.134918203323
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 28.1582,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 925.882421,
        "MLITRE_TOTAL": 954.040621,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 177106.73627271698,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 5823526.140008786,
        "BBL_TOTAL": 6000632.876281503,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 485.22393499374516,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15954.866137010373,
        "BPD_TOTAL": 16440.090072004117
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 65.509081,
        "MLITRE_TOTAL": 65.509081,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 412032.712749228,
        "BBL_TOTAL": 412032.712749228,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 13291.377830620258,
        "BPD_TOTAL": 13291.377830620258
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 64.273578,
        "MLITRE_TOTAL": 64.273578,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 404261.764890871,
        "BBL_TOTAL": 404261.764890871,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14437.920174673965,
        "BPD_TOTAL": 14437.920174673965
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 75.448333,
        "MLITRE_TOTAL": 75.448333,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 474547.66337505396,
        "BBL_TOTAL": 474547.66337505396,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15307.989141130773,
        "BPD_TOTAL": 15307.989141130773
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": null,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 205.230992,
        "MLITRE_TOTAL": 205.230992,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 1290842.141015153,
        "BBL_TOTAL": 1290842.141015153,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14342.690455723921,
        "BPD_TOTAL": 14342.690455723921
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": -38.92793915660098,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": -1.3811037197210294,
        "MLITRE_TOTAL": -4.74461109958524,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": -46.57399832757055,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": -3.6595282292519156,
        "MLITRE_TOTAL": -6.124294945970682,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": 75.1088344961335,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 1.897256252470128,
        "MLITRE_TOTAL": 4.290303632382207,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": 13.205374247845619,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": -11.496218668604088,
        "MLITRE_TOTAL": -10.140527977638069,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": -56.283620564890846,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 6.770261417781868,
        "MLITRE_TOTAL": 2.4106210475014245,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    },
    {
        "section": "3.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "MLITRE_UNIT": "GROWTH RATE (%)",
        "MLITRE_EXPORT": -100,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": -19.103348577382135,
        "MLITRE_TOTAL": -20.87740492559003,
        "BBL_UNIT": "GROWTH RATE (%)",
        "BBL_EXPORT": null,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": null,
        "BBL_TOTAL": null,
        "BPD_UNIT": "GROWTH RATE (%)",
        "BPD_EXPORT": null,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": null,
        "BPD_TOTAL": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/current

Query Parameters

Parameter Type Default Description
date String

Quantity of NGL distribution classified by sector in current year and 5 years ago (Unit: Million Litres, Barrels and Barrels/Day)

ปริมาณการกระจายของ NGL แยกตามรายสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ล้านลิตร บาร์เรล และบาร์เรล/วัน)

Distribution of NGL (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 7.353178,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 84.527155,
        "MLITRE_TOTAL": 91.880333,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 46249.311277438,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 531650.764199005,
        "BBL_TOTAL": 577900.0754764429,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1491.913267014129,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 17150.024651580807,
        "BPD_TOTAL": 18641.937918594933,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_EXPORT": 299.63705811635447,
        "GROWTH_REFINERY": null,
        "GROWTH_SOLVENT": 30.125331399332506,
        "GROWTH_TOTAL": 37.54905949824087
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of NGL distribution classified by sector as monthly (Unit: Million Litres, Barrels and Barrels/Day) (1988-present)

ปริมาณการกระจายของ NGL แยกตามรายสาขา รายเดือน (หน่วย: ล้านลิตร บาร์เรล และบาร์เรล/วัน) (2531-ปัจจุบัน)

Distribution of NGL (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 20.292068,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 227.576602,
        "MLITRE_TOTAL": 247.86867,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 127631.09629536301,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 1431389.4081388721,
        "BBL_TOTAL": 1559020.5044342352,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1402.539519729264,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 15729.553935592001,
        "BPD_TOTAL": 17132.093455321265,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_EXPORT": 83.98044511658313,
        "GROWTH_REFINERY": null,
        "GROWTH_SOLVENT": 0.9426515777253147,
        "GROWTH_TOTAL": 4.815535360197096
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of NGL distribution classified by sector as quarterly (Unit: Million Litres, Barrels and Barrels/Day) (1988-present)

ปริมาณการกระจายของ NGL แยกตามรายสาขา รายไตรมาส (หน่วย: ล้านลิตร บาร์เรล และบาร์เรล/วัน) (2531-ปัจจุบัน)

Distribution of NGL (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "MLITRE_UNIT": "MILLION LITRES",
        "MLITRE_EXPORT": 64.411098,
        "MLITRE_REFINERY": null,
        "MLITRE_SOLVENT": 867.172571,
        "MLITRE_TOTAL": 931.583669,
        "BBL_UNIT": "BARREL",
        "BBL_EXPORT": 405126.72495125,
        "BBL_REFINERY": null,
        "BBL_SOLVENT": 5454258.576011052,
        "BBL_TOTAL": 5859385.300962303,
        "BPD_UNIT": "BBL/D",
        "BPD_EXPORT": 1106.9036200853825,
        "BPD_REFINERY": null,
        "BPD_SOLVENT": 14902.345836095772,
        "BPD_TOTAL": 16009.249456181155,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_EXPORT": 13.205374247845619,
        "GROWTH_REFINERY": null,
        "GROWTH_SOLVENT": -11.496218668604088,
        "GROWTH_TOTAL": -10.140527977638069
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/distributionOfNGL/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of NGL distribution classified by sector as yearly (Unit: Million Litres, Barrels and Barrels/Day) (1988-present)

ปริมาณการกระจายของ NGL แยกตามรายสาขา รายปี (หน่วย: ล้านลิตร บาร์เรล และบาร์เรล/วัน) (2531-ปัจจุบัน)

Consumption of Natural Gas by sector (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2017-12-01T14:14:15.917Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 757.830301369863,
        "ELECTRICITY-IPP": 934.1527506849316,
        "ELECTRICITY-SPP": 1027.3246657534246,
        "ELECTRICITY-TOTAL": 2719.3077178082194,
        "INDUSTRY": 724.2015424657535,
        "GSP": 995.4994684931507,
        "NGV": 242.65476164383566,
        "GRAND TOTAL": 4681.66349041096
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 736.3233753424657,
        "ELECTRICITY-IPP": 738.934616438356,
        "ELECTRICITY-SPP": 1205.551493150685,
        "ELECTRICITY-TOTAL": 2680.8094849315066,
        "INDUSTRY": 761.8225123287672,
        "GSP": 1014.1426328767125,
        "NGV": 219.52021369863013,
        "GRAND TOTAL": 4676.294843835616
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 754.1456575342467,
        "ELECTRICITY-IPP": 749.8555315068493,
        "ELECTRICITY-SPP": 1289.9180602739725,
        "ELECTRICITY-TOTAL": 2793.9192493150686,
        "INDUSTRY": 758.8492821917808,
        "GSP": 1015.2302191780823,
        "NGV": 193.5922191780822,
        "GRAND TOTAL": 4761.590969863014
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 786.9238879781421,
        "ELECTRICITY-IPP": 546.1197486338797,
        "ELECTRICITY-SPP": 1265.3772486338798,
        "ELECTRICITY-TOTAL": 2598.420885245902,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.21493715847,
        "NGV": 138.82318852459014,
        "GRAND TOTAL": 4368.248732240438
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 701.3770958904109,
        "ELECTRICITY-IPP": 586.3874794520549,
        "ELECTRICITY-SPP": 1315.525493150685,
        "ELECTRICITY-TOTAL": 2603.2900684931506,
        "INDUSTRY": 769.8667150684932,
        "GSP": 909.0596328767124,
        "NGV": 112.38950410958903,
        "GRAND TOTAL": 4394.605920547945
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY-EGAT": 780.0141111111111,
        "ELECTRICITY-IPP": 580.4501555555556,
        "ELECTRICITY-SPP": 1275.8100666666667,
        "ELECTRICITY-TOTAL": 2636.2743333333333,
        "INDUSTRY": 788.3526777777779,
        "GSP": 845.8412666666666,
        "NGV": 119.67595555555555,
        "GRAND TOTAL": 4390.144233333333
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY-EGAT": 806.6687555555555,
        "ELECTRICITY-IPP": 597.8145333333334,
        "ELECTRICITY-SPP": 1308.2020888888887,
        "ELECTRICITY-TOTAL": 2712.685377777778,
        "INDUSTRY": 758.2870666666668,
        "GSP": 957.5811888888888,
        "NGV": 117.91244444444443,
        "GRAND TOTAL": 4546.466077777777
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY-EGAT": 700.5362258064516,
        "ELECTRICITY-IPP": 623.7361290322581,
        "ELECTRICITY-SPP": 1242.4009999999998,
        "ELECTRICITY-TOTAL": 2566.6733548387097,
        "INDUSTRY": 772.2928709677419,
        "GSP": 905.3034516129032,
        "NGV": 176.54848387096774,
        "GRAND TOTAL": 4420.818161290323
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY-EGAT": 893.1353448275863,
        "ELECTRICITY-IPP": 560.4258620689656,
        "ELECTRICITY-SPP": 1228.317551724138,
        "ELECTRICITY-TOTAL": 2681.8787586206895,
        "INDUSTRY": 745.5841379310345,
        "GSP": 940.202448275862,
        "NGV": 177.91658620689657,
        "GRAND TOTAL": 4545.581931034482
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY-EGAT": 941.4589032258065,
        "ELECTRICITY-IPP": 684.3080967741936,
        "ELECTRICITY-SPP": 1265.6362903225806,
        "ELECTRICITY-TOTAL": 2891.4032903225807,
        "INDUSTRY": 769.0190967741936,
        "GSP": 1003.2842580645162,
        "NGV": 158.37319354838712,
        "GRAND TOTAL": 4822.0798387096775
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY-EGAT": 799.5182000000001,
        "ELECTRICITY-IPP": 457.1345,
        "ELECTRICITY-SPP": 1285.8435666666667,
        "ELECTRICITY-TOTAL": 2542.496266666667,
        "INDUSTRY": 711.5440666666667,
        "GSP": 888.3480666666667,
        "NGV": 106.95070000000001,
        "GRAND TOTAL": 4249.339099999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY-EGAT": 824.3306129032259,
        "ELECTRICITY-IPP": 528.4397096774194,
        "ELECTRICITY-SPP": 1250.9448387096775,
        "ELECTRICITY-TOTAL": 2603.715161290323,
        "INDUSTRY": 673.6833870967743,
        "GSP": 788.5875483870967,
        "NGV": 117.37274193548386,
        "GRAND TOTAL": 4183.358838709678
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY-EGAT": 888.9704,
        "ELECTRICITY-IPP": 499.06193333333334,
        "ELECTRICITY-SPP": 1282.3733666666667,
        "ELECTRICITY-TOTAL": 2670.4057000000003,
        "INDUSTRY": 659.8642333333333,
        "GSP": 866.9300999999999,
        "NGV": 131.59,
        "GRAND TOTAL": 4328.790033333333
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY-EGAT": 846.7531290322581,
        "ELECTRICITY-IPP": 722.8724193548386,
        "ELECTRICITY-SPP": 1294.4534516129033,
        "ELECTRICITY-TOTAL": 2864.0789999999997,
        "INDUSTRY": 712.641129032258,
        "GSP": 871.3502580645161,
        "NGV": 91.47816129032257,
        "GRAND TOTAL": 4539.548548387097
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY-EGAT": 678.3856451612903,
        "ELECTRICITY-IPP": 517.1659677419354,
        "ELECTRICITY-SPP": 1291.7830967741934,
        "ELECTRICITY-TOTAL": 2487.3347096774196,
        "INDUSTRY": 683.2146451612904,
        "GSP": 930.8240645161289,
        "NGV": 144.1266129032258,
        "GRAND TOTAL": 4245.500032258065
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY-EGAT": 762.8827333333334,
        "ELECTRICITY-IPP": 524.6909333333333,
        "ELECTRICITY-SPP": 1312.691,
        "ELECTRICITY-TOTAL": 2600.264666666667,
        "INDUSTRY": 714.1129666666667,
        "GSP": 960.3345333333333,
        "NGV": 143.4381,
        "GRAND TOTAL": 4418.1502666666665
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY-EGAT": 686.892,
        "ELECTRICITY-IPP": 430.2220967741936,
        "ELECTRICITY-SPP": 1295.1399999999999,
        "ELECTRICITY-TOTAL": 2412.254096774194,
        "INDUSTRY": 741.016806451613,
        "GSP": 944.8988064516129,
        "NGV": 136.57309677419354,
        "GRAND TOTAL": 4234.7428064516125
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY-EGAT": 739.5224333333333,
        "ELECTRICITY-IPP": 574.4316666666667,
        "ELECTRICITY-SPP": 1216.4497999999999,
        "ELECTRICITY-TOTAL": 2530.4039,
        "INDUSTRY": 765.9095666666667,
        "GSP": 898.3186333333334,
        "NGV": 144.6171666666667,
        "GRAND TOTAL": 4339.249266666667
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY-EGAT": 688.946870967742,
        "ELECTRICITY-IPP": 427.7041935483871,
        "ELECTRICITY-SPP": 1217.2584838709677,
        "ELECTRICITY-TOTAL": 2333.9095483870965,
        "INDUSTRY": 712.9763548387097,
        "GSP": 913.4566451612903,
        "NGV": 138.48987096774192,
        "GRAND TOTAL": 4098.83241935484
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 786.9238879781421,
        "ELECTRICITY-IPP": 546.1197486338797,
        "ELECTRICITY-SPP": 1265.3772486338798,
        "ELECTRICITY-TOTAL": 2598.4208852459014,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.21493715847,
        "NGV": 138.82318852459014,
        "GRAND TOTAL": 4368.248732240438
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY-EGAT": 736.3956129032258,
        "ELECTRICITY-IPP": 379.5262903225807,
        "ELECTRICITY-SPP": 1252.0007741935483,
        "ELECTRICITY-TOTAL": 2367.922677419355,
        "INDUSTRY": 710.2915483870968,
        "GSP": 951.3900967741936,
        "NGV": 117.57335483870968,
        "GRAND TOTAL": 4147.177677419355
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY-EGAT": 799.6058928571429,
        "ELECTRICITY-IPP": 591.4913214285715,
        "ELECTRICITY-SPP": 1292.4042857142856,
        "ELECTRICITY-TOTAL": 2683.5015,
        "INDUSTRY": 812.6631785714286,
        "GSP": 955.0619642857143,
        "NGV": 86.27921428571429,
        "GRAND TOTAL": 4537.505857142857
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY-EGAT": 883.3212580645161,
        "ELECTRICITY-IPP": 821.8140645161291,
        "ELECTRICITY-SPP": 1378.6723870967742,
        "ELECTRICITY-TOTAL": 3083.8077096774196,
        "INDUSTRY": 757.1686774193548,
        "GSP": 966.0477096774193,
        "NGV": 146.82348387096775,
        "GRAND TOTAL": 4953.8475806451615
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY-EGAT": 827.2991,
        "ELECTRICITY-IPP": 665.3365666666667,
        "ELECTRICITY-SPP": 1256.8825666666667,
        "ELECTRICITY-TOTAL": 2749.5182333333332,
        "INDUSTRY": 783.1105666666666,
        "GSP": 908.7729999999999,
        "NGV": 120.90413333333332,
        "GRAND TOTAL": 4562.305933333333
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY-EGAT": 819.4436451612903,
        "ELECTRICITY-IPP": 859.8685161290322,
        "ELECTRICITY-SPP": 1346.0329677419354,
        "ELECTRICITY-TOTAL": 3025.345129032258,
        "INDUSTRY": 801.4221612903226,
        "GSP": 976.6470967741936,
        "NGV": 114.06793548387097,
        "GRAND TOTAL": 4917.482322580645
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY-EGAT": 743.2950000000001,
        "ELECTRICITY-IPP": 650.6044,
        "ELECTRICITY-SPP": 1348.1728666666668,
        "ELECTRICITY-TOTAL": 2742.072266666667,
        "INDUSTRY": 811.8010333333334,
        "GSP": 989.4061333333334,
        "NGV": 119.5789,
        "GRAND TOTAL": 4662.858333333334
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY-EGAT": 657.0576774193548,
        "ELECTRICITY-IPP": 491.770870967742,
        "ELECTRICITY-SPP": 1297.4224838709679,
        "ELECTRICITY-TOTAL": 2446.2510322580647,
        "INDUSTRY": 786.8002258064516,
        "GSP": 724.8874838709677,
        "NGV": 100.51825806451612,
        "GRAND TOTAL": 4058.457
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY-EGAT": 601.1940967741936,
        "ELECTRICITY-IPP": 500.9471935483871,
        "ELECTRICITY-SPP": 1334.9158387096775,
        "ELECTRICITY-TOTAL": 2437.057129032258,
        "INDUSTRY": 771.241935483871,
        "GSP": 937.8570967741936,
        "NGV": 95.54016129032257,
        "GRAND TOTAL": 4241.696322580646
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY-EGAT": 624.8858666666667,
        "ELECTRICITY-IPP": 534.7593333333333,
        "ELECTRICITY-SPP": 1384.3997333333332,
        "ELECTRICITY-TOTAL": 2544.0449333333327,
        "INDUSTRY": 730.0501,
        "GSP": 908.0011666666667,
        "NGV": 101.51793333333333,
        "GRAND TOTAL": 4283.6141333333335
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY-EGAT": 573.8684516129032,
        "ELECTRICITY-IPP": 542.8495483870968,
        "ELECTRICITY-SPP": 1342.6994193548387,
        "ELECTRICITY-TOTAL": 2459.417419354839,
        "INDUSTRY": 749.769870967742,
        "GSP": 830.891129032258,
        "NGV": 107.80622580645161,
        "GRAND TOTAL": 4147.88464516129
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY-EGAT": 636.7573666666667,
        "ELECTRICITY-IPP": 564.8673333333334,
        "ELECTRICITY-SPP": 1297.6383333333333,
        "ELECTRICITY-TOTAL": 2499.2630333333336,
        "INDUSTRY": 774.8877333333334,
        "GSP": 896.0838,
        "NGV": 116.65163333333334,
        "GRAND TOTAL": 4286.8862
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY-EGAT": 523.7694193548386,
        "ELECTRICITY-IPP": 435.5668709677419,
        "ELECTRICITY-SPP": 1253.6329032258066,
        "ELECTRICITY-TOTAL": 2212.969193548387,
        "INDUSTRY": 753.9926451612903,
        "GSP": 870.2506129032258,
        "NGV": 119.17938709677419,
        "GRAND TOTAL": 3956.3918387096774
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 701.3770958904109,
        "ELECTRICITY-IPP": 586.3874794520549,
        "ELECTRICITY-SPP": 1315.525493150685,
        "ELECTRICITY-TOTAL": 2603.290068493151,
        "INDUSTRY": 769.8667150684932,
        "GSP": 909.0596328767124,
        "NGV": 112.38950410958903,
        "GRAND TOTAL": 4394.605920547946
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY-EGAT": 620.2598387096774,
        "ELECTRICITY-IPP": 458.0767741935484,
        "ELECTRICITY-SPP": 1249.7352258064516,
        "ELECTRICITY-TOTAL": 2328.0718387096767,
        "INDUSTRY": 762.8352903225807,
        "GSP": 836.7992903225806,
        "NGV": 114.34625806451612,
        "GRAND TOTAL": 4042.052677419355
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY-EGAT": 770.0648571428571,
        "ELECTRICITY-IPP": 605.9057857142858,
        "ELECTRICITY-SPP": 1250.5036428571427,
        "ELECTRICITY-TOTAL": 2626.4742857142855,
        "INDUSTRY": 772.6240357142858,
        "GSP": 844.89175,
        "NGV": 121.81925,
        "GRAND TOTAL": 4365.809321428572
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY-EGAT": 948.7548064516129,
        "ELECTRICITY-IPP": 679.8313548387097,
        "ELECTRICITY-SPP": 1324.7423225806454,
        "ELECTRICITY-TOTAL": 2953.328483870968,
        "INDUSTRY": 828.0765806451612,
        "GSP": 855.7408709677419,
        "NGV": 123.06977419354838,
        "GRAND TOTAL": 4760.21570967742
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 780.0141111111111,
        "ELECTRICITY-IPP": 580.4501555555556,
        "ELECTRICITY-SPP": 1275.8100666666667,
        "ELECTRICITY-TOTAL": 2636.2743333333333,
        "INDUSTRY": 788.3526777777777,
        "GSP": 845.8412666666666,
        "NGV": 119.67595555555555,
        "GRAND TOTAL": 4390.144233333333
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 16.187201470632402,
        "ELECTRICITY-IPP": 19.953436478257665,
        "ELECTRICITY-SPP": 21.943581973749364,
        "ELECTRICITY-TOTAL": 58.084219922639434,
        "INDUSTRY": 15.468893566337519,
        "GSP": 21.26379801820752,
        "NGV": 5.183088492815515,
        "GRAND TOTAL": 100
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 15.745871463025937,
        "ELECTRICITY-IPP": 15.801711421435154,
        "ELECTRICITY-SPP": 25.780057361863452,
        "ELECTRICITY-TOTAL": 57.32764024632454,
        "INDUSTRY": 16.291156519632555,
        "GSP": 21.686883884440586,
        "NGV": 4.694319349602302,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 15.838102481027319,
        "ELECTRICITY-IPP": 15.748003897286079,
        "ELECTRICITY-SPP": 27.09006440154355,
        "ELECTRICITY-TOTAL": 58.67617077985695,
        "INDUSTRY": 15.936885108248017,
        "GSP": 21.32123959415375,
        "NGV": 4.065704517741297,
        "GRAND TOTAL": 100.00000000000003
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 18.014630947412552,
        "ELECTRICITY-IPP": 12.50202958002759,
        "ELECTRICITY-SPP": 28.967609817971123,
        "ELECTRICITY-TOTAL": 59.484270345411275,
        "INDUSTRY": 16.523549036578693,
        "GSP": 20.814175036505798,
        "NGV": 3.1780055815042596,
        "GRAND TOTAL": 100.00000000000003
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 15.959954284204828,
        "ELECTRICITY-IPP": 13.343346139645226,
        "ELECTRICITY-SPP": 29.93500479757824,
        "ELECTRICITY-TOTAL": 59.23830522142829,
        "INDUSTRY": 17.518447136950602,
        "GSP": 20.68580549227871,
        "NGV": 2.5574421493423833,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "3.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY-EGAT": 17.767391448978994,
        "ELECTRICITY-IPP": 13.22166481794229,
        "ELECTRICITY-SPP": 29.060777934805436,
        "ELECTRICITY-TOTAL": 60.04983420172672,
        "INDUSTRY": 17.95732977955488,
        "GSP": 19.266821810645595,
        "NGV": 2.726014208072804,
        "GRAND TOTAL": 100
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": -22.72278138967474,
        "ELECTRICITY-IPP": -3.148029339232293,
        "ELECTRICITY-SPP": 20.0717557889403,
        "ELECTRICITY-TOTAL": -2.9086657594036973,
        "INDUSTRY": 4.0417529084145025,
        "GSP": 4.675498794577923,
        "NGV": -12.94503452589054,
        "GRAND TOTAL": -0.9509737195129809
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": -2.8379606870457756,
        "ELECTRICITY-IPP": -20.897881433570618,
        "ELECTRICITY-SPP": 17.348637031561157,
        "ELECTRICITY-TOTAL": -1.41573653561144,
        "INDUSTRY": 5.194820454941614,
        "GSP": 1.8727447852665453,
        "NGV": -9.53393528669427,
        "GRAND TOTAL": -0.11467390995399102
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 2.4204422660752445,
        "ELECTRICITY-IPP": 1.4779271163572911,
        "ELECTRICITY-SPP": 6.998172006970606,
        "ELECTRICITY-TOTAL": 4.219239189481291,
        "INDUSTRY": -0.39027858705534973,
        "GSP": 0.10724194665643563,
        "NGV": -11.811210495696473,
        "GRAND TOTAL": 1.824010864923027
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": 4.632286343143661,
        "ELECTRICITY-IPP": -26.97047042877143,
        "ELECTRICITY-SPP": -1.6337490966719226,
        "ELECTRICITY-TOTAL": -6.74247843010879,
        "INDUSTRY": -4.623059626964801,
        "GSP": -10.197123788887295,
        "NGV": -28.094462360934934,
        "GRAND TOTAL": -8.009390879865594
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY-EGAT": -11.114559398563998,
        "ELECTRICITY-IPP": 7.080055121920593,
        "ELECTRICITY-SPP": 3.6790540227087374,
        "ELECTRICITY-TOTAL": -0.08634594804408072,
        "INDUSTRY": 6.369380365150155,
        "GSP": -0.29025851453118673,
        "NGV": -19.262458849304455,
        "GRAND TOTAL": 0.32850849815622885
    },
    {
        "section": "4.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY-EGAT": -3.3042862092863876,
        "ELECTRICITY-IPP": -2.9046429635887843,
        "ELECTRICITY-SPP": -2.4760717397825016,
        "ELECTRICITY-TOTAL": -2.816804524048423,
        "INDUSTRY": 3.9649378754771183,
        "GSP": -11.668976324804124,
        "NGV": 1.4956106791103037,
        "GRAND TOTAL": -3.438315424996028
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/current

Query Parameters

Parameter Type Default Description
date String

Quantity of natural gas consumption classified by sector in current year and 5 years ago (Unit: MMSCFD)

ปริมาณการใช้ก๊าซธรรมชาติรายสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน)

Consumption of Natural Gas by sector (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/month/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "unit": "MMSCFD",
        "ELECTRICITY-EGAT": 700.5362258064516,
        "ELECTRICITY-IPP": 623.7361290322581,
        "ELECTRICITY-SPP": 1242.4009999999998,
        "ELECTRICITY-TOTAL": 2566.6733548387097,
        "INDUSTRY": 772.2928709677419,
        "GSP": 905.3034516129032,
        "NGV": 176.54848387096774,
        "GRAND TOTAL": 4420.818161290322,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY-EGAT": 15.846302658193553,
        "SHARE_ELECTRICITY-IPP": 14.109065477830143,
        "SHARE_ELECTRICITY-SPP": 28.103417844206813,
        "SHARE_ELECTRICITY-TOTAL": 58.05878598023051,
        "SHARE_INDUSTRY": 17.469455715915032,
        "SHARE_GSP": 20.478187941316925,
        "SHARE_NGV": 3.99357036253755,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY-EGAT": -3.574963564139372,
        "GROWTH_ELECTRICITY-IPP": 6.118126995427374,
        "GROWTH_ELECTRICITY-SPP": 0.5282673402860459,
        "GROWTH_ELECTRICITY-TOTAL": 0.6476908694891756,
        "GROWTH_INDUSTRY": -0.2654510764513821,
        "GROWTH_GSP": 2.8134930788003594,
        "GROWTH_NGV": -10.959043622886304,
        "GROWTH_GRAND TOTAL": 0.39756215775396503
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of natural gas consumption classified by sector as monthly (Unit: MMSCFD) (1986-present)

ปริมาณการใช้ก๊าซธรรมชาติรายสาขา รายเดือน (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Consumption of Natural Gas by sector (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "unit": "MMSCFD",
        "ELECTRICITY-EGAT": 843.9865274725273,
        "ELECTRICITY-IPP": 624.1947362637362,
        "ELECTRICITY-SPP": 1245.8281868131867,
        "ELECTRICITY-TOTAL": 2714.0094505494512,
        "INDUSTRY": 762.666054945055,
        "GSP": 949.8031868131868,
        "NGV": 170.79289010989012,
        "GRAND TOTAL": 4597.271582417582,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY-EGAT": 18.35842221504559,
        "SHARE_ELECTRICITY-IPP": 13.57750407113188,
        "SHARE_ELECTRICITY-SPP": 27.09929497265069,
        "SHARE_ELECTRICITY-TOTAL": 59.03522125882819,
        "SHARE_INDUSTRY": 16.58953666913864,
        "SHARE_GSP": 20.660149607992285,
        "SHARE_NGV": 3.7150924640409153,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY-EGAT": 8.781771167849378,
        "GROWTH_ELECTRICITY-IPP": -11.277035903065098,
        "GROWTH_ELECTRICITY-SPP": -0.8290002327016482,
        "GROWTH_ELECTRICITY-TOTAL": -0.7902471529546368,
        "GROWTH_INDUSTRY": -0.3901788066807659,
        "GROWTH_GSP": -0.30283420896041124,
        "GROWTH_NGV": -16.107915185084345,
        "GROWTH_GRAND TOTAL": -1.2943319025517535
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of natural gas consumption classified by sector as quarterly (Unit: MMSCFD) (1986-present)

ปริมาณการใช้ก๊าซธรรมชาติรายสาขา รายไตรมาส (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Consumption of Natural Gas by sector (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "unit": "MMSCFD",
        "ELECTRICITY-EGAT": 786.9238879781421,
        "ELECTRICITY-IPP": 546.1197486338798,
        "ELECTRICITY-SPP": 1265.3772486338796,
        "ELECTRICITY-TOTAL": 2598.4208852459014,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.21493715847,
        "NGV": 138.8231885245902,
        "GRAND TOTAL": 4368.248732240436,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY-EGAT": 18.014630947412556,
        "SHARE_ELECTRICITY-IPP": 12.502029580027596,
        "SHARE_ELECTRICITY-SPP": 28.967609817971123,
        "SHARE_ELECTRICITY-TOTAL": 59.484270345411275,
        "SHARE_INDUSTRY": 16.523549036578693,
        "SHARE_GSP": 20.8141750365058,
        "SHARE_NGV": 3.178005581504262,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY-EGAT": 4.632286343143661,
        "GROWTH_ELECTRICITY-IPP": -26.97047042877142,
        "GROWTH_ELECTRICITY-SPP": -1.6337490966719468,
        "GROWTH_ELECTRICITY-TOTAL": -6.74247843010878,
        "GROWTH_INDUSTRY": -4.623059626964801,
        "GROWTH_GSP": -10.197123788887282,
        "GROWTH_NGV": -28.09446236093491,
        "GROWTH_GRAND TOTAL": -8.00939087986566
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionOfNatural/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of natural gas consumption classified by sector as yearly (Unit: MMSCFD) (1986-present)

ปริมาณการใช้ก๊าซธรรมชาติรายสาขา รายปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Consumption Share of Natural Gas by sector (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2017-12-01T14:14:15.917Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2719.307717808219,
        "INDUSTRY": 724.2015424657533,
        "GSP": 995.4994684931507,
        "NGV": 242.6547616438356,
        "GRAND TOTAL": 4681.66349041096
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2680.809484931507,
        "INDUSTRY": 761.8225123287672,
        "GSP": 1014.1426328767122,
        "NGV": 219.52021369863013,
        "GRAND TOTAL": 4676.294843835616
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2793.9192493150686,
        "INDUSTRY": 758.8492821917808,
        "GSP": 1015.2302191780823,
        "NGV": 193.59221917808216,
        "GRAND TOTAL": 4761.590969863013
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2598.4208852459014,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.2149371584699,
        "NGV": 138.82318852459017,
        "GRAND TOTAL": 4368.248732240437
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2603.2900684931506,
        "INDUSTRY": 769.8667150684932,
        "GSP": 909.0596328767124,
        "NGV": 112.38950410958903,
        "GRAND TOTAL": 4394.605920547945
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY": 2636.2743333333333,
        "INDUSTRY": 788.3526777777779,
        "GSP": 845.8412666666666,
        "NGV": 119.67595555555555,
        "GRAND TOTAL": 4390.144233333333
    },
    {
        "section": "1.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY": 2712.685377777778,
        "INDUSTRY": 758.2870666666666,
        "GSP": 957.5811888888888,
        "NGV": 117.91244444444443,
        "GRAND TOTAL": 4546.466077777777
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 2566.6733548387097,
        "INDUSTRY": 772.2928709677419,
        "GSP": 905.3034516129032,
        "NGV": 176.54848387096774,
        "GRAND TOTAL": 4420.818161290321
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 2681.87875862069,
        "INDUSTRY": 745.5841379310345,
        "GSP": 940.202448275862,
        "NGV": 177.91658620689657,
        "GRAND TOTAL": 4545.581931034482
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 2891.4032903225807,
        "INDUSTRY": 769.0190967741936,
        "GSP": 1003.2842580645162,
        "NGV": 158.37319354838712,
        "GRAND TOTAL": 4822.0798387096775
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY": 2542.496266666667,
        "INDUSTRY": 711.5440666666667,
        "GSP": 888.3480666666667,
        "NGV": 106.95070000000001,
        "GRAND TOTAL": 4249.339099999999
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY": 2603.7151612903226,
        "INDUSTRY": 673.6833870967743,
        "GSP": 788.5875483870967,
        "NGV": 117.37274193548386,
        "GRAND TOTAL": 4183.358838709677
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY": 2670.4057000000003,
        "INDUSTRY": 659.8642333333333,
        "GSP": 866.9300999999999,
        "NGV": 131.59,
        "GRAND TOTAL": 4328.790033333333
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY": 2864.0789999999997,
        "INDUSTRY": 712.641129032258,
        "GSP": 871.3502580645161,
        "NGV": 91.47816129032257,
        "GRAND TOTAL": 4539.548548387097
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY": 2487.3347096774196,
        "INDUSTRY": 683.2146451612904,
        "GSP": 930.8240645161289,
        "NGV": 144.1266129032258,
        "GRAND TOTAL": 4245.5000322580645
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY": 2600.264666666667,
        "INDUSTRY": 714.1129666666667,
        "GSP": 960.3345333333333,
        "NGV": 143.4381,
        "GRAND TOTAL": 4418.1502666666665
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY": 2412.254096774194,
        "INDUSTRY": 741.016806451613,
        "GSP": 944.8988064516129,
        "NGV": 136.57309677419354,
        "GRAND TOTAL": 4234.742806451612
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY": 2530.4039,
        "INDUSTRY": 765.9095666666667,
        "GSP": 898.3186333333334,
        "NGV": 144.6171666666667,
        "GRAND TOTAL": 4339.249266666667
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY": 2333.9095483870965,
        "INDUSTRY": 712.9763548387097,
        "GSP": 913.4566451612903,
        "NGV": 138.48987096774192,
        "GRAND TOTAL": 4098.832419354839
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2598.4208852459014,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.2149371584699,
        "NGV": 138.82318852459017,
        "GRAND TOTAL": 4368.248732240437
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 2367.9226774193544,
        "INDUSTRY": 710.2915483870968,
        "GSP": 951.3900967741936,
        "NGV": 117.57335483870968,
        "GRAND TOTAL": 4147.177677419355
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 2683.5015,
        "INDUSTRY": 812.6631785714286,
        "GSP": 955.0619642857143,
        "NGV": 86.27921428571429,
        "GRAND TOTAL": 4537.505857142857
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 3083.807709677419,
        "INDUSTRY": 757.1686774193548,
        "GSP": 966.0477096774193,
        "NGV": 146.82348387096775,
        "GRAND TOTAL": 4953.847580645162
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY": 2749.5182333333337,
        "INDUSTRY": 783.1105666666666,
        "GSP": 908.7729999999999,
        "NGV": 120.90413333333332,
        "GRAND TOTAL": 4562.305933333333
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY": 3025.345129032258,
        "INDUSTRY": 801.4221612903226,
        "GSP": 976.6470967741936,
        "NGV": 114.06793548387097,
        "GRAND TOTAL": 4917.482322580645
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY": 2742.072266666667,
        "INDUSTRY": 811.8010333333334,
        "GSP": 989.4061333333334,
        "NGV": 119.5789,
        "GRAND TOTAL": 4662.858333333334
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY": 2446.2510322580647,
        "INDUSTRY": 786.8002258064516,
        "GSP": 724.8874838709677,
        "NGV": 100.51825806451612,
        "GRAND TOTAL": 4058.4570000000003
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY": 2437.057129032258,
        "INDUSTRY": 771.241935483871,
        "GSP": 937.8570967741936,
        "NGV": 95.54016129032257,
        "GRAND TOTAL": 4241.696322580646
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY": 2544.044933333333,
        "INDUSTRY": 730.0501,
        "GSP": 908.0011666666667,
        "NGV": 101.51793333333333,
        "GRAND TOTAL": 4283.6141333333335
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY": 2459.417419354839,
        "INDUSTRY": 749.769870967742,
        "GSP": 830.891129032258,
        "NGV": 107.80622580645161,
        "GRAND TOTAL": 4147.88464516129
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY": 2499.2630333333336,
        "INDUSTRY": 774.8877333333334,
        "GSP": 896.0838,
        "NGV": 116.65163333333334,
        "GRAND TOTAL": 4286.8862
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY": 2212.969193548387,
        "INDUSTRY": 753.9926451612903,
        "GSP": 870.2506129032258,
        "NGV": 119.17938709677419,
        "GRAND TOTAL": 3956.3918387096774
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2603.2900684931506,
        "INDUSTRY": 769.8667150684932,
        "GSP": 909.0596328767124,
        "NGV": 112.38950410958903,
        "GRAND TOTAL": 4394.605920547945
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 2328.0718387096776,
        "INDUSTRY": 762.8352903225807,
        "GSP": 836.7992903225806,
        "NGV": 114.34625806451612,
        "GRAND TOTAL": 4042.052677419355
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 2626.4742857142855,
        "INDUSTRY": 772.6240357142858,
        "GSP": 844.89175,
        "NGV": 121.81925,
        "GRAND TOTAL": 4365.809321428571
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 2953.328483870968,
        "INDUSTRY": 828.0765806451612,
        "GSP": 855.7408709677419,
        "NGV": 123.06977419354838,
        "GRAND TOTAL": 4760.21570967742
    },
    {
        "section": "2.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "MMSCFD",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 2636.2743333333333,
        "INDUSTRY": 788.3526777777777,
        "GSP": 845.8412666666668,
        "NGV": 119.67595555555555,
        "GRAND TOTAL": 4390.144233333333
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": -2.9086657594037306,
        "INDUSTRY": 4.0417529084144554,
        "GSP": 4.675498794577923,
        "NGV": -12.945034525890552,
        "GRAND TOTAL": -0.9509737195129809
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": -1.4157365356114167,
        "INDUSTRY": 5.194820454941638,
        "GSP": 1.8727447852665293,
        "NGV": -9.533935286694255,
        "GRAND TOTAL": -0.11467390995399103
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 4.219239189481291,
        "INDUSTRY": -0.39027858705534973,
        "GSP": 0.10724194665645138,
        "NGV": -11.811210495696491,
        "GRAND TOTAL": 1.8240108649230136
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": -6.7424784301088,
        "INDUSTRY": -4.623059626964801,
        "GSP": -10.19712378888731,
        "NGV": -28.094462360934912,
        "GRAND TOTAL": -8.009390879865618
    },
    {
        "section": "3.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": -0.08634594804408072,
        "INDUSTRY": 6.369380365150155,
        "GSP": -0.29025851453116924,
        "NGV": -19.262458849304466,
        "GRAND TOTAL": 0.32850849815622885
    },
    {
        "section": "3.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY": -2.816804524048423,
        "INDUSTRY": 3.9649378754771405,
        "GSP": -11.668976324804124,
        "NGV": 1.4956106791103037,
        "GRAND TOTAL": -3.438315424996028
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 58.084219922639434,
        "INDUSTRY": 15.468893566337519,
        "GSP": 21.263798018207527,
        "NGV": 5.183088492815515,
        "GRAND TOTAL": 100.00000000000003
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 57.32764024632455,
        "INDUSTRY": 16.291156519632555,
        "GSP": 21.68688388444058,
        "NGV": 4.694319349602302,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 58.67617077985694,
        "INDUSTRY": 15.936885108248013,
        "GSP": 21.321239594153745,
        "NGV": 4.065704517741296,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 59.48427034541126,
        "INDUSTRY": 16.523549036578693,
        "GSP": 20.814175036505794,
        "NGV": 3.1780055815042605,
        "GRAND TOTAL": 100
    },
    {
        "section": "4.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 59.2383052214283,
        "INDUSTRY": 17.518447136950606,
        "GSP": 20.685805492278714,
        "NGV": 2.557442149342384,
        "GRAND TOTAL": 100
    },
    {
        "section": "4.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY": 60.04983420172672,
        "INDUSTRY": 17.95732977955488,
        "GSP": 19.266821810645595,
        "NGV": 2.726014208072804,
        "GRAND TOTAL": 100
    },
    {
        "section": "4.2",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 90,
        "period_name": "(3 MTHS)",
        "ELECTRICITY": 59.66580045624546,
        "INDUSTRY": 16.678603858346666,
        "GSP": 21.062099056877504,
        "NGV": 2.593496628530388,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 58.05878598023051,
        "INDUSTRY": 17.469455715915032,
        "GSP": 20.478187941316925,
        "NGV": 3.99357036253755,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 58.99967923381701,
        "INDUSTRY": 16.402391360292885,
        "GSP": 20.683874200060696,
        "NGV": 3.9140552058294182,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 59.961746529196425,
        "INDUSTRY": 15.947871509733705,
        "GSP": 20.806048253505924,
        "NGV": 3.2843337075639467,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY": 59.832745912574204,
        "INDUSTRY": 16.744817250914778,
        "GSP": 20.905558388283644,
        "NGV": 2.5168784482273967,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY": 62.2398235885836,
        "INDUSTRY": 16.10388716509355,
        "GSP": 18.850583437645767,
        "NGV": 2.80570580867709,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY": 61.68942543844488,
        "INDUSTRY": 15.243618384170338,
        "GSP": 20.02707669635874,
        "NGV": 3.0398794810260332,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY": 63.0917142855011,
        "INDUSTRY": 15.698502206468518,
        "GSP": 19.1946456520243,
        "NGV": 2.0151378560060733,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY": 58.587556018801266,
        "INDUSTRY": 16.09267789353678,
        "GSP": 21.924957188636487,
        "NGV": 3.394808899025466,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY": 58.85414731782023,
        "INDUSTRY": 16.16316611171849,
        "GSP": 21.73612202777953,
        "NGV": 3.2465645426817686,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY": 56.96341447464377,
        "INDUSTRY": 17.498507945339135,
        "GSP": 22.313015208670137,
        "NGV": 3.2250623713469686,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY": 58.314324540839536,
        "INDUSTRY": 17.65073909328617,
        "GSP": 20.70216708300341,
        "NGV": 3.332769282870882,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY": 56.94083850235714,
        "INDUSTRY": 17.394620757657933,
        "GSP": 22.285776818976892,
        "NGV": 3.3787639210080314,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 59.48427034541126,
        "INDUSTRY": 16.523549036578693,
        "GSP": 20.814175036505794,
        "NGV": 3.1780055815042605,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 57.097208308972924,
        "INDUSTRY": 17.12710676117177,
        "GSP": 22.940664007581432,
        "NGV": 2.8350209222738556,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 59.14045258532684,
        "INDUSTRY": 17.90990919145921,
        "GSP": 21.04817039039792,
        "NGV": 1.9014678328160208,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 62.25075881878066,
        "INDUSTRY": 15.284456477378047,
        "GSP": 19.50095746691518,
        "NGV": 2.9638272369261376,
        "GRAND TOTAL": 100.00000000000004
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 4,
        "period_name": "APR",
        "ELECTRICITY": 60.26597675628621,
        "INDUSTRY": 17.164797322009193,
        "GSP": 19.91915959340385,
        "NGV": 2.650066328300736,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 5,
        "period_name": "MAY",
        "ELECTRICITY": 61.522237002055704,
        "INDUSTRY": 16.297408078322167,
        "GSP": 19.86071393260564,
        "NGV": 2.3196409870164874,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 6,
        "period_name": "JUN",
        "ELECTRICITY": 58.80668188146397,
        "INDUSTRY": 17.40994418659513,
        "GSP": 21.21887611854674,
        "NGV": 2.5644978133941443,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 7,
        "period_name": "JUL",
        "ELECTRICITY": 60.275396099011644,
        "INDUSTRY": 19.386683801416442,
        "GSP": 17.86115964444043,
        "NGV": 2.476760455131498,
        "GRAND TOTAL": 100.00000000000003
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 8,
        "period_name": "AUG",
        "ELECTRICITY": 57.45477619551873,
        "INDUSTRY": 18.182393948811683,
        "GSP": 22.11042529804684,
        "NGV": 2.252404557622739,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 9,
        "period_name": "SEP",
        "ELECTRICITY": 59.390151730442206,
        "INDUSTRY": 17.042853937730964,
        "GSP": 21.197081212356945,
        "NGV": 2.369913119469896,
        "GRAND TOTAL": 100.00000000000003
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 10,
        "period_name": "OCT",
        "ELECTRICITY": 59.29329356407895,
        "INDUSTRY": 18.075957629207096,
        "GSP": 20.031683619782747,
        "NGV": 2.599065186931194,
        "GRAND TOTAL": 99.99999999999997
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 11,
        "period_name": "NOV",
        "ELECTRICITY": 58.300195450332545,
        "INDUSTRY": 18.075771018445355,
        "GSP": 20.902906169984174,
        "NGV": 2.7211273612379383,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 12,
        "period_name": "DEC",
        "ELECTRICITY": 55.934024832841544,
        "INDUSTRY": 19.05758266368264,
        "GSP": 21.996067335611684,
        "NGV": 3.0123251678641343,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 59.2383052214283,
        "INDUSTRY": 17.518447136950606,
        "GSP": 20.685805492278714,
        "NGV": 2.557442149342384,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 1,
        "period_name": "JAN",
        "ELECTRICITY": 57.59627655807873,
        "INDUSTRY": 18.872472755837812,
        "GSP": 20.702335103085158,
        "NGV": 2.8289155829982993,
        "GRAND TOTAL": 99.99999999999999
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 2,
        "period_name": "FEB",
        "ELECTRICITY": 60.16007783076647,
        "INDUSTRY": 17.697154841876362,
        "GSP": 19.352465666630085,
        "NGV": 2.790301660727101,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 3,
        "period_name": "MAR",
        "ELECTRICITY": 62.04190448485165,
        "INDUSTRY": 17.39577849301448,
        "GSP": 17.97693472646709,
        "NGV": 2.5853822956667716,
        "GRAND TOTAL": 100
    },
    {
        "section": "5.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "ELECTRICITY": 60.04983420172672,
        "INDUSTRY": 17.957329779554872,
        "GSP": 19.266821810645602,
        "NGV": 2.726014208072804,
        "GRAND TOTAL": 100
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/current

Query Parameters

Parameter Type Default Description
date String

Quantity and share (%) of natural gas consumption classified by sector in current year and 5 years ago (Unit: MMSCFD)

ปริมาณและสัดส่วนการใช้ก๊าซธรรมชาติรายสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน)

Consumption Share of Natural Gas by sector (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": ""1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "unit": "MMSCFD",
        "ELECTRICITY": 2566.6733548387097,
        "INDUSTRY": 772.2928709677419,
        "GSP": 905.3034516129032,
        "NGV": 176.54848387096774,
        "GRAND TOTAL": 4420.818161290322,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY": 58.05878598023051,
        "SHARE_INDUSTRY": 17.469455715915032,
        "SHARE_GSP": 20.478187941316925,
        "SHARE_NGV": 3.99357036253755,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY": 0.6476908694891756,
        "GROWTH_INDUSTRY": -0.2654510764513821,
        "GROWTH_GSP": 2.8134930788003594,
        "GROWTH_NGV": -10.959043622886304,
        "GROWTH_GRAND TOTAL": 0.39756215775396503
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity and share (%) of natural gas consumption classified by sector as monthly (Unit: MMSCFD) (1986-present)

ปริมาณและสัดส่วนการใช้ก๊าซธรรมชาติรายสาขา รายเดือน (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Consumption Share of Natural Gas by sector (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "unit": "MMSCFD",
        "ELECTRICITY": 2714.0094505494512,
        "INDUSTRY": 762.666054945055,
        "GSP": 949.8031868131868,
        "NGV": 170.79289010989012,
        "GRAND TOTAL": 4597.271582417582,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY": 59.03522125882819,
        "SHARE_INDUSTRY": 16.58953666913864,
        "SHARE_GSP": 20.660149607992285,
        "SHARE_NGV": 3.7150924640409153,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY": -0.7902471529546368,
        "GROWTH_INDUSTRY": -0.3901788066807659,
        "GROWTH_GSP": -0.30283420896041124,
        "GROWTH_NGV": -16.107915185084345,
        "GROWTH_GRAND TOTAL": -1.2943319025517535
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity and share (%) of natural gas consumption classified by sector as quarterly (Unit: MMSCFD) (1986-present)

ปริมาณและสัดส่วนการใช้ก๊าซธรรมชาติรายสาขา รายไตรมาส (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Consumption Share of Natural Gas by sector (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "unit": "MMSCFD",
        "ELECTRICITY": 2598.4208852459014,
        "INDUSTRY": 721.7897213114755,
        "GSP": 909.21493715847,
        "NGV": 138.8231885245902,
        "GRAND TOTAL": 4368.248732240436,
        "SHARE_UNIT": "SHARE (%)",
        "SHARE_ELECTRICITY": 59.484270345411275,
        "SHARE_INDUSTRY": 16.523549036578693,
        "SHARE_GSP": 20.8141750365058,
        "SHARE_NGV": 3.178005581504262,
        "SHARE_GRAND TOTAL": 100,
        "GROWTH_UNIT": "GROWTH RATE (%)",
        "GROWTH_ELECTRICITY": -6.74247843010878,
        "GROWTH_INDUSTRY": -4.623059626964801,
        "GROWTH_GSP": -10.197123788887282,
        "GROWTH_NGV": -28.09446236093491,
        "GROWTH_GRAND TOTAL": -8.00939087986566
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/naturalGas/comsumption/consumptionShareOfNatural/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity and share (%) of natural gas consumption classified by sector as yearly (Unit: MMSCFD) (1986-present)

ปริมาณและสัดส่วนการใช้ก๊าซธรรมชาติรายสาขา รายปี (หน่วย: ล้านลูกบาศก์ฟุต/วัน) (2529-ปัจจุบัน)

Petroleum Prices (Petroleum Prices)

Rate of Exchange (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2021-11-20T13:58:45.352Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-bangkok/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 0,
        "period_name": "YTD",
        "POUND STERLING_BUYING": 48.52085833333333,
        "POUND STERLING_SELLING": 49.384416666666674,
        "U.S.DOLLAR_BUYING": 31.487599999999997,
        "U.S.DOLLAR_SELLING": 31.867425,
        "SINGAPORE DOLLAR_BUYING": 22.969850000000005,
        "SINGAPORE DOLLAR_SELLING": 23.485316666666666,
        "JAPANESE YEN_BUYING": 35.703516666666665,
        "JAPANESE YEN_SELLING": 36.50106666666667,
        "EURO_BUYING": 41.655408333333334,
        "EURO_SELLING": 42.40134166666667
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "POUND STERLING_BUYING": 52.8968,
        "POUND STERLING_SELLING": 53.7902,
        "U.S.DOLLAR_BUYING": 32.7983,
        "U.S.DOLLAR_SELLING": 33.1758,
        "SINGAPORE DOLLAR_BUYING": 23.3664,
        "SINGAPORE DOLLAR_SELLING": 23.8756,
        "JAPANESE YEN_BUYING": 35.7846,
        "JAPANESE YEN_SELLING": 36.547,
        "EURO_BUYING": 46.744,
        "EURO_SELLING": 47.5285
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "POUND STERLING_BUYING": 51.362,
        "POUND STERLING_SELLING": 52.2362,
        "U.S.DOLLAR_BUYING": 32.9072,
        "U.S.DOLLAR_SELLING": 33.2868,
        "SINGAPORE DOLLAR_BUYING": 23.1806,
        "SINGAPORE DOLLAR_SELLING": 23.6849,
        "JAPANESE YEN_BUYING": 36.285,
        "JAPANESE YEN_SELLING": 37.061,
        "EURO_BUYING": 44.9291,
        "EURO_SELLING": 45.6966
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "POUND STERLING_BUYING": 48.4167,
        "POUND STERLING_SELLING": 49.277,
        "U.S.DOLLAR_BUYING": 32.2688,
        "U.S.DOLLAR_SELLING": 32.6509,
        "SINGAPORE DOLLAR_BUYING": 22.9309,
        "SINGAPORE DOLLAR_SELLING": 23.4374,
        "JAPANESE YEN_BUYING": 35.4599,
        "JAPANESE YEN_SELLING": 36.2289,
        "EURO_BUYING": 43.6909,
        "EURO_SELLING": 44.4549
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 4,
        "period_name": "APR",
        "POUND STERLING_BUYING": 48.9524,
        "POUND STERLING_SELLING": 49.8138,
        "U.S.DOLLAR_BUYING": 32.0452,
        "U.S.DOLLAR_SELLING": 32.424,
        "SINGAPORE DOLLAR_BUYING": 23.0737,
        "SINGAPORE DOLLAR_SELLING": 23.5837,
        "JAPANESE YEN_BUYING": 34.1345,
        "JAPANESE YEN_SELLING": 34.8781,
        "EURO_BUYING": 42.8329,
        "EURO_SELLING": 43.5792
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 5,
        "period_name": "MAY",
        "POUND STERLING_BUYING": 46.9458,
        "POUND STERLING_SELLING": 47.8236,
        "U.S.DOLLAR_BUYING": 32.1473,
        "U.S.DOLLAR_SELLING": 32.5366,
        "SINGAPORE DOLLAR_BUYING": 22.9522,
        "SINGAPORE DOLLAR_SELLING": 23.4629,
        "JAPANESE YEN_BUYING": 34.7412,
        "JAPANESE YEN_SELLING": 35.5256,
        "EURO_BUYING": 40.1963,
        "EURO_SELLING": 40.9447
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 6,
        "period_name": "JUN",
        "POUND STERLING_BUYING": 47.3839,
        "POUND STERLING_SELLING": 48.2272,
        "U.S.DOLLAR_BUYING": 32.2319,
        "U.S.DOLLAR_SELLING": 32.6098,
        "SINGAPORE DOLLAR_BUYING": 22.9284,
        "SINGAPORE DOLLAR_SELLING": 23.4326,
        "JAPANESE YEN_BUYING": 35.2822,
        "JAPANESE YEN_SELLING": 36.0529,
        "EURO_BUYING": 39.2468,
        "EURO_SELLING": 39.966
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 7,
        "period_name": "JUL",
        "POUND STERLING_BUYING": 48.88,
        "POUND STERLING_SELLING": 49.7342,
        "U.S.DOLLAR_BUYING": 32.0888,
        "U.S.DOLLAR_SELLING": 32.4656,
        "SINGAPORE DOLLAR_BUYING": 23.1743,
        "SINGAPORE DOLLAR_SELLING": 23.6841,
        "JAPANESE YEN_BUYING": 36.4404,
        "JAPANESE YEN_SELLING": 37.2414,
        "EURO_BUYING": 40.8816,
        "EURO_SELLING": 41.6182
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 8,
        "period_name": "AUG",
        "POUND STERLING_BUYING": 49.2372,
        "POUND STERLING_SELLING": 50.1003,
        "U.S.DOLLAR_BUYING": 31.51,
        "U.S.DOLLAR_SELLING": 31.8857,
        "SINGAPORE DOLLAR_BUYING": 23.1312,
        "SINGAPORE DOLLAR_SELLING": 23.6454,
        "JAPANESE YEN_BUYING": 36.6995,
        "JAPANESE YEN_SELLING": 37.522,
        "EURO_BUYING": 40.5779,
        "EURO_SELLING": 41.3091
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 9,
        "period_name": "SEP",
        "POUND STERLING_BUYING": 47.4808,
        "POUND STERLING_SELLING": 48.3434,
        "U.S.DOLLAR_BUYING": 30.5964,
        "U.S.DOLLAR_SELLING": 30.9776,
        "SINGAPORE DOLLAR_BUYING": 22.7827,
        "SINGAPORE DOLLAR_SELLING": 23.3055,
        "JAPANESE YEN_BUYING": 36.0655,
        "JAPANESE YEN_SELLING": 36.8934,
        "EURO_BUYING": 39.8109,
        "EURO_SELLING": 40.5451
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 10,
        "period_name": "OCT",
        "POUND STERLING_BUYING": 46.9945,
        "POUND STERLING_SELLING": 47.8562,
        "U.S.DOLLAR_BUYING": 29.7302,
        "U.S.DOLLAR_SELLING": 30.1112,
        "SINGAPORE DOLLAR_BUYING": 22.67,
        "SINGAPORE DOLLAR_SELLING": 23.2016,
        "JAPANESE YEN_BUYING": 36.1025,
        "JAPANESE YEN_SELLING": 36.9512,
        "EURO_BUYING": 41.1609,
        "EURO_SELLING": 41.9144
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 11,
        "period_name": "NOV",
        "POUND STERLING_BUYING": 47.2347,
        "POUND STERLING_SELLING": 48.0942,
        "U.S.DOLLAR_BUYING": 29.6486,
        "U.S.DOLLAR_SELLING": 30.0249,
        "SINGAPORE DOLLAR_BUYING": 22.7255,
        "SINGAPORE DOLLAR_SELLING": 23.2566,
        "JAPANESE YEN_BUYING": 35.7904,
        "JAPANESE YEN_SELLING": 36.6278,
        "EURO_BUYING": 40.4589,
        "EURO_SELLING": 41.1963
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/current

Query Parameters

Parameter Type Default Description
date String

Buying and selling exchange rate of Pound sterling, U.S.Dollar, Singapore Dollar, Japanese Yen and Euro as monthly in current year and 12 years ago (Unit: Baht)

อัตราแลกเปลี่ยนเงินตราต่างประเทศ รายเดือน ของปีปัจจุบันและย้อนหลัง 12 ปี (หน่วย: บาท)

Rate of Exchange (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-bangkok/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "POUND STERLING_BUYING": 52.8968,
        "POUND STERLING_SELLING": 53.7902,
        "U.S.DOLLAR_BUYING": 32.7983,
        "U.S.DOLLAR_SELLING": 33.1758,
        "SINGAPORE DOLLAR_BUYING": 23.3664,
        "SINGAPORE DOLLAR_SELLING": 23.8756,
        "JAPANESE YEN_BUYING": 35.7846,
        "JAPANESE YEN_SELLING": 36.547,
        "EURO_BUYING": 46.744,
        "EURO_SELLING": 47.5285
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "POUND STERLING_BUYING": 51.362,
        "POUND STERLING_SELLING": 52.2362,
        "U.S.DOLLAR_BUYING": 32.9072,
        "U.S.DOLLAR_SELLING": 33.2868,
        "SINGAPORE DOLLAR_BUYING": 23.1806,
        "SINGAPORE DOLLAR_SELLING": 23.6849,
        "JAPANESE YEN_BUYING": 36.285,
        "JAPANESE YEN_SELLING": 37.061,
        "EURO_BUYING": 44.9291,
        "EURO_SELLING": 45.6966
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "POUND STERLING_BUYING": 48.4167,
        "POUND STERLING_SELLING": 49.277,
        "U.S.DOLLAR_BUYING": 32.2688,
        "U.S.DOLLAR_SELLING": 32.6509,
        "SINGAPORE DOLLAR_BUYING": 22.9309,
        "SINGAPORE DOLLAR_SELLING": 23.4374,
        "JAPANESE YEN_BUYING": 35.4599,
        "JAPANESE YEN_SELLING": 36.2289,
        "EURO_BUYING": 43.6909,
        "EURO_SELLING": 44.4549
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Buying and selling exchange rate of Pound sterling, U.S.Dollar, Singapore Dollar, Japanese Yen and Euro as monthly (Unit: Baht) (2002-present)

อัตราแลกเปลี่ยนเงินตราต่างประเทศ รายเดือน (หน่วย: บาท) (2545-ปัจจุบัน)

Rate of Exchange (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-bangkok/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "POUND STERLING_BUYING": 39.50233333333333,
        "POUND STERLING_SELLING": 40.4908,
        "U.S.DOLLAR_BUYING": 31.02863333333333,
        "U.S.DOLLAR_SELLING": 31.453433333333333,
        "SINGAPORE DOLLAR_BUYING": 22.2413,
        "SINGAPORE DOLLAR_SELLING": 22.8459,
        "JAPANESE YEN_BUYING": 28.2644,
        "JAPANESE YEN_SELLING": 29.106533333333335,
        "EURO_BUYING": 34.02996666666667,
        "EURO_SELLING": 34.8389
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Buying and selling exchange rate of Pound sterling, U.S.Dollar, Singapore Dollar, Japanese Yen and Euro as quarterly (Unit: Baht) (2002-present)

อัตราแลกเปลี่ยนเงินตราต่างประเทศ รายไตรมาส (หน่วย: บาท) (2545-ปัจจุบัน)

Rate of Exchange (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-bangkok/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "BAHT",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "POUND STERLING_BUYING": 39.563116666666666,
        "POUND STERLING_SELLING": 40.57130833333334,
        "U.S.DOLLAR_BUYING": 31.03328333333333,
        "U.S.DOLLAR_SELLING": 31.4618,
        "SINGAPORE DOLLAR_BUYING": 22.333375,
        "SINGAPORE DOLLAR_SELLING": 22.964408333333335,
        "JAPANESE YEN_BUYING": 28.84515833333333,
        "JAPANESE YEN_SELLING": 29.70454166666667,
        "EURO_BUYING": 35.200925,
        "EURO_SELLING": 36.044475
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-bangkok/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Buying and selling exchange rate of Pound sterling, U.S.Dollar, Singapore Dollar, Japanese Yen and Euro as yearly (Unit: Baht) (2002-present)

อัตราแลกเปลี่ยนเงินตราต่างประเทศ รายปี (หน่วย: บาท) (2545-ปัจจุบัน)

Price of Petroleum Products in Thailand (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-27T02:34:12.146Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-thailand/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2006,
        "year_remark": "",
        "period_no": "20060101",
        "period_name": "JAN-1",
        "ULG 95": 17.242,
        "ULG 91": 16.7336,
        "GASOHOL 95 (E10)": 17.6518,
        "GASOHOL 95 (E20)": null,
        "GASOHOL 95 (E85)": null,
        "GASOHOL 91": null,
        "KEROSENE": 19.3402,
        "HSD (B7)": 18.2366,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": null,
        "LSD": 17.6963,
        "FO 1500 (2%S)": 12.2935,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 12.9408,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2006,
        "year_remark": "",
        "period_no": "20060102",
        "period_name": "JAN-2",
        "ULG 95": 17.542914285714286,
        "ULG 91": 17.04212857142857,
        "GASOHOL 95 (E10)": 17.92262857142857,
        "GASOHOL 95 (E20)": null,
        "GASOHOL 95 (E85)": null,
        "GASOHOL 91": null,
        "KEROSENE": 19.588314285714286,
        "HSD (B7)": 18.3719,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": null,
        "LSD": 17.8402,
        "FO 1500 (2%S)": 12.311071428571427,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 12.91968571428571,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/current

Query Parameters

Parameter Type Default Description
date String

Ex-Refinery price of petroleum products classified by energy type as weekly since 2006-present (Unit: Baht/Litre except LPG: Baht/KG)

ราคา ณ โรงกลั่น ของน้ำมันสำเร็จรูป แยกตามชนิดน้ำมัน รายสัปดาห์ ตั้งแต่ พ.ศ. 2549-ปัจจุบัน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.)

Price of Petroleum Products in Thailand (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-thailand/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ULG 95": 19.08712258064516,
        "ULG 91": 18.18164838709677,
        "GASOHOL 95 (E10)": 19.799403225806454,
        "GASOHOL 95 (E20)": 20.419774193548385,
        "GASOHOL 95 (E85)": 23.54356451612902,
        "GASOHOL 91": 19.172464516129033,
        "KEROSENE": 18.30568064516129,
        "HSD (B7)": 18.372467741935488,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": 18.773054838709676,
        "LSD": 17.736135483870967,
        "FO 1500 (2%S)": 16.130445161290325,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 11.104699999999996,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "ULG 95": 18.477410714285718,
        "ULG 91": 18.01993214285714,
        "GASOHOL 95 (E10)": 18.919067857142856,
        "GASOHOL 95 (E20)": 19.268607142857146,
        "GASOHOL 95 (E85)": 20.630114285714285,
        "GASOHOL 91": 18.695739285714286,
        "KEROSENE": 17.480821428571428,
        "HSD (B7)": 17.90113571428571,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": 18.25698571428571,
        "LSD": 17.29340714285714,
        "FO 1500 (2%S)": 15.370621428571429,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 11.0394,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Ex-Refinery price of petroleum products classified by energy type as monthly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

ราคา ณ โรงกลั่น ของน้ำมันสำเร็จรูป แยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

Price of Petroleum Products in Thailand (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-thailand/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ULG 95": 12.213247252747253,
        "ULG 91": null,
        "GASOHOL 95 (E10)": 13.148954945054944,
        "GASOHOL 95 (E20)": 14.18862857142857,
        "GASOHOL 95 (E85)": 20.01082087912088,
        "GASOHOL 91": 12.75323406593406,
        "KEROSENE": 12.165852747252755,
        "HSD (B7)": 14.560299999999993,
        "HSD (B10)": 15.117919780219776,
        "HSD (B20)": 17.65256923076924,
        "HSD (B5)": null,
        "LSD": 12.277424175824178,
        "FO 1500 (2%S)": 8.41760659340659,
        "LPG LOW INCOME HOUSEHOLD": 0,
        "LPG COOKING": 16.2923153846154,
        "LPG INDUSTRY": 16.29231538461541,
        "LPG AUTOMOBILE": 16.292315384615403
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Ex-Refinery price of petroleum products classified by energy type as quarterly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

ราคา ณ โรงกลั่น ของน้ำมันสำเร็จรูป แยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

Price of Petroleum Products in Thailand (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-thailand/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVERAGE",
        "ULG 95": 9.792868508287288,
        "ULG 91": null,
        "GASOHOL 95 (E10)": 10.921864917127085,
        "GASOHOL 95 (E20)": 12.088970718232044,
        "GASOHOL 95 (E85)": 19.779523480662988,
        "GASOHOL 91": 10.530760220994477,
        "KEROSENE": 9.127490055248607,
        "HSD (B7)": 11.448122099447524,
        "HSD (B10)": 11.941633149171274,
        "HSD (B20)": 14.12033066298341,
        "HSD (B5)": null,
        "LSD": 9.542668508287292,
        "FO 1500 (2%S)": 7.7363135359116,
        "LPG LOW INCOME HOUSEHOLD": 0,
        "LPG COOKING": 13.381977348066298,
        "LPG INDUSTRY": 13.381977348066274,
        "LPG AUTOMOBILE": 13.381977348066298
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-thailand/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Ex-Refinery price of petroleum products classified by energy type as yearly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

ราคา ณ โรงกลั่น ของน้ำมันสำเร็จรูป แยกตามชนิดน้ำมัน รายปี (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

Oil Fund Levied on Petroleum Products in Thailand (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{"date": \"2021-12-27T02:34:12.146Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-oilfund/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2006,
        "year_remark": "",
        "period_no": "20060101",
        "period_name": "JAN-1",
        "ULG 95": 2.5,
        "ULG 91": 2.3,
        "GASOHOL 95 (E10)": 0.94,
        "GASOHOL 95 (E20)": null,
        "GASOHOL 95 (E85)": null,
        "GASOHOL 91": null,
        "KEROSENE": 0.1,
        "HSD (B7)": 2,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": null,
        "LSD": 2,
        "FO 1500 (2%S)": 0.06,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": -2.8709,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2006,
        "year_remark": "",
        "period_no": "20060102",
        "period_name": "JAN-2",
        "ULG 95": 2.5,
        "ULG 91": 2.3000000000000003,
        "GASOHOL 95 (E10)": 0.9399999999999997,
        "GASOHOL 95 (E20)": null,
        "GASOHOL 95 (E85)": null,
        "GASOHOL 91": null,
        "KEROSENE": 0.09999999999999999,
        "HSD (B7)": 2,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": null,
        "LSD": 2,
        "FO 1500 (2%S)": 0.06,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": -2.8497857142857135,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/current

Query Parameters

Parameter Type Default Description
date String

Oil Fund Levied of petroleum products classified by energy type as weekly since 2006-present (Unit: Baht/Litre except LPG: Baht/KG)

อัตราการจัดเก็บเงินเข้ากองทุนน้ำมัน หรือชดเชยเงินจากกองทุนน้ำมัน แยกตามชนิดน้ำมัน รายสัปดาห์ ตั้งแต่ พ.ศ. 2549-ปัจจุบัน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.)

Oil Fund Levied on Petroleum Products in Thailand (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-oilfund/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "ULG 95": 7.5,
        "ULG 91": 6.1999999999999975,
        "GASOHOL 95 (E10)": 2.270000000000001,
        "GASOHOL 95 (E20)": -0.4600000000000004,
        "GASOHOL 95 (E85)": -10.300000000000006,
        "GASOHOL 91": 1.670000000000001,
        "KEROSENE": 0.10000000000000005,
        "HSD (B7)": 0.5609677419354838,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": -0.809032258064516,
        "LSD": 1.2000000000000002,
        "FO 1500 (2%S)": 0.06000000000000004,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 0.19460000000000008,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "ULG 95": 7.5,
        "ULG 91": 6.557142857142855,
        "GASOHOL 95 (E10)": 2.6485714285714272,
        "GASOHOL 95 (E20)": -0.41714285714285737,
        "GASOHOL 95 (E85)": -10.800000000000002,
        "GASOHOL 91": 1.4771428571428566,
        "KEROSENE": 0.10000000000000005,
        "HSD (B7)": 0.8500000000000003,
        "HSD (B10)": null,
        "HSD (B20)": null,
        "HSD (B5)": -0.8000000000000004,
        "LSD": 1.1999999999999997,
        "FO 1500 (2%S)": 0.06000000000000004,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 0.2599,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Oil Fund Levied of petroleum products classified by energy type as monthly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

อัตราการจัดเก็บเงินเข้ากองทุนน้ำมัน หรือชดเชยเงินจากกองทุนน้ำมัน แยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

Oil Fund Levied on Petroleum Products in Thailand (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-oilfund/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "ULG 95": 6.933846153846156,
        "ULG 91": null,
        "GASOHOL 95 (E10)": 0.9738461538461542,
        "GASOHOL 95 (E20)": -1.9261538461538474,
        "GASOHOL 95 (E85)": -7.460219780219778,
        "GASOHOL 91": 0.973846153846154,
        "KEROSENE": 0.09999999999999983,
        "HSD (B7)": 0.48571428571428577,
        "HSD (B10)": -2.217582417582418,
        "HSD (B20)": -4.105604395604396,
        "HSD (B5)": null,
        "LSD": 1.200000000000002,
        "FO 1500 (2%S)": 0.05999999999999993,
        "LPG LOW INCOME HOUSEHOLD": 0,
        "LPG COOKING": -1.7462945054945083,
        "LPG INDUSTRY": -1.7462945054945072,
        "LPG AUTOMOBILE": -1.7462945054945067
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Oil Fund Levied of petroleum products classified by energy type as quarterly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

อัตราการจัดเก็บเงินเข้ากองทุนน้ำมัน หรือชดเชยเงินจากกองทุนน้ำมัน แยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

Oil Fund Levied on Petroleum Products in Thailand (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-oilfund/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVERAGE",
        "ULG 95": 6.668950276243058,
        "ULG 91": null,
        "GASOHOL 95 (E10)": 0.708950276243097,
        "GASOHOL 95 (E20)": -2.1910497237568882,
        "GASOHOL 95 (E85)": -7.213011049723816,
        "GASOHOL 91": 0.7089502762430969,
        "KEROSENE": 0.10000000000000067,
        "HSD (B7)": 0.8707182320441987,
        "HSD (B10)": -2.4290055248618785,
        "HSD (B20)": -4.146325966850847,
        "HSD (B5)": null,
        "LSD": 1.1999999999999926,
        "FO 1500 (2%S)": 0.05999999999999978,
        "LPG LOW INCOME HOUSEHOLD": 0,
        "LPG COOKING": -0.7503400552486184,
        "LPG INDUSTRY": -0.7503400552486186,
        "LPG AUTOMOBILE": -0.7503400552486187
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-oilfund/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Oil Fund Levied of petroleum products classified by energy type as yearly (Unit: Baht/Litre except LPG: Baht/KG) (2006-present)

อัตราการจัดเก็บเงินเข้ากองทุนน้ำมัน หรือชดเชยเงินจากกองทุนน้ำมัน แยกตามชนิดน้ำมัน รายปี (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2549-ปัจจุบัน)

WHOLESALE PRICE OF PETROLEUM PRODUCTS AT REFINERY (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-27T02:34:12.146Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-wholesale/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2003,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "price_code": 1,
        "price_type": "WT.AVG",
        "GASOLINE ULG 95": 15.200009677419352,
        "GASOLINE ULG 91": 14.402129032258067,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": null,
        "KEROSENE": 13.731551612903225,
        "DIESEL HSD (B7)": null,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 12.414832258064518,
        "FUEL OIL 600 (2%S)": 9.200516129032259,
        "FUEL OIL 1500 (2%S)": 8.899183870967741,
        "FUEL OIL 2000": 8.376080645161288,
        "FUEL OIL 2500": 8.808990322580645,
        "LPG": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2003,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "price_code": 2,
        "price_type": "TRADER COST",
        "GASOLINE ULG 95": 15.198541935483872,
        "GASOLINE ULG 91": 14.386777419354836,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": null,
        "KEROSENE": 13.731551612903225,
        "DIESEL HSD (B7)": null,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 12.414832258064518,
        "FUEL OIL 600 (2%S)": 9.20051612903226,
        "FUEL OIL 1500 (2%S)": 8.899183870967741,
        "FUEL OIL 2000": 8.37608064516129,
        "FUEL OIL 2500": 8.808990322580645,
        "LPG": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/current

Query Parameters

Parameter Type Default Description
date String

Wholesale price of petroleum products at refinery classified by energy type as monthly since 2003-present (Unit: Baht/Litre except LPG: Baht/KG)

ราคาขายส่งน้ำมันสำเร็จรูป ณ โรงกลั่นน้ำมัน แยกตามชนิดน้ำมัน รายเดือน ตั้งแต่ พ.ศ.2546-ปัจจุบัน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.)

WHOLESALE PRICE OF PETROLEUM PRODUCTS AT REFINERY (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-wholesale/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "price_code": 1,
        "price_type": "WT.AVG",
        "GASOLINE ULG 95": 36.40080645161291,
        "GASOLINE ULG 91": 34.739864516129025,
        "GASOLINE GASOHOL 95 (E10)": 30.693609677419357,
        "GASOLINE GASOHOL 95 (E20)": 27.01948387096774,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 29.62118387096773,
        "KEROSENE": 22.941022580645164,
        "DIESEL HSD (B7)": 26.32183225806452,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": 25.282835483870976,
        "DIESEL LSD": 23.53836774193549,
        "FUEL OIL 600 (2%S)": 18.39825483870968,
        "FUEL OIL 1500 (2%S)": 17.986474193548382,
        "FUEL OIL 2000": 17.677370967741936,
        "FUEL OIL 2500": 17.683438709677414,
        "LPG": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "price_code": 2,
        "price_type": "TRADER COST",
        "GASOLINE ULG 95": 36.86621612903226,
        "GASOLINE ULG 91": 34.7355,
        "GASOLINE GASOHOL 95 (E10)": 30.693609677419357,
        "GASOLINE GASOHOL 95 (E20)": 27.019483870967736,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 29.621183870967727,
        "KEROSENE": 22.941022580645157,
        "DIESEL HSD (B7)": 26.322438709677417,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": 25.28283548387097,
        "DIESEL LSD": 23.538367741935495,
        "FUEL OIL 600 (2%S)": 18.39825483870968,
        "FUEL OIL 1500 (2%S)": 17.92304193548387,
        "FUEL OIL 2000": 17.677370967741936,
        "FUEL OIL 2500": 17.68343870967742,
        "LPG": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Wholesale price of petroleum products at refinery classified by energy type as monthly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายส่งน้ำมันสำเร็จรูป ณ โรงกลั่นน้ำมัน แยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

WHOLESALE PRICE OF PETROLEUM PRODUCTS AT REFINERY (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-wholesale/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "price_code": 1,
        "price_type": "WT.AVG",
        "GASOLINE ULG 95": null,
        "GASOLINE ULG 91": 21.938599999999965,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 14.792187912087917,
        "KEROSENE": 22.42110000000002,
        "DIESEL HSD (B7)": 25.630371428571415,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": null,
        "FUEL OIL 600 (2%S)": 15.466799999999989,
        "FUEL OIL 1500 (2%S)": 15.103800000000012,
        "FUEL OIL 2000": null,
        "FUEL OIL 2500": null,
        "LPG": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "price_code": 2,
        "price_type": "TRADER COST",
        "GASOLINE ULG 95": null,
        "GASOLINE ULG 91": 21.53490000000005,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 14.792187912087922,
        "KEROSENE": 22.42110000000002,
        "DIESEL HSD (B7)": 26.440549450549472,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": null,
        "FUEL OIL 600 (2%S)": 15.466799999999989,
        "FUEL OIL 1500 (2%S)": 14.895500000000014,
        "FUEL OIL 2000": null,
        "FUEL OIL 2500": null,
        "LPG": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Wholesale price of petroleum products at refinery classified by energy type as quarterly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายส่งน้ำมันสำเร็จรูป ณ โรงกลั่นน้ำมัน แยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

WHOLESALE PRICE OF PETROLEUM PRODUCTS AT REFINERY (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-wholesale/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVG",
        "price_code": 1,
        "price_type": "WT.AVG",
        "GASOLINE ULG 95": null,
        "GASOLINE ULG 91": 21.938600000000154,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 14.631020491803268,
        "KEROSENE": 22.421099999999797,
        "DIESEL HSD (B7)": 25.31991338797808,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": null,
        "FUEL OIL 600 (2%S)": 15.466800000000081,
        "FUEL OIL 1500 (2%S)": 15.103799999999929,
        "FUEL OIL 2000": null,
        "FUEL OIL 2500": null,
        "LPG": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVG",
        "price_code": 2,
        "price_type": "TRADER COST",
        "GASOLINE ULG 95": null,
        "GASOLINE ULG 91": 21.534899999999894,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 14.631020491803275,
        "KEROSENE": 22.421099999999797,
        "DIESEL HSD (B7)": 26.134590710382554,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": null,
        "FUEL OIL 600 (2%S)": 15.466800000000081,
        "FUEL OIL 1500 (2%S)": 14.895499999999952,
        "FUEL OIL 2000": null,
        "FUEL OIL 2500": null,
        "LPG": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-wholesale/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Wholesale price of petroleum products at refinery classified by energy type as yearly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายส่งน้ำมันสำเร็จรูป ณ โรงกลั่นน้ำมัน แยกตามชนิดน้ำมัน รายปี (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

RETAIL PRICE OF PETROLEUM PRODUCTS IN BANGKOK (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-27T02:34:12.146Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-retail/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2003,
        "year_remark": "",
        "period_no": 0,
        "period_name": "AVG",
        "seq": 1,
        "product": "(MIN)",
        "GASOLINE ULG 95": 16.604520547945143,
        "GASOLINE ULG 91": 15.64999999999995,
        "GASOLINE GASOHOL 95 (E10)": null,
        "GASOLINE GASOHOL 95 (E20)": null,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": null,
        "KEROSENE": 15.623120821917814,
        "DIESEL HSD (B7)": 14.024520547945185,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD PREMIUM": null,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 13.596373972602725,
        "FUEL OIL 600 (2%S)": 10.36429589041092,
        "FUEL OIL 1500 (2%S)": 10.025643835616416,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": null,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE BKG": null,
        "LPG AUTOMOBILE BHT": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/current

Query Parameters

Parameter Type Default Description
date String

Retail price of petroleum products in bangkok classified by energy type as monthly since 2003-present (Unit: Baht/Litre except LPG: Baht/KG)

ราคาขายปลีกน้ำมันสำเร็จรูปในกรุงเทพมหานคร แยกตามชนิดน้ำมัน รายเดือน ตั้งแต่ พ.ศ.2546-ปัจจุบัน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.)

RETAIL PRICE OF PETROLEUM PRODUCTS IN BANGKOK (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-retail/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "seq": 1,
        "product": "MIN",
        "GASOLINE ULG 95": 40.917419354838714,
        "GASOLINE ULG 91": 35.91741935483872,
        "GASOLINE GASOHOL 95 (E10)": 32.317419354838705,
        "GASOLINE GASOHOL 95 (E20)": 30.01741935483872,
        "GASOLINE GASOHOL 95 (E85)": 18.720000000000013,
        "GASOLINE GASOHOL 91": 31.517419354838722,
        "KEROSENE": 27.159999999999993,
        "DIESEL HSD (B7)": 28.09322580645162,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD PREMIUM": null,
        "DIESEL HSD (B5)": 26.751290322580648,
        "DIESEL LSD": 27.03999999999999,
        "FUEL OIL 600 (2%S)": 21.860967741935482,
        "FUEL OIL 1500 (2%S)": 20.15096774193548,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 18.13,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE BKG": null,
        "LPG AUTOMOBILE BHT": null
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "seq": 2,
        "product": "WT.AVG",
        "GASOLINE ULG 95": 41.06051935483872,
        "GASOLINE ULG 91": 35.91741935483872,
        "GASOLINE GASOHOL 95 (E10)": 32.3228064516129,
        "GASOLINE GASOHOL 95 (E20)": 30.01741935483872,
        "GASOLINE GASOHOL 95 (E85)": null,
        "GASOLINE GASOHOL 91": 31.520064516129047,
        "KEROSENE": 37.32529999999998,
        "DIESEL HSD (B7)": 28.09322580645162,
        "DIESEL HSD (B10)": null,
        "DIESEL HSD (B20)": null,
        "DIESEL HSD PREMIUM": null,
        "DIESEL HSD (B5)": 26.757241935483872,
        "DIESEL LSD": 27.03999999999999,
        "FUEL OIL 600 (2%S)": 24.16098064516129,
        "FUEL OIL 1500 (2%S)": 22.57772903225806,
        "LPG LOW INCOME HOUSEHOLD": null,
        "LPG COOKING": 18.13,
        "LPG INDUSTRY": null,
        "LPG AUTOMOBILE BKG": null,
        "LPG AUTOMOBILE BHT": null
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Retail price of petroleum products in bangkok classified by energy type as monthly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายปลีกน้ำมันสำเร็จรูปในกรุงเทพมหานคร แยกตามชนิดน้ำมัน รายเดือน (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

RETAIL PRICE OF PETROLEUM PRODUCTS IN BANGKOK (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-retail/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "seq": 1,
        "product": "MIN",
        "GASOLINE ULG 95": 32.0512087912088,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 24.641208791208797,
        "GASOLINE GASOHOL 95 (E20)": 21.631208791208792,
        "GASOLINE GASOHOL 95 (E85)": 18.379010989011004,
        "GASOLINE GASOHOL 91": 24.371208791208797,
        "KEROSENE": 23.359999999999964,
        "DIESEL HSD (B7)": 25.365824175824187,
        "DIESEL HSD (B10)": 23.003186813186822,
        "DIESEL HSD (B20)": 22.206483516483534,
        "DIESEL HSD PREMIUM": 29.21582417582414,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.039999999999974,
        "FUEL OIL 600 (2%S)": 20.852857142857125,
        "FUEL OIL 1500 (2%S)": 18.180329670329694,
        "LPG LOW INCOME HOUSEHOLD": 20.87,
        "LPG COOKING": 20.87,
        "LPG INDUSTRY": 20.87,
        "LPG AUTOMOBILE BKG": 20.87,
        "LPG AUTOMOBILE BHT": 11.269800000000002
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "seq": 2,
        "product": "WT.AVG",
        "GASOLINE ULG 95": 32.265207692307676,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 24.64396153846155,
        "GASOLINE GASOHOL 95 (E20)": 21.654285714285713,
        "GASOLINE GASOHOL 95 (E85)": 18.379010989011004,
        "GASOLINE GASOHOL 91": 24.37323516483518,
        "KEROSENE": 23.359999999999964,
        "DIESEL HSD (B7)": 25.365824175824187,
        "DIESEL HSD (B10)": 23.00888241758243,
        "DIESEL HSD (B20)": 22.22268131868134,
        "DIESEL HSD PREMIUM": 29.88479890109891,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.039999999999974,
        "FUEL OIL 600 (2%S)": 24.9732208791209,
        "FUEL OIL 1500 (2%S)": 21.602161538461516,
        "LPG LOW INCOME HOUSEHOLD": 21.61193548387097,
        "LPG COOKING": 21.61193548387097,
        "LPG INDUSTRY": 21.61193548387097,
        "LPG AUTOMOBILE BKG": 21.61193548387097,
        "LPG AUTOMOBILE BHT": 11.670445161290324
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "seq": 3,
        "product": "MAX",
        "GASOLINE ULG 95": 32.5012087912088,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 24.65439560439561,
        "GASOLINE GASOHOL 95 (E20)": 21.690549450549454,
        "GASOLINE GASOHOL 95 (E85)": 18.379010989011004,
        "GASOLINE GASOHOL 91": 24.39098901098902,
        "KEROSENE": 23.359999999999964,
        "DIESEL HSD (B7)": 25.365824175824187,
        "DIESEL HSD (B10)": 23.085604395604406,
        "DIESEL HSD (B20)": 22.30318681318683,
        "DIESEL HSD PREMIUM": 30.492747252747268,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.039999999999974,
        "FUEL OIL 600 (2%S)": 30.076153846153815,
        "FUEL OIL 1500 (2%S)": 28.73879120879121,
        "LPG LOW INCOME HOUSEHOLD": 21.87,
        "LPG COOKING": 21.87,
        "LPG INDUSTRY": 21.87,
        "LPG AUTOMOBILE BKG": 21.87,
        "LPG AUTOMOBILE BHT": 11.809800000000001
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Retail price of petroleum products in bangkok classified by energy type as quarterly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายปลีกน้ำมันสำเร็จรูปในกรุงเทพมหานคร แยกตามชนิดน้ำมัน รายไตรมาส (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

RETAIL PRICE OF PETROLEUM PRODUCTS IN BANGKOK (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-retail/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVG",
        "seq": 1,
        "product": "MIN",
        "GASOLINE ULG 95": 29.299480874316977,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 21.910382513661183,
        "GASOLINE GASOHOL 95 (E20)": 19.971693989070996,
        "GASOLINE GASOHOL 95 (E85)": 17.73112021857922,
        "GASOLINE GASOHOL 91": 21.64038251366117,
        "KEROSENE": 23.359999999999886,
        "DIESEL HSD (B7)": 22.541366120218548,
        "DIESEL HSD (B10)": 19.671420765027314,
        "DIESEL HSD (B20)": 19.310901639344248,
        "DIESEL HSD PREMIUM": 26.723333333333333,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.040000000000123,
        "FUEL OIL 600 (2%S)": 20.00076502732232,
        "FUEL OIL 1500 (2%S)": 17.327213114754073,
        "LPG LOW INCOME HOUSEHOLD": 19.37,
        "LPG COOKING": 19.37,
        "LPG INDUSTRY": 19.37,
        "LPG AUTOMOBILE BKG": 19.37,
        "LPG AUTOMOBILE BHT": 10.459800000000001
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVG",
        "seq": 2,
        "product": "WT.AVG",
        "GASOLINE ULG 95": 29.53230928961749,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 21.930021584699432,
        "GASOLINE GASOHOL 95 (E20)": 19.985218579234928,
        "GASOLINE GASOHOL 95 (E85)": 17.73112021857922,
        "GASOLINE GASOHOL 91": 21.652855737704876,
        "KEROSENE": 23.359999999999886,
        "DIESEL HSD (B7)": 22.554433879781406,
        "DIESEL HSD (B10)": 19.70386830601092,
        "DIESEL HSD (B20)": 19.33145027322403,
        "DIESEL HSD PREMIUM": 27.608761202185796,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.040000000000123,
        "FUEL OIL 600 (2%S)": 23.995955191256883,
        "FUEL OIL 1500 (2%S)": 20.659386338797802,
        "LPG LOW INCOME HOUSEHOLD": 19.555483870967745,
        "LPG COOKING": 19.555483870967745,
        "LPG INDUSTRY": 19.555483870967745,
        "LPG AUTOMOBILE BKG": 19.555483870967745,
        "LPG AUTOMOBILE BHT": 10.559961290322583
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Baht/Litre, LPG: Baht/Kg",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "AVG",
        "seq": 3,
        "product": "MAX",
        "GASOLINE ULG 95": 29.78677595628411,
        "GASOLINE ULG 91": null,
        "GASOLINE GASOHOL 95 (E10)": 21.980054644808714,
        "GASOLINE GASOHOL 95 (E20)": 20.05284153005459,
        "GASOLINE GASOHOL 95 (E85)": 17.73112021857922,
        "GASOLINE GASOHOL 91": 21.701857923497215,
        "KEROSENE": 23.359999999999886,
        "DIESEL HSD (B7)": 22.606120218579207,
        "DIESEL HSD (B10)": 19.78562841530054,
        "DIESEL HSD (B20)": 19.40325136612022,
        "DIESEL HSD PREMIUM": 28.454480874316932,
        "DIESEL HSD (B5)": null,
        "DIESEL LSD": 27.040000000000123,
        "FUEL OIL 600 (2%S)": 28.94393442622952,
        "FUEL OIL 1500 (2%S)": 27.60907103825141,
        "LPG LOW INCOME HOUSEHOLD": 19.62,
        "LPG COOKING": 19.62,
        "LPG INDUSTRY": 19.62,
        "LPG AUTOMOBILE BKG": 19.62,
        "LPG AUTOMOBILE BHT": 10.594800000000001
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-retail/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Retail price of petroleum products in bangkok classified by energy type as yearly (Unit: Baht/Litre except LPG: Baht/KG) (2003-present)

ราคาขายปลีกน้ำมันสำเร็จรูปในกรุงเทพมหานคร แยกตามชนิดน้ำมัน รายปี (หน่วย: บาท/ลิตร ยกเว้น LPG: บาท/กก.) (2546-ปัจจุบัน)

TAX AND OIL FUND REVENUE (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2021-12-27T03:47:50.864Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps("{date: \"2021-12-27T02:34:12.146Z\"}")
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-tax/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/oil/crude/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "date": "2021-12-27T02:34:12.146Z"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2021-12-27T02:34:12.146Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2021-12-27T02:34:12.146Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2021-12-27T02:34:12.146Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2001,
        "year_remark": "",
        "period_no": 0,
        "period_name": "YTD",
        "oil_fund": null,
        "in_out_flow": -10351,
        "excise_tax": 65602.01
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2001,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "oil_fund": -7049.01,
        "in_out_flow": -7049.01,
        "excise_tax": 6150
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2001,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "oil_fund": -8952,
        "in_out_flow": -1902.99,
        "excise_tax": 5189.2
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2001,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "oil_fund": -9579,
        "in_out_flow": -627,
        "excise_tax": 5069.6
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/current

Query Parameters

Parameter Type Default Description
date String

Tax and oil fund revenue as monthly since 2001-present (Unit: Million Baht)

รายได้จากกองทุนน้ำมันและภาษี รายเดือน ตั้งแต่ พ.ศ. 2544-ปัจจุบัน (หน่วย: ล้านบาท)

TAX AND OIL FUND REVENUE (Monthly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-tax/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\": \"1\", \"endMonth\": \"1\", \"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth": "1", "endMonth": "1", "startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"": ""1"", ""endMonth"": 1"", ""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "oil_fund": 20794,
        "in_out_flow": -500,
        "excise_tax": 12514
    },
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "oil_fund": 20705,
        "in_out_flow": -89,
        "excise_tax": 12443
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Tax and oil fund revenue as monthly (Unit: Million Baht) (2001-present)

รายได้จากกองทุนน้ำมันและภาษี รายเดือน (หน่วย: ล้านบาท) (2544-ปัจจุบัน)

TAX AND OIL FUND REVENUE (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-tax/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\": \"1\", \"endQuarter\": \"1\", \"startYear\": \"2021\", \"endYear\": \"2021\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2021", "endYear": "2021"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"": ""1"", ""endQuarter"": ""1"", ""startYear"": ""2021"", ""endYear"": ""2021""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "oil_fund": 109106,
        "in_out_flow": -1930,
        "excise_tax": 57527.899999999994
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Tax and oil fund revenue as quarterly (Unit: Million Baht) (2001-present)

รายได้จากกองทุนน้ำมันและภาษี รายไตรมาส (หน่วย: ล้านบาท) (2544-ปัจจุบัน)

TAX AND OIL FUND REVENUE (Yearly)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear": "2020", "endYear": "2020"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear": "2020", "endYear": "2020"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/petro-prices/petro-prices-tax/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear": "2020", "endYear": "2020"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\": \"2020\", \"endYear\": \"2020\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear": "2020", "endYear": "2020"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch(
  "https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year",
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"": ""2020"", ""endYear"": ""2020""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "M.BAHT",
        "year_en": 2020,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "oil_fund": 396707,
        "in_out_flow": -10826,
        "excise_tax": 216751.47
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/petro-prices/petro-prices-tax/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Tax and oil fund revenue as yearly (Unit: Million Baht) (2001-present)

รายได้จากกองทุนน้ำมันและภาษี รายปี (หน่วย: ล้านบาท) (2544-ปัจจุบัน)

Production and Consumption

Production and Consumption of Lignite (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-01T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-01T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-lignite-production-consumption/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-01T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-01T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-01T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-01T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 30042.26301369863,
        "TANTAWAN": 24543.490410958904,
        "SIRIKIT": 25656.87671232877,
        "JUSMIN": 11854.627397260274,
        "MANORA": 7170.520547945205,
        "SONGKLA": 9102.882191780822,
        "NONGYAO": 8526.30410958904,
        "WASANA": 4480.361643835617,
        "BUALUANG": 8443.369863013699,
        "NASANUN": 1660.2602739726028,
        "OTHERS": 9767.024657534246,
        "TOTAL": 141247.9808219178
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 28302.144931506846,
        "TANTAWAN": 18790.038356164383,
        "SIRIKIT": 27036.239287671237,
        "JUSMIN": 11653.492684931507,
        "MANORA": 6397.212136986301,
        "SONGKLA": 6878.752356164385,
        "NONGYAO": 8545.562575342465,
        "WASANA": 4648.922876712329,
        "BUALUANG": 8135.50909589041,
        "NASANUN": 1265.8873698630136,
        "OTHERS": 7546.25693150685,
        "TOTAL": 129200.01860273973
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 25748.300465753426,
        "TANTAWAN": 20717.92356164383,
        "SIRIKIT": 30029.0974520548,
        "JUSMIN": 10808.166246575342,
        "MANORA": 5342.320438356165,
        "SONGKLA": 5605.629095890411,
        "NONGYAO": 7052.077369863015,
        "WASANA": 4370.165315068493,
        "BUALUANG": 6876.021753424658,
        "NASANUN": 730.9173698630136,
        "OTHERS": 8608.232739726029,
        "TOTAL": 125888.8518082192
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/current

Query Parameters

Parameter Type Default Description
date String

Quantity of lignite production and consumption classified by sources in current year and 5 years ago (Unit: Ton)

ปริมาณการผลิตและการใช้ลิกไนต์จำแนกตามแหล่งผลิต ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ตัน)

Production and Consumption of Lignite (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-lignite-production-consumption/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "EGAT_MAE-MOH_Production": 2.2741960185432664,
        "EGAT_MAE-MOH_Consumption": 1.175419680982712,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 2.2741960185432664,
        "Total EGAT_Consumption": 1.175419680982712,
        "Others_Production": 17.394358988675172,
        "Others_Consumption": -1.2163158939365692,
        "Whole Kingdom_Production": 3.939189689230962,
        "Whole Kingdom_Consumption": 0.9019050530878903,
        "year": 2010,
        "month": ""
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2011,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "EGAT_MAE-MOH_Production": 9.827029179416138,
        "EGAT_MAE-MOH_Consumption": 7.229179147768498,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 9.827029179416138,
        "Total EGAT_Consumption": 7.229179147768498,
        "Others_Production": 65.96669278082297,
        "Others_Consumption": 41.597375209708154,
        "Whole Kingdom_Production": 16.809253906575627,
        "Whole Kingdom_Consumption": 11.076956950276166,
        "year": 2011,
        "month": ""
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2012,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "EGAT_MAE-MOH_Production": -5.512338982463942,
        "EGAT_MAE-MOH_Consumption": -2.3709749825885975,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": -5.512338982463942,
        "Total EGAT_Consumption": -2.3709749825885975,
        "Others_Production": -60.83687781424709,
        "Others_Consumption": -43.59110238086321,
        "Whole Kingdom_Production": -15.288886358983728,
        "Whole Kingdom_Consumption": -8.253906690810748,
        "year": 2012,
        "month": ""
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of lignite production and consumption classified by sources as yearly (Unit: Ton) (1986-present)

ปริมาณการผลิตและการใช้ลิกไนต์จำแนกตามแหล่งผลิต รายปี (หน่วย: ตัน) (2529-ปัจจุบัน)

Production and Consumption of Lignite (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "EGAT_MAE-MOH_Production": 0.3514611114361104,
        "EGAT_MAE-MOH_Consumption": 0.866928753978635,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 0.3514611114361104,
        "Total EGAT_Consumption": 0.866928753978635,
        "Others_Production": 47.484673109156375,
        "Others_Consumption": -2.1347093802286556,
        "Whole Kingdom_Production": 5.158969892606904,
        "Whole Kingdom_Consumption": 0.51302642784642,
        "year": "",
        "month": "Q1"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "EGAT_MAE-MOH_Production": 2.8601089053547057,
        "EGAT_MAE-MOH_Consumption": 0.48561892298124393,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 2.8601089053547057,
        "Total EGAT_Consumption": 0.48561892298124393,
        "Others_Production": 10.507292465482088,
        "Others_Consumption": -15.854517538047357,
        "Whole Kingdom_Production": 3.7698043404339394,
        "Whole Kingdom_Consumption": -1.6179562970020263,
        "year": "",
        "month": "Q2"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "EGAT_MAE-MOH_Production": -3.280290553295791,
        "EGAT_MAE-MOH_Consumption": -3.2766169811018835,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": -3.280290553295791,
        "Total EGAT_Consumption": -3.2766169811018835,
        "Others_Production": -21.479029882800514,
        "Others_Consumption": -11.834110661121985,
        "Whole Kingdom_Production": -5.377860043650026,
        "Whole Kingdom_Consumption": -4.191496426457279,
        "year": "",
        "month": "Q3"
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
startYear String

Quantity of lignite production and consumption classified by sources as quarterly (Unit: Ton) (1986-present)

ปริมาณการผลิตและการใช้ลิกไนต์จำแนกตามแหล่งผลิต รายไตรมาส (หน่วย: ตัน) (2529-ปัจจุบัน)

Production and Consumption of Lignite (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-lignite-production-consumption/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "EGAT_MAE-MOH_Production": -7.519780474186652,
        "EGAT_MAE-MOH_Consumption": -6.7256111579431375,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": -7.519780474186652,
        "Total EGAT_Consumption": -6.7256111579431375,
        "Others_Production": 90.24337828399506,
        "Others_Consumption": 53.87189378308065,
        "Whole Kingdom_Production": -1.693811492074266,
        "Whole Kingdom_Consumption": -2.431279156849706,
        "year": "",
        "month": "JAN"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "EGAT_MAE-MOH_Production": 3.0077653266836655,
        "EGAT_MAE-MOH_Consumption": 1.460427149393985,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 3.0077653266836655,
        "Total EGAT_Consumption": 1.460427149393985,
        "Others_Production": 82.62722269569112,
        "Others_Consumption": -8.239680114248552,
        "Whole Kingdom_Production": 11.405993363054336,
        "Whole Kingdom_Consumption": 0.2898384656862873,
        "year": "",
        "month": "FEB"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "EGAT_MAE-MOH_Production": 7.0792185744004215,
        "EGAT_MAE-MOH_Consumption": 9.16633735308365,
        "EGAT_KRABI_Production": null,
        "EGAT_KRABI_Consumption": null,
        "Total EGAT_Production": 7.0792185744004215,
        "Total EGAT_Consumption": 9.16633735308365,
        "Others_Production": 5.597097976444737,
        "Others_Consumption": -23.47949314889751,
        "Whole Kingdom_Production": 6.86570341105463,
        "Whole Kingdom_Consumption": 3.788424429124995,
        "year": "",
        "month": "MAR"
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-lignite-production-consumption/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of lignite production and consumption classified by sources as monthly (Unit: Ton) (1986-present)

ปริมาณการผลิตและการใช้ลิกไนต์จำแนกตามแหล่งผลิต รายเดือน (หน่วย: ตัน) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (Thousand Tons) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-01T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-01T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-01T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-01T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-01T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-01T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 6307.487,
        "Coal SPP": 2162.0552399999997,
        "Coal Industry*": 15365.20776,
        "Coal Total": 23834.750000000004,
        "Lignite EGAT": 13232.906000000003,
        "Lignite Industry*": 204.78631,
        "Lignite Total": 13437.692309999999,
        "Coal and Lignite Electricity": 21702.44824,
        "Coal and Lignite Industry*": 15569.99407,
        "Coal and Lignite Total": 37272.44230999999,
        "year": 2020,
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 5746.77,
        "Coal SPP": 2152.742,
        "Coal Industry*": 16183.96107,
        "Coal Total": 24083.473069999996,
        "Lignite EGAT": 14244.882999999998,
        "Lignite Industry*": 277.78232,
        "Lignite Total": 14522.665319999996,
        "Coal and Lignite Electricity": 22144.394999999997,
        "Coal and Lignite Industry*": 16461.74339,
        "Coal and Lignite Total": 38606.13838999998,
        "year": 2021,
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 5925.794,
        "Coal SPP": 2685.3129999999996,
        "Coal Industry*": 12921.526739999998,
        "Coal Total": 21532.633739999997,
        "Lignite EGAT": 13658.810999999998,
        "Lignite Industry*": 398.19854000000004,
        "Lignite Total": 14057.009540000003,
        "Coal and Lignite Electricity": 22269.917999999998,
        "Coal and Lignite Industry*": 13319.725279999999,
        "Coal and Lignite Total": 35589.64328,
        "year": 2022,
        "month": ""
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/current

Query Parameters

Parameter Type Default Description
date String

Quantity of coal and lignite consumption classified by sector in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: Thousand Tons)

Consumption of Coal and Lignite Classified by Sector (Thousand Tons) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 3646.898,
        "Coal SPP": 2326.55341,
        "Coal Industry*": 10991.063739999998,
        "Coal Total": 16964.51515,
        "Lignite EGAT": 16004.196,
        "Lignite Industry*": 2017.685,
        "Lignite Total": 18021.881,
        "Coal and Lignite Electricity": 21977.647409999998,
        "Coal and Lignite Industry*": 13008.748739999997,
        "Coal and Lignite Total": 34986.39614999999,
        "year": 2010,
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2011,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 3854.8810000000003,
        "Coal SPP": 1980.60124,
        "Coal Industry*": 10501.69339,
        "Coal Total": 16337.175630000002,
        "Lignite EGAT": 17161.167999999998,
        "Lignite Industry*": 2856.989,
        "Lignite Total": 20018.157,
        "Coal and Lignite Electricity": 22996.650240000003,
        "Coal and Lignite Industry*": 13358.68239,
        "Coal and Lignite Total": 36355.332630000004,
        "year": 2011,
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2012,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 5362.165000000001,
        "Coal SPP": 2051.8676900000005,
        "Coal Industry*": 11200.08537,
        "Coal Total": 18614.11806,
        "Lignite EGAT": 16754.281000000003,
        "Lignite Industry*": 1611.5959999999998,
        "Lignite Total": 18365.877000000004,
        "Coal and Lignite Electricity": 24168.31369,
        "Coal and Lignite Industry*": 12811.681369999998,
        "Coal and Lignite Total": 36979.99506,
        "year": 2012,
        "month": ""
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of coal and lignite consumption classified by sector as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายปี (หน่วย: Thousand Tons) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (Thousand Tons) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Coal IPP": 1019.498,
        "Coal SPP": 634.9003,
        "Coal Industry*": 2482.72386,
        "Coal Total": 4137.12216,
        "Lignite EGAT": 3895.04,
        "Lignite Industry*": 505.12699999999995,
        "Lignite Total": 4400.1669999999995,
        "Coal and Lignite Electricity": 5549.4383,
        "Coal and Lignite Industry*": 2987.85086,
        "Coal and Lignite Total": 8537.28916,
        "year": "",
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Coal IPP": 1011.585,
        "Coal SPP": 556.0543299999999,
        "Coal Industry*": 2956.1047700000004,
        "Coal Total": 4523.7441,
        "Lignite EGAT": 4167.0109999999995,
        "Lignite Industry*": 515.59,
        "Lignite Total": 4682.601,
        "Coal and Lignite Electricity": 5734.6503299999995,
        "Coal and Lignite Industry*": 3471.6947700000005,
        "Coal and Lignite Total": 9206.3451,
        "year": "",
        "month": ""
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "Coal IPP": 1037.1870000000001,
        "Coal SPP": 382.91999,
        "Coal Industry*": 2916.2509200000004,
        "Coal Total": 4336.357910000001,
        "Lignite EGAT": 3868.5020000000004,
        "Lignite Industry*": 422.11800000000005,
        "Lignite Total": 4290.620000000001,
        "Coal and Lignite Electricity": 5288.608990000001,
        "Coal and Lignite Industry*": 3338.3689200000003,
        "Coal and Lignite Total": 8626.977910000001,
        "year": "",
        "month": ""
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
startYear String

Quantity of coal and lignite consumption classified by sector as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายไตรมาส (หน่วย: Thousand Tons) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (Thousand Tons) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Coal IPP": 17.524966127147447,
        "Coal SPP": 11.07082422994873,
        "Coal Industry*": 38.18707945399264,
        "Coal Total": 66.78286981108882,
        "Lignite EGAT": 27.19500828147272,
        "Lignite Industry*": 6.0221219074384535,
        "Lignite Total": 33.21713018891118,
        "Coal and Lignite Electricity": 55.790798638568894,
        "Coal and Lignite Industry*": 44.20920136143109,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "JAN"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Coal IPP": 17.47871368245815,
        "Coal SPP": 9.83885694061639,
        "Coal Industry*": 41.554248957257215,
        "Coal Total": 68.87181958033176,
        "Lignite EGAT": 25.547499975712512,
        "Lignite Industry*": 5.580680443955736,
        "Lignite Total": 31.12818041966825,
        "Coal and Lignite Electricity": 52.86507059878706,
        "Coal and Lignite Industry*": 47.13492940121296,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "FEB"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "Coal IPP": 15.856653513612118,
        "Coal SPP": 10.577524975241563,
        "Coal Industry*": 43.41235634654219,
        "Coal Total": 69.84653483539587,
        "Lignite EGAT": 24.25266318519461,
        "Lignite Industry*": 5.900801979409514,
        "Lignite Total": 30.15346516460412,
        "Coal and Lignite Electricity": 50.68684167404829,
        "Coal and Lignite Industry*": 49.3131583259517,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "MAR"
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-thousand-tons/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of coal and lignite consumption classified by sector as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายเดือน (หน่วย: Thousand Tons) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (KTOE) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-01T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-01T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-01T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-01T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-01T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-01T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 3.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 21.579517476921907,
        "Coal SPP": 7.396940942985787,
        "Coal Industry*": 52.568284230067555,
        "Coal Total": 81.54474264997525,
        "Lignite EGAT": 17.96593370829592,
        "Lignite Industry*": 0.48932364172879433,
        "Lignite Total": 18.455257350024716,
        "Coal and Lignite Electricity": 46.942392128203615,
        "Coal and Lignite Industry*": 53.05760787179635,
        "Coal and Lignite Total": 100,
        "year": 2020,
        "month": ""
    },
    {
        "section": 3.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 19.200485501507313,
        "Coal SPP": 7.192508410722175,
        "Coal Industry*": 54.07209787088989,
        "Coal Total": 80.46509178311935,
        "Lignite EGAT": 18.88671734860356,
        "Lignite Industry*": 0.6481908682770339,
        "Lignite Total": 19.534908216880595,
        "Coal and Lignite Electricity": 45.279711260833054,
        "Coal and Lignite Industry*": 54.72028873916691,
        "Coal and Lignite Total": 100,
        "year": 2021,
        "month": ""
    },
    {
        "section": 3.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "Coal IPP": 21.761186876315257,
        "Coal SPP": 9.861226700489208,
        "Coal Industry*": 47.45149057095887,
        "Coal Total": 79.07390414776334,
        "Lignite EGAT": 19.904814022528626,
        "Lignite Industry*": 1.0212818297080415,
        "Lignite Total": 20.92609585223667,
        "Coal and Lignite Electricity": 51.5272275993331,
        "Coal and Lignite Industry*": 48.47277240066691,
        "Coal and Lignite Total": 100,
        "year": 2022,
        "month": ""
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/current

Query Parameters

Parameter Type Default Description
date String

Quantity of coal and lignite consumption classified by sector in current year and 5 years ago (Unit: ktoe)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: ktoe)

Consumption of Coal and Lignite Classified by Sector (KTOE) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2017,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 30042.26301369863,
        "TANTAWAN": 24543.490410958904,
        "SIRIKIT": 25656.87671232877,
        "JUSMIN": 11854.627397260274,
        "MANORA": 7170.520547945205,
        "SONGKLA": 9102.882191780822,
        "NONGYAO": 8526.30410958904,
        "WASANA": 4480.361643835617,
        "BUALUANG": 8443.369863013699,
        "NASANUN": 1660.2602739726028,
        "OTHERS": 9767.024657534246,
        "TOTAL": 141247.9808219178
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2018,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 28302.144931506846,
        "TANTAWAN": 18790.038356164383,
        "SIRIKIT": 27036.239287671237,
        "JUSMIN": 11653.492684931507,
        "MANORA": 6397.212136986301,
        "SONGKLA": 6878.752356164385,
        "NONGYAO": 8545.562575342465,
        "WASANA": 4648.922876712329,
        "BUALUANG": 8135.50909589041,
        "NASANUN": 1265.8873698630136,
        "OTHERS": 7546.25693150685,
        "TOTAL": 129200.01860273973
    },
    {
        "section": "1.1",
        "update_date": "2022-06-15T00:00:00.000Z",
        "unit": "Barrels/day",
        "year_en": 2019,
        "period_no": 99,
        "period_name": "YTD",
        "ERAWAN": 25748.300465753426,
        "TANTAWAN": 20717.92356164383,
        "SIRIKIT": 30029.0974520548,
        "JUSMIN": 10808.166246575342,
        "MANORA": 5342.320438356165,
        "SONGKLA": 5605.629095890411,
        "NONGYAO": 7052.077369863015,
        "WASANA": 4370.165315068493,
        "BUALUANG": 6876.021753424658,
        "NASANUN": 730.9173698630136,
        "OTHERS": 8608.232739726029,
        "TOTAL": 125888.8518082192
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of coal and lignite consumption classified by sector as yearly (Unit: ktoe) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายปี (หน่วย: ktoe) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (KTOE) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Coal IPP": 16.89143073696316,
        "Coal SPP": 10.5192697213012,
        "Coal Industry*": 41.134713476824686,
        "Coal Total": 68.54541393508904,
        "Lignite EGAT": 25.6095047839972,
        "Lignite Industry*": 5.8450812809137425,
        "Lignite Total": 31.454586064910945,
        "Coal and Lignite Electricity": 53.02020524226157,
        "Coal and Lignite Industry*": 46.97979475773843,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "Q1"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Coal IPP": 15.47369446461276,
        "Coal SPP": 8.505676545366882,
        "Coal Industry*": 45.2180113548188,
        "Coal Total": 69.19738236479843,
        "Lignite EGAT": 25.29446412901587,
        "Lignite Industry*": 5.508153506185679,
        "Lignite Total": 30.80261763520155,
        "Coal and Lignite Electricity": 49.273835138995516,
        "Coal and Lignite Industry*": 50.726164861004484,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "Q2"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "Q3",
        "Coal IPP": 16.82018534787542,
        "Coal SPP": 6.209859172171077,
        "Coal Industry*": 47.29318916966006,
        "Coal Total": 70.32323368970656,
        "Lignite EGAT": 24.895780030343975,
        "Lignite Industry*": 4.780986279949459,
        "Lignite Total": 29.676766310293434,
        "Coal and Lignite Electricity": 47.92582455039047,
        "Coal and Lignite Industry*": 52.07417544960952,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "Q3"
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
startYear String

Quantity of coal and lignite consumption classified by sector as quarterly (Unit: ktoe) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายไตรมาส (หน่วย: ktoe) (2529-ปัจจุบัน)

Consumption of Coal and Lignite Classified by Sector (KTOE) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Coal IPP": 17.524966127147447,
        "Coal SPP": 11.07082422994873,
        "Coal Industry*": 38.18707945399264,
        "Coal Total": 66.78286981108882,
        "Lignite EGAT": 27.19500828147272,
        "Lignite Industry*": 6.0221219074384535,
        "Lignite Total": 33.21713018891118,
        "Coal and Lignite Electricity": 55.790798638568894,
        "Coal and Lignite Industry*": 44.20920136143109,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "JAN"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Coal IPP": 17.47871368245815,
        "Coal SPP": 9.83885694061639,
        "Coal Industry*": 41.554248957257215,
        "Coal Total": 68.87181958033176,
        "Lignite EGAT": 25.547499975712512,
        "Lignite Industry*": 5.580680443955736,
        "Lignite Total": 31.12818041966825,
        "Coal and Lignite Electricity": 52.86507059878706,
        "Coal and Lignite Industry*": 47.13492940121296,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "FEB"
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2010,
        "year_remark": "",
        "period_no": 3,
        "period_name": "MAR",
        "Coal IPP": 15.856653513612118,
        "Coal SPP": 10.577524975241563,
        "Coal Industry*": 43.41235634654219,
        "Coal Total": 69.84653483539587,
        "Lignite EGAT": 24.25266318519461,
        "Lignite Industry*": 5.900801979409514,
        "Lignite Total": 30.15346516460412,
        "Coal and Lignite Electricity": 50.68684167404829,
        "Coal and Lignite Industry*": 49.3131583259517,
        "Coal and Lignite Total": 100,
        "year": "",
        "month": "MAR"
    },
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/consumption-of-coal-and-lignite-ktoe/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of coal and lignite consumption classified by sector as monthly (Unit: ktoe) (1986-present)

ปริมาณการใช้ถ่านหิน/ลิกไนต์จำแนกตามสาขา รายเดือน (หน่วย: ktoe) (2529-ปัจจุบัน)

Import

Coal Import (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-01T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-01T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-import/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-01T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-01T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-01T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-01T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
            "section": 1.1,
            "update_date": "2025-07-17T00:00:00.000Z",
            "unit": "1,000 Tons/Million Bahts",
            "year_en": 2020,
            "period_no": 99,
            "period_name": "YTD",
            "BRIQUETTES Quantity (1,000 Tons)": 0.000368,
            "BRIQUETTES Value (Million Bahts) ": 0.10934,
            "ANTHRACITE Quantity (1,000 Tons)": 153.84426900000003,
            "ANTHRACITE Value (Million Bahts) ": 578.614021,
            "BITUMINOUS Quantity (1,000 Tons)": 8148.581967,
            "BITUMINOUS Value (Million Bahts) ": 19369.020593,
            "LIGNITE Quantity (1,000 Tons)": 136.132978,
            "LIGNITE Value (Million Bahts) ": 132.287991,
            "COKING COAL Quantity (1,000 Tons)": 17.307479999999998,
            "COKING COAL Value (Million Bahts) ": 234.77013900000003,
            "OTHER COAL Quantity (1,000 Tons)": 15378.869956999999,
            "OTHER COAL Value (Million Bahts) ": 21551.277414,
            "Total Quantity (1,000 Tons)": 23834.737019000004,
            "Total Value (Million Bahts) ": 41866.07949799999,
            "year": 2020,
            "month": ""
        },
        {
            "section": 1.1,
            "update_date": "2025-07-17T00:00:00.000Z",
            "unit": "1,000 Tons/Million Bahts",
            "year_en": 2021,
            "period_no": 99,
            "period_name": "YTD",
            "BRIQUETTES Quantity (1,000 Tons)": 0,
            "BRIQUETTES Value (Million Bahts) ": 0,
            "ANTHRACITE Quantity (1,000 Tons)": 108.16793799999998,
            "ANTHRACITE Value (Million Bahts) ": 471.594149,
            "BITUMINOUS Quantity (1,000 Tons)": 8655.017213,
            "BITUMINOUS Value (Million Bahts) ": 23808.707731000002,
            "LIGNITE Quantity (1,000 Tons)": 276.410159,
            "LIGNITE Value (Million Bahts) ": 266.3547760000001,
            "COKING COAL Quantity (1,000 Tons)": 14.322933,
            "COKING COAL Value (Million Bahts) ": 269.171587,
            "OTHER COAL Quantity (1,000 Tons)": 15029.55483,
            "OTHER COAL Value (Million Bahts) ": 33744.360808,
            "Total Quantity (1,000 Tons)": 24083.473073000005,
            "Total Value (Million Bahts) ": 58560.18905100001,
            "year": 2021,
            "month": ""
        },
        {
            "section": 1.1,
            "update_date": "2025-07-17T00:00:00.000Z",
            "unit": "1,000 Tons/Million Bahts",
            "year_en": 2022,
            "period_no": 99,
            "period_name": "YTD",
            "BRIQUETTES Quantity (1,000 Tons)": 0.00007599999999999999,
            "BRIQUETTES Value (Million Bahts) ": 0.08135700000000001,
            "ANTHRACITE Quantity (1,000 Tons)": 96.633567,
            "ANTHRACITE Value (Million Bahts) ": 1223.494285,
            "BITUMINOUS Quantity (1,000 Tons)": 6051.506405,
            "BITUMINOUS Value (Million Bahts) ": 27302.498089999997,
            "LIGNITE Quantity (1,000 Tons)": 255.82142299999998,
            "LIGNITE Value (Million Bahts) ": 294.909431,
            "COKING COAL Quantity (1,000 Tons)": 21.391047000000004,
            "COKING COAL Value (Million Bahts) ": 451.19575,
            "OTHER COAL Quantity (1,000 Tons)": 15107.281221000005,
            "OTHER COAL Value (Million Bahts) ": 66067.470294,
            "Total Quantity (1,000 Tons)": 21532.633738999997,
            "Total Value (Million Bahts) ": 95339.649207,
            "year": 2022,
            "month": ""
        },
        ...
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/current

Query Parameters

Parameter Type Default Description
date String

Quantity and Value of coal import classified by type in current year and 5 years ago (Quantity Unit: Thousand Tons) (Value Unit: Million Bahts)

ปริมาณและมูลค่าการนำเข้าถ่านหินจำแนกตามชนิดถ่านหิน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วยปริมาณ: พันตัน) (หน่วยมูลค่า: ล้านบาท)

Coal Import (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-import/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-17T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2010,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "BRIQUETTES Quantity (1,000 Tons)": 0.00135,
      "BRIQUETTES Value (Million Bahts) ": 0.206946,
      "ANTHRACITE Quantity (1,000 Tons)": 367.817098,
      "ANTHRACITE Value (Million Bahts) ": 1539.639008,
      "BITUMINOUS Quantity (1,000 Tons)": 6619.169522,
      "BITUMINOUS Value (Million Bahts) ": 15548.323833999999,
      "LIGNITE Quantity (1,000 Tons)": 0.07864999999999998,
      "LIGNITE Value (Million Bahts) ": 1.21855,
      "COKING COAL Quantity (1,000 Tons)": 208.729106,
      "COKING COAL Value (Million Bahts) ": 2921.974885,
      "OTHER COAL Quantity (1,000 Tons)": 9761.028339999999,
      "OTHER COAL Value (Million Bahts) ": 19301.601157999998,
      "Total Quantity (1,000 Tons)": 16956.824066,
      "Total Value (Million Bahts) ": 39312.96438099999,
      "year": 2010,
      "month": ""
  },
  {
      "section": 1.1,
      "update_date": "2025-07-17T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2011,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "BRIQUETTES Quantity (1,000 Tons)": 0.000029999999999999997,
      "BRIQUETTES Value (Million Bahts) ": 0.012558,
      "ANTHRACITE Quantity (1,000 Tons)": 210.70106900000005,
      "ANTHRACITE Value (Million Bahts) ": 1407.259737,
      "BITUMINOUS Quantity (1,000 Tons)": 4484.690327,
      "BITUMINOUS Value (Million Bahts) ": 13077.727516000003,
      "LIGNITE Quantity (1,000 Tons)": 0.015434,
      "LIGNITE Value (Million Bahts) ": 0.264775,
      "COKING COAL Quantity (1,000 Tons)": 108.16378499999999,
      "COKING COAL Value (Million Bahts) ": 1667.5298850000001,
      "OTHER COAL Quantity (1,000 Tons)": 11523.976424,
      "OTHER COAL Value (Million Bahts) ": 25973.545562,
      "Total Quantity (1,000 Tons)": 16327.547069,
      "Total Value (Million Bahts) ": 42126.34003300002,
      "year": 2011,
      "month": ""
  },
  {
      "section": 1.1,
      "update_date": "2025-07-17T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2012,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "BRIQUETTES Quantity (1,000 Tons)": 0.100399,
      "BRIQUETTES Value (Million Bahts) ": 1.923958,
      "ANTHRACITE Quantity (1,000 Tons)": 138.063567,
      "ANTHRACITE Value (Million Bahts) ": 808.049247,
      "BITUMINOUS Quantity (1,000 Tons)": 7326.828242,
      "BITUMINOUS Value (Million Bahts) ": 19864.891003999997,
      "LIGNITE Quantity (1,000 Tons)": 0.13051600000000002,
      "LIGNITE Value (Million Bahts) ": 1.9780890000000002,
      "COKING COAL Quantity (1,000 Tons)": 36.018981,
      "COKING COAL Value (Million Bahts) ": 647.622402,
      "OTHER COAL Quantity (1,000 Tons)": 11104.517005,
      "OTHER COAL Value (Million Bahts) ": 25295.681916,
      "Total Quantity (1,000 Tons)": 18605.658710000003,
      "Total Value (Million Bahts) ": 46620.14661599999,
      "year": 2012,
      "month": ""
  },
  ...
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity and Value of coal import classified by type as yearly (Quantity Unit: Thousand Tons) (Value Unit: Million Bahts) (1986-present)

ปริมาณและมูลค่าการนำเข้าถ่านหินจำแนกตามชนิดถ่านหิน รายปี (หน่วยปริมาณ: พันตัน) (หน่วยมูลค่า: ล้านบาท) (2529-ปัจจุบัน)

Coal Import (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-import/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter": "1", "endQuarter": "1", "startYear": "2010", "endYear": "2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 1,
    "period_name": "Q1",
    "BRIQUETTES Quantity (1,000 Tons)": 0.0009,
    "BRIQUETTES Value (Million Bahts) ": 0.143481,
    "ANTHRACITE Quantity (1,000 Tons)": 106.200716,
    "ANTHRACITE Value (Million Bahts) ": 388.027125,
    "BITUMINOUS Quantity (1,000 Tons)": 1409.5496269999999,
    "BITUMINOUS Value (Million Bahts) ": 3193.157837,
    "LIGNITE Quantity (1,000 Tons)": 0.018869999999999998,
    "LIGNITE Value (Million Bahts) ": 0.270602,
    "COKING COAL Quantity (1,000 Tons)": 89.77781399999999,
    "COKING COAL Value (Million Bahts) ": 1165.781457,
    "OTHER COAL Quantity (1,000 Tons)": 2271.361867,
    "OTHER COAL Value (Million Bahts) ": 4332.484297,
    "Total Quantity (1,000 Tons)": 3876.9097939999997,
    "Total Value (Million Bahts) ": 9079.864799,
    "year": "",
    "month": "Q1"
  },
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 2,
    "period_name": "Q2",
    "BRIQUETTES Quantity (1,000 Tons)": 0.0004,
    "BRIQUETTES Value (Million Bahts) ": 0.062688,
    "ANTHRACITE Quantity (1,000 Tons)": 83.027447,
    "ANTHRACITE Value (Million Bahts) ": 325.41408,
    "BITUMINOUS Quantity (1,000 Tons)": 2225.144644,
    "BITUMINOUS Value (Million Bahts) ": 5205.343973999999,
    "LIGNITE Quantity (1,000 Tons)": 0.03942,
    "LIGNITE Value (Million Bahts) ": 0.618227,
    "COKING COAL Quantity (1,000 Tons)": 60.037945,
    "COKING COAL Value (Million Bahts) ": 862.525588,
    "OTHER COAL Quantity (1,000 Tons)": 2335.0503240000003,
    "OTHER COAL Value (Million Bahts) ": 4610.686698,
    "Total Quantity (1,000 Tons)": 4703.300180000001,
    "Total Value (Million Bahts) ": 11004.651254999999,
    "year": "",
    "month": "Q2"
  },
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 3,
    "period_name": "Q3",
    "BRIQUETTES Quantity (1,000 Tons)": 0,
    "BRIQUETTES Value (Million Bahts) ": 0,
    "ANTHRACITE Quantity (1,000 Tons)": 86.643682,
    "ANTHRACITE Value (Million Bahts) ": 379.01273100000003,
    "BITUMINOUS Quantity (1,000 Tons)": 1679.8361650000002,
    "BITUMINOUS Value (Million Bahts) ": 4093.507584,
    "LIGNITE Quantity (1,000 Tons)": 0.019899999999999998,
    "LIGNITE Value (Million Bahts) ": 0.250626,
    "COKING COAL Quantity (1,000 Tons)": 8.255582,
    "COKING COAL Value (Million Bahts) ": 171.05559599999998,
    "OTHER COAL Quantity (1,000 Tons)": 2008.908625,
    "OTHER COAL Value (Million Bahts) ": 4030.664764,
    "Total Quantity (1,000 Tons)": 3783.6639540000006,
    "Total Value (Million Bahts) ": 8674.491300999998,
    "year": "",
    "month": "Q3"
  },
  ...
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
startYear String

Quantity and Value of coal import classified by type as quarterly (Quantity Unit: Thousand Tons) (Value Unit: Million Bahts) (1986-present)

ปริมาณและมูลค่าการนำเข้าถ่านหินจำแนกตามชนิดถ่านหิน รายไตรมาส (หน่วยปริมาณ: พันตัน) (หน่วยมูลค่า: ล้านบาท) (2529-ปัจจุบัน)

Coal Import (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/coalLignite/coal-import/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2010\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2010","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2010"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 1,
    "period_name": "JAN",
    "BRIQUETTES Quantity (1,000 Tons)": 0.0004,
    "BRIQUETTES Value (Million Bahts) ": 0.063997,
    "ANTHRACITE Quantity (1,000 Tons)": 65.814961,
    "ANTHRACITE Value (Million Bahts) ": 206.17487,
    "BITUMINOUS Quantity (1,000 Tons)": 458.835895,
    "BITUMINOUS Value (Million Bahts) ": 1074.833149,
    "LIGNITE Quantity (1,000 Tons)": 0.01775,
    "LIGNITE Value (Million Bahts) ": 0.203761,
    "COKING COAL Quantity (1,000 Tons)": 2.7937489999999996,
    "COKING COAL Value (Million Bahts) ": 57.106861,
    "OTHER COAL Quantity (1,000 Tons)": 732.6112340000001,
    "OTHER COAL Value (Million Bahts) ": 1363.363883,
    "Total Quantity (1,000 Tons)": 1260.073989,
    "Total Value (Million Bahts) ": 2701.746521,
    "year": "",
    "month": "JAN"
  },
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 2,
    "period_name": "FEB",
    "BRIQUETTES Quantity (1,000 Tons)": 0.0002,
    "BRIQUETTES Value (Million Bahts) ": 0.031586,
    "ANTHRACITE Quantity (1,000 Tons)": 18.76362,
    "ANTHRACITE Value (Million Bahts) ": 71.967226,
    "BITUMINOUS Quantity (1,000 Tons)": 660.1088639999999,
    "BITUMINOUS Value (Million Bahts) ": 1404.608404,
    "LIGNITE Quantity (1,000 Tons)": 0.00102,
    "LIGNITE Value (Million Bahts) ": 0.049583,
    "COKING COAL Quantity (1,000 Tons)": 35.767075,
    "COKING COAL Value (Million Bahts) ": 415.505172,
    "OTHER COAL Quantity (1,000 Tons)": 634.808198,
    "OTHER COAL Value (Million Bahts) ": 1207.395927,
    "Total Quantity (1,000 Tons)": 1349.4489769999998,
    "Total Value (Million Bahts) ": 3099.557898,
    "year": "",
    "month": "FEB"
  },
  {
    "section": 1.1,
    "update_date": "2025-07-17T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2010,
    "year_remark": "",
    "period_no": 3,
    "period_name": "MAR",
    "BRIQUETTES Quantity (1,000 Tons)": 0.0003,
    "BRIQUETTES Value (Million Bahts) ": 0.047898,
    "ANTHRACITE Quantity (1,000 Tons)": 21.622135,
    "ANTHRACITE Value (Million Bahts) ": 109.885029,
    "BITUMINOUS Quantity (1,000 Tons)": 290.604868,
    "BITUMINOUS Value (Million Bahts) ": 713.716284,
    "LIGNITE Quantity (1,000 Tons)": 0.0001,
    "LIGNITE Value (Million Bahts) ": 0.017258,
    "COKING COAL Quantity (1,000 Tons)": 51.216989999999996,
    "COKING COAL Value (Million Bahts) ": 693.169424,
    "OTHER COAL Quantity (1,000 Tons)": 903.942435,
    "OTHER COAL Value (Million Bahts) ": 1761.724487,
    "Total Quantity (1,000 Tons)": 1267.386828,
    "Total Value (Million Bahts) ": 3278.56038,
    "year": "",
    "month": "MAR"
  },
  ...
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/coalLignite/coal-import/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity and Value of coal import classified by type as monthly (Quantity Unit: Thousand Tons) (Value Unit: Million Bahts) (1986-present)

ปริมาณและมูลค่าการนำเข้าถ่านหินจำแนกตามชนิดถ่านหิน รายเดือน (หน่วยปริมาณ: พันตัน) (หน่วยมูลค่า: ล้านบาท) (2529-ปัจจุบัน)

Generation Capacity

Generation Capacity (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-15T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-15T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/generation-capacity/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-15T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-15T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-15T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-15T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2023,
        "period_no": 1,
        "period_name": "JAN",
        "EGAT": 16920.32535,
        "IPP": 16748.5,
        "SPP": 9241.08,
        "VSPP": 4239,
        "IMPORTED": 6234.9,
        "Total": 53383.80535
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2023,
        "period_no": 2,
        "period_name": "FEB",
        "EGAT": 16920.32535,
        "IPP": 16748.5,
        "SPP": 9241.08,
        "VSPP": 4250.889700000001,
        "IMPORTED": 6234.9,
        "Total": 53395.69505
    },
    "total": 62
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/current

Query Parameters

Parameter Type Default Description
date String

Quantity of generation capacity classified by producer in current year and 2 years ago (Unit: MW)

ปริมาณกำลังผลิตไฟฟ้าจำแนกตามผู้ผลิต ของปีปัจจุบันและย้อนหลัง 2 ปี (หน่วย: เมกะวัตต์)

Generation Capacity (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/generation-capacity/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Megawatt (MW)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "EGAT": 195036.30419999998,
      "IPP": 226907,
      "SPP": 110899.82999999999,
      "VSPP": 51505.11113,
      "IMPORTED": 74818.79999999999,
      "Total": 659167.0453299998
  },
  {
      "section": 2.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "EGAT": 29.588297167125315,
      "IPP": 34.42329248823463,
      "SPP": 16.824237617109645,
      "VSPP": 7.8136659735795675,
      "IMPORTED": 11.350506753950864,
      "Total": 99.99999999999997
  }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of generation capacity classified by producer as yearly (Unit: MW) (2001-present)

ปริมาณกำลังผลิตไฟฟ้าจำแนกตามผู้ผลิต รายปี (หน่วย: เมกะวัตต์) (2544-ปัจจุบัน)

Generation Capacity (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/generation-capacity/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "EGAT": 48711.076049999996,
        "IPP": 54270.5,
        "SPP": 28234.11,
        "VSPP": 12751.16634,
        "IMPORTED": 18704.699999999997,
        "Total": 162671.55238999997
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "EGAT": 48759.076049999996,
        "IPP": 56920.5,
        "SPP": 27746.439999999995,
        "VSPP": 12925.031189999998,
        "IMPORTED": 18704.699999999997,
        "Total": 165055.74723999997
    },
    "total": 10
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of generation gapacity classified by producer as quarterly (Unit: MW) (2001-present)

ปริมาณกำลังผลิตไฟฟ้าจำแนกตามผู้ผลิต รายไตรมาส (หน่วย: เมกะวัตต์) (2544-ปัจจุบัน)

Generation Capacity (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/generation-capacity/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "EGAT": 16237.025349999998,
        "IPP": 17648.5,
        "SPP": 9451.37,
        "VSPP": 4248.489509999999,
        "IMPORTED": 6234.9,
        "Total": 53820.28486000001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Megawatt (MW)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "EGAT": 16237.025349999998,
        "IPP": 17648.5,
        "SPP": 9451.37,
        "VSPP": 4251.711730000001,
        "IMPORTED": 6234.9,
        "Total": 53823.50708
    },
    "total": 26
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/generation-capacity/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of generation capacity classified by producer as monthly (Unit: MW) (2001-present)

ปริมาณกำลังผลิตไฟฟ้าจำแนกตามผู้ผลิต รายเดือน (หน่วย: เมกะวัตต์) (2544-ปัจจุบัน)

Generation (on EGAT system)

Power Generation by Type of Fuel (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-15T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-15T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-by-type-of-fuel/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-15T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-15T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-15T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-15T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2020,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 42906.67600000001,
      "Lignite": 18238.542999999998,
      "Fuel Oil": 624.077,
      "Diesel": 97.484,
      "Geothermal": 1.0950000000000002,
      "Hydropower": 4539.848,
      "EGAT NRE*": 81.89800000000001,
      "Imported": 29550.57,
      "DEDP": 0,
      "IPP": 45268.68,
      "SPP": 53466.865000000005,
      "VSPP": 11247.513069000006,
      "Total": 206023.249069
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2021,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 39028.475,
      "Lignite": 19526.792999999998,
      "Fuel Oil": 421.935,
      "Diesel": 294.437,
      "Geothermal": 1.45,
      "Hydropower": 4539.992,
      "EGAT NRE*": 79.163,
      "Imported": 33356.288,
      "DEDP": 0,
      "IPP": 47708.822,
      "SPP": 52975.119000000006,
      "VSPP": 11784.294424,
      "Total": 209716.76842399998
  },
  "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/current

Query Parameters

Parameter Type Default Description
date String

Quantity of power generation classified by fuel type and producer in current year and 5 years ago (Unit: GWh)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิงและผู้ผลิต ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Power Generation by Type of Fuel (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-by-type-of-fuel/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2024,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 45626.191,
      "Lignite": 17229.032,
      "Fuel Oil": 39.4,
      "Diesel": 236.978,
      "Geothermal": 1.2389999999999999,
      "Hydropower": 6414.794,
      "EGAT NRE*": 206.88199999999998,
      "Imported": 35985.043000000005,
      "DEDP": 0,
      "IPP": 64586.32399999999,
      "SPP": 53229.937,
      "VSPP": 11956.595726,
      "Total": 235512.41572600004
  },
  {
      "section": 2.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 19.37315740206344,
      "Lignite": 7.315551473959066,
      "Fuel Oil": 0.016729478944260315,
      "Diesel": 0.10062229597088632,
      "Geothermal": 0.0005260869140085922,
      "Hydropower": 2.7237604354001883,
      "EGAT NRE*": 0.08784335185143308,
      "Imported": 15.279467491797009,
      "DEDP": 0,
      "IPP": 27.423744859014587,
      "SPP": 22.601754067152367,
      "VSPP": 5.076843056932737,
      "Total": 99.99999999999999
  },
  "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of power generation classified by fuel type and producer as yearly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิงและผู้ผลิต รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation by Type of Fuel (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2024,
      "period_no": 1,
      "period_name": "Q1",
      "Natural Gas": 12449.601,
      "Lignite": 4345.221,
      "Fuel Oil": 4.37,
      "Diesel": 10.318000000000001,
      "Geothermal": 0.366,
      "Hydropower": 1923.801,
      "EGAT NRE*": 41.16,
      "Imported": 6881.59,
      "DEDP": 0,
      "IPP": 16254.026000000002,
      "SPP": 13134.865,
      "VSPP": 3288.937771,
      "Total": 58334.255771000004
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2024,
      "period_no": 2,
      "period_name": "Q2",
      "Natural Gas": 12147.198,
      "Lignite": 4249.1849999999995,
      "Fuel Oil": 10.78,
      "Diesel": 10.554,
      "Geothermal": 0.185,
      "Hydropower": 1804.931,
      "EGAT NRE*": 51.379999999999995,
      "Imported": 8398.727,
      "DEDP": 0,
      "IPP": 20486.426,
      "SPP": 13532.091,
      "VSPP": 3030.50642,
      "Total": 63721.96341999999
  },
  "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of power generation classified by fuel type and producer as quarterly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิงและผู้ผลิต รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation by Type of Fuel (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-by-type-of-fuel/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2024,
      "period_no": 1,
      "period_name": "JAN",
      "Natural Gas": 4021.399,
      "Lignite": 1391.178,
      "Fuel Oil": 0,
      "Diesel": 1.497,
      "Geothermal": 0.141,
      "Hydropower": 649.653,
      "EGAT NRE*": 13.217,
      "Imported": 2143.292,
      "DEDP": 0,
      "IPP": 4627.931,
      "SPP": 4328.731,
      "VSPP": 1123.713614,
      "Total": 18300.752614
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "GWh",
      "year_en": 2024,
      "period_no": 2,
      "period_name": "FEB",
      "Natural Gas": 3908.902,
      "Lignite": 1501.359,
      "Fuel Oil": 4.37,
      "Diesel": 5.016,
      "Geothermal": 0.122,
      "Hydropower": 625.162,
      "EGAT NRE*": 13.419,
      "Imported": 2050.547,
      "DEDP": 0,
      "IPP": 5358.072,
      "SPP": 4104.034,
      "VSPP": 1061.5600780000004,
      "Total": 18632.563078
  },
  "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-by-type-of-fuel/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of power generation classified by fuel type and producer as monthly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิงและผู้ผลิต รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-15T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-15T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-15T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-15T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-15T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-15T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2020,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 113859.15305300005,
      "Coal & Lignite": 36823.16978698,
      "Fuel Oil": 624.077,
      "Diesel": 97.48400000000001,
      "Hydropower": 4539.848,
      "Imported": 29550.570719000003,
      "Renewable Energy": 20528.947117000007,
      "Total": 206023.24906900033
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2021,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 113112.85925799998,
      "Coal & Lignite": 36064.624257,
      "Fuel Oil": 421.93500000000006,
      "Diesel": 294.437,
      "Hydropower": 4539.992,
      "Imported": 33356.286968,
      "Renewable Energy": 21926.63438782001,
      "Total": 209716.76842399992
  },
  "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of power generation classified by fuel type in current year and 5 years ago (Unit: GWh)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Power Generation Classified by Fuel Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 136372.86669198,
        "Coal & Lignite": 33259.464237,
        "Fuel Oil": 39.4,
        "Diesel": 236.978,
        "Hydropower": 6414.794,
        "Imported": 35985.04555,
        "Renewable Energy": 23203.873759000002,
        "Total": 235512.41572600004
    },
    {
        "section": 2.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 57.90474624091113,
        "Coal & Lignite": 14.122170219550013,
        "Fuel Oil": 0.016729478944260315,
        "Diesel": 0.10062229597088632,
        "Hydropower": 2.723760435400188,
        "Imported": 15.27946857454247,
        "Renewable Energy": 9.852505519707233,
        "Total": 99.99999999999997
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of power generation classified by fuel type as yearly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "Q1",
      "Natural Gas": 34812.952704,
      "Coal & Lignite": 8579.335205,
      "Fuel Oil": 4.37,
      "Diesel": 10.318000000000001,
      "Hydropower": 1923.801,
      "Imported": 6881.592119000001,
      "Renewable Energy": 6121.891352000001,
      "Total": 58334.255771000004
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "Q2",
      "Natural Gas": 39117.384970000014,
      "Coal & Lignite": 8440.520154,
      "Fuel Oil": 10.78,
      "Diesel": 10.553999999999998,
      "Hydropower": 1804.931,
      "Imported": 8398.727953,
      "Renewable Energy": 5939.06716,
      "Total": 63721.96342000001
  },
  "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of power generation classified by fuel type as quarterly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "JAN",
      "Natural Gas": 10801.564309,
      "Coal & Lignite": 2596.17918,
      "Fuel Oil": 0,
      "Diesel": 1.497,
      "Hydropower": 649.653,
      "Imported": 2143.2922970000004,
      "Renewable Energy": 2108.568436000001,
      "Total": 18300.752614
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "FEB",
      "Natural Gas": 11020.983251000001,
      "Coal & Lignite": 2926.9157029999997,
      "Fuel Oil": 4.37,
      "Diesel": 5.016,
      "Hydropower": 625.162,
      "Imported": 2050.5478829999997,
      "Renewable Energy": 1999.5697829999997,
      "Total": 18632.563077999996
  },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of power generation classified by fuel type as monthly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Major Sources) - Graph (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-15T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-15T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-15T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-15T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-15T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-15T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2020,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 113859.15305300003,
      "Coal & Lignite": 36823.169786980005,
      "Oil": 721.5609999999999,
      "Hydropower": 4539.848,
      "Imported": 29550.570719000007,
      "Renewable Energy": 20528.947116999956,
      "Total": 206023.24906900048
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2021,
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 113112.859258,
      "Coal & Lignite": 36064.62425699999,
      "Oil": 716.372,
      "Hydropower": 4539.992,
      "Imported": 33356.286967999986,
      "Renewable Energy": 21926.63438782,
      "Total": 209716.76842399992
  },
  "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/current

Query Parameters

Parameter Type Default Description
date String

Quantity of power generation classified by fuel type (major sources) in current year and 5 years ago (Unit: GWh)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (เชื้อเพลิงหลัก) ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Power Generation Classified by Fuel Type (Major Sources) - Graph (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 136372.86669198,
      "Coal & Lignite": 33259.464237,
      "Oil": 276.37800000000004,
      "Hydropower": 6414.794,
      "Imported": 35985.04555,
      "Renewable Energy": 23203.873758999995,
      "Total": 235512.41572599998
  },
  {
      "section": 2.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Natural Gas": 57.9047462409,
      "Coal & Lignite": 14.1221702196,
      "Oil": 0.1173517749,
      "Hydropower": 2.7237604354,
      "Imported": 15.2794685745,
      "Renewable Energy": 9.8525055197,
      "Total": 100
  },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of power generation classified by fuel type (major sources) as yearly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (เชื้อเพลิงหลัก) รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Major Sources) - Graph (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Natural Gas": 34812.952704,
        "Coal & Lignite": 8579.335205,
        "Oil": 14.687999999999999,
        "Hydropower": 1923.801,
        "Imported": 6881.592119000001,
        "Renewable Energy": 6121.891352000001,
        "Total": 58334.255771000004
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Natural Gas": 39117.384970000014,
        "Coal & Lignite": 8440.520154,
        "Oil": 21.333999999999996,
        "Hydropower": 1804.931,
        "Imported": 8398.727953,
        "Renewable Energy": 5939.06716,
        "Total": 63721.96342
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of power generation classified by fuel type (major sources) as quarterly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (เชื้อเพลิงหลัก) รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Major Sources) - Graph (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "JAN",
      "Natural Gas": 10801.564309,
      "Coal & Lignite": 2596.17918,
      "Oil": 1.497,
      "Hydropower": 649.653,
      "Imported": 2143.2922970000004,
      "Renewable Energy": 2108.568436000001,
      "Total": 18300.752614
  },
  {
      "section": 1.1,
      "update_date": "2025-07-15T00:00:00.000Z",
      "unit": "Gigawatt hours (GWh)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "FEB",
      "Natural Gas": 11020.983251000001,
      "Coal & Lignite": 2926.9157029999997,
      "Oil": 9.386,
      "Hydropower": 625.162,
      "Imported": 2050.5478829999997,
      "Renewable Energy": 1999.569783,
      "Total": 18632.563078
  },
  "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-major-sources/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of power generation classified by fuel type (major sources) as monthly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (เชื้อเพลิงหลัก) รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Detail) - Graph (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-15T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-15T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-15T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-15T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-15T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-15T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 113859.15305299996,
        "Coal & Lignite Lignite": 18238.542999999998,
        "Coal & Lignite Coal": 18584.62678697999,
        "Coal & Lignite Total": 36823.169786980005,
        "Oil Fuel Oil": 624.077,
        "Oil Diesel": 97.48400000000001,
        "Oil Total": 721.561,
        "Hydropower": 4539.848000000001,
        "Imported": 29550.570719000003,
        "Renewable Energy": 20528.947117000003,
        "Total": 206023.24906900033
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 113112.85925799995,
        "Coal & Lignite Lignite": 19526.793,
        "Coal & Lignite Coal": 16537.831256999998,
        "Coal & Lignite Total": 36064.624257,
        "Oil Fuel Oil": 421.93499999999995,
        "Oil Diesel": 294.43699999999995,
        "Oil Total": 716.372,
        "Hydropower": 4539.991999999999,
        "Imported": 33356.28696800001,
        "Renewable Energy": 21926.634387820002,
        "Total": 209716.76842399983
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/current

Query Parameters

Parameter Type Default Description
date String

Quantity of power generation classified by fuel type (detail) in current year and 5 years ago (Unit: GWh)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (รายละเอียด) ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Power Generation Classified by Fuel Type (Detail) - Graph (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 136372.86669198002,
        "Coal & Lignite Lignite": 17229.032000000003,
        "Coal & Lignite Coal": 16030.432236999999,
        "Coal & Lignite Total": 33259.464237,
        "Oil Fuel Oil": 39.4,
        "Oil Diesel": 236.978,
        "Oil Total": 276.378,
        "Hydropower": 6414.794,
        "Imported": 35985.045549999995,
        "Renewable Energy": 23203.873759000002,
        "Total": 235512.41572599998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Natural Gas": 57.9047462409,
        "Coal & Lignite Lignite": 7.315551474,
        "Coal & Lignite Coal": 6.8066187456,
        "Coal & Lignite Total": 14.1221702196,
        "Oil Fuel Oil": 0.0167294789,
        "Oil Diesel": 0.100622296,
        "Oil Total": 0.1173517749,
        "Hydropower": 2.7237604354,
        "Imported": 15.2794685745,
        "Renewable Energy": 9.8525055197,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of power generation classified by fuel type (detail) as yearly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (รายละเอียด) รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Detail) - Graph (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Natural Gas": 34812.952703999996,
        "Coal & Lignite Lignite": 4345.221,
        "Coal & Lignite Coal": 4234.114205,
        "Coal & Lignite Total": 8579.335205,
        "Oil Fuel Oil": 4.37,
        "Oil Diesel": 10.318000000000001,
        "Oil Total": 14.688,
        "Hydropower": 1923.801,
        "Imported": 6881.592119000001,
        "Renewable Energy": 6121.891352000001,
        "Total": 58334.25577100001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Natural Gas": 39117.38497000001,
        "Coal & Lignite Lignite": 4249.1849999999995,
        "Coal & Lignite Coal": 4191.335154,
        "Coal & Lignite Total": 8440.520154,
        "Oil Fuel Oil": 10.78,
        "Oil Diesel": 10.554,
        "Oil Total": 21.334,
        "Hydropower": 1804.931,
        "Imported": 8398.727953,
        "Renewable Energy": 5939.067159999999,
        "Total": 63721.963420000015
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of power generation classified by fuel type (detail) as quarterly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (รายละเอียด) รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Power Generation Classified by Fuel Type (Detail) - Graph (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Natural Gas": 10801.564309,
        "Coal & Lignite Lignite": 1391.178,
        "Coal & Lignite Coal": 1205.0011800000002,
        "Coal & Lignite Total": 2596.17918,
        "Oil Fuel Oil": 0,
        "Oil Diesel": 1.497,
        "Oil Total": 1.497,
        "Hydropower": 649.653,
        "Imported": 2143.2922970000004,
        "Renewable Energy": 2108.5684360000005,
        "Total": 18300.752614
    },
    {
        "section": 1.1,
        "update_date": "2025-07-15T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Natural Gas": 11020.983251000001,
        "Coal & Lignite Lignite": 1501.359,
        "Coal & Lignite Coal": 1425.556703,
        "Coal & Lignite Total": 2926.9157029999997,
        "Oil Fuel Oil": 4.37,
        "Oil Diesel": 5.016,
        "Oil Total": 9.386,
        "Hydropower": 625.162,
        "Imported": 2050.5478829999997,
        "Renewable Energy": 1999.5697829999997,
        "Total": 18632.563078
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/power-generation-classified-by-fuel-type-detail/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of power generation classified by fuel type (detail) as monthly (Unit: GWh) (1986-present)

ปริมาณการผลิตไฟฟ้าจำแนกตามชนิดเชื้อเพลิง (รายละเอียด) รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Peak Demand and Load Factor (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-16T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-16T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/peak-demand-and-load-factor/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-16T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-16T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-16T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-16T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": "",
        "mth_sk": "202301",
        "year_en": 2023,
        "period_days": 31,
        "period_no": 1,
        "period_name": "JAN",
        "Peak (MW)": 25895.6,
        "Generation (GWh)": 14716.721426,
        "load_factor": 76.38571630344642
    },
    {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": "",
        "mth_sk": "202302",
        "year_en": 2023,
        "period_days": 28,
        "period_no": 2,
        "period_name": "FEB",
        "Peak (MW)": 27686.5,
        "Generation (GWh)": 14955.112445,
        "load_factor": 80.38080513818407
    },
    "total": 32
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/current

Query Parameters

Parameter Type Default Description
date String

Peak Demand, Generation and Load Factor in current year and 2 years ago (Peak Demand Unit: MW) (Generation Unit: GWh) (Load Factor Unit: %)

ความต้องการพลังไฟฟ้าสูงสุด การผลิตไฟฟ้า และค่าตัวประกอบการใช้ไฟฟ้า ของปีปัจจุบันและย้อนหลัง 2 ปี (หน่วยความต้องการพลังไฟฟ้าสูงสุด: เมกะวัตต์) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยค่าตัวประกอบการใช้ไฟฟ้า: ร้อยละ)

Peak Demand and Load Factor (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/peak-demand-and-load-factor/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": null,
        "mth_sk": "202499",
        "year_flag": "TY",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "period_days": 366,
        "Peak (MW)": 36477.8,
        "Generation (GWh)": 220546.713545,
        "load_factor": 68.83029415951329
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Peak Demand, Generation and Load Factor as yearly (Peak Demand Unit: MW) (Generation Unit: GWh) (Load Factor Unit: %) (1986-present)

ความต้องการพลังไฟฟ้าสูงสุด การผลิตไฟฟ้า และค่าตัวประกอบการใช้ไฟฟ้า รายปี (หน่วยความต้องการพลังไฟฟ้าสูงสุด: เมกะวัตต์) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยค่าตัวประกอบการใช้ไฟฟ้า: ร้อยละ) (2529-ปัจจุบัน)

Peak Demand and Load Factor (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/peak-demand-and-load-factor/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Natural Gas": 34812.952704000025,
        "Coal & Lignite Lignite": 4345.221,
        "Coal & Lignite Coal": 4234.114204999999,
        "Coal & Lignite Total": 8579.335205,
        "Oil Fuel Oil": 4.37,
        "Oil Diesel": 10.318,
        "Oil Total": 14.688,
        "Hydropower": 1923.8010000000002,
        "Imported": 6881.592119000002,
        "Renewable Energy": 6121.891351999995,
        "Total": 58334.25577100001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Natural Gas": 39117.38496999998,
        "Coal & Lignite Lignite": 4249.1849999999995,
        "Coal & Lignite Coal": 4191.335154,
        "Coal & Lignite Total": 8440.520153999998,
        "Oil Fuel Oil": 10.78,
        "Oil Diesel": 10.554,
        "Oil Total": 21.334,
        "Hydropower": 1804.931,
        "Imported": 8398.727952999998,
        "Renewable Energy": 5939.067159999999,
        "Total": 63721.96342000001
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Peak Demand, Generation and Load Factor as quarterly (Peak Demand Unit: MW) (Generation Unit: GWh) (Load Factor Unit: %) (1986-present)

ความต้องการพลังไฟฟ้าสูงสุด การผลิตไฟฟ้า และค่าตัวประกอบการใช้ไฟฟ้า รายไตรมาส (หน่วยความต้องการพลังไฟฟ้าสูงสุด: เมกะวัตต์) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยค่าตัวประกอบการใช้ไฟฟ้า: ร้อยละ) (2529-ปัจจุบัน)

Peak Demand and Load Factor (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/peak-demand-and-load-factor/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": null,
        "mth_sk": "202499",
        "year_flag": "TY",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "period_days": 31,
        "Peak (MW)": 28852.7,
        "Generation (GWh)": 16922.735243,
        "load_factor": 78.83356457368873
    },
    {
        "section": 1.1,
        "update_date": "2025-07-16T00:00:00.000Z",
        "unit": null,
        "mth_sk": "202499",
        "year_flag": "TY",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "period_days": 29,
        "Peak (MW)": 30849.9,
        "Generation (GWh)": 17321.31278,
        "load_factor": 80.67106748944173
    },
    "total": 13
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/peak-demand-and-load-factor/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Peak Demand, Generation and Load Factor as monthly (Peak Demand Unit: MW) (Generation Unit: GWh) (Load Factor Unit: %) (1986-present)

ความต้องการพลังไฟฟ้าสูงสุด การผลิตไฟฟ้า และค่าตัวประกอบการใช้ไฟฟ้า รายเดือน (หน่วยความต้องการพลังไฟฟ้าสูงสุด: เมกะวัตต์) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยค่าตัวประกอบการใช้ไฟฟ้า: ร้อยละ) (2529-ปัจจุบัน)

Consumption and Sales

Electricity Consumption in MEA Area (Classified by Sector) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 15693.736927000002,
        "Service": 19573.97012548,
        "Industrial": 11817.65992181,
        "Government and Non-Profit": 133.009723,
        "Agriculture": 0,
        "Other": 2934.77456103,
        "Total": 50153.15125832,
        "Free of Charge": 549.1383559999999,
        "Grand Total": 50702.28961431999
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 15772.083612,
        "Service": 18258.590642889998,
        "Industrial": 11970.347492300003,
        "Government and Non-Profit": 129.92293300000003,
        "Agriculture": 0,
        "Other": 2918.02192307,
        "Total": 49048.96660326,
        "Free of Charge": 549.067122,
        "Grand Total": 49598.03372525999
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption in MEA area classified by sector in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption in MEA Area (Classified by Sector) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 17812.968019,
        "Service": 23632.964136640003,
        "Industrial": 11209.99535166,
        "Government and Non-Profit": 163.75861099999997,
        "Agriculture": 0,
        "Other": 3036.6450083500004,
        "Total": 55856.33112665,
        "Free of Charge": 565.28339,
        "Grand Total": 56421.61451665
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 31.57117741418654,
        "Service": 41.88636631386349,
        "Industrial": 19.868264046843134,
        "Government and Non-Profit": 0.29024091636313404,
        "Agriculture": 0,
        "Other": 5.382059755581589,
        "Total": 98.99810844683789,
        "Free of Charge": 1.0018915531621044,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by sector as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามสาขา รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in MEA Area (Classified by Sector) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential": 4209.414482,
        "Service": 5752.95120612,
        "Industrial": 2836.94756292,
        "Government and Non-Profit": 38.728471,
        "Agriculture": 0,
        "Other": 704.53564275,
        "Total": 13542.577364790002,
        "Free of Charge": 140.854851,
        "Grand Total": 13683.43221579
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential": 5172.275531,
        "Service": 6291.03975566,
        "Industrial": 2855.8402078999998,
        "Government and Non-Profit": 42.658570999999995,
        "Agriculture": 0,
        "Other": 705.1953662999999,
        "Total": 15067.009431859999,
        "Free of Charge": 141.230998,
        "Grand Total": 15208.240429859998
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by sector as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามสาขา รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in MEA Area (Classified by Sector) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential": 1293.873539,
        "Service": 1840.8344679900001,
        "Industrial": 913.04971754,
        "Government and Non-Profit": 11.784345,
        "Agriculture": 0,
        "Other": 227.90485497999998,
        "Total": 4287.44692451,
        "Free of Charge": 47.285724,
        "Grand Total": 4334.73264851
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential": 1398.87851,
        "Service": 1872.6723384200002,
        "Industrial": 913.24133954,
        "Government and Non-Profit": 12.720193,
        "Agriculture": 0,
        "Other": 234.03746888,
        "Total": 4431.54984984,
        "Free of Charge": 45.55601,
        "Grand Total": 4477.10585984
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-sector/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by sector as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามสาขา รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Sector) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 37166.647349000006,
        "Service": 23768.314785700008,
        "Industrial": 69488.83827015,
        "Government and Non-Profit": 70.837753,
        "Agriculture": 416.851628,
        "Other": 936.87759808,
        "Total": 131848.36738393,
        "Free of Charge": 3036.798938,
        "Grand Total": 134885.16632192998
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 38518.394231000006,
        "Service": 22742.24701797,
        "Industrial": 73748.45063800001,
        "Government and Non-Profit": 70.62828000000002,
        "Agriculture": 397.95498000000003,
        "Other": 911.2790694899999,
        "Total": 136388.95421645997,
        "Free of Charge": 3244.7207940000003,
        "Grand Total": 139633.67501046
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption in PEA area classified by sector in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption in PEA Area (Classified by Sector) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 44374.544897,
        "Service": 30039.812133910003,
        "Industrial": 76411.61359098,
        "Government and Non-Profit": 84.928425,
        "Agriculture": 476.15057100000007,
        "Other": 1226.29711155,
        "Total": 152613.34672944,
        "Free of Charge": 4095.869414,
        "Grand Total": 156709.21614344002
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 28.316487051012256,
        "Service": 19.1691419772107,
        "Industrial": 48.7601274969294,
        "Government and Non-Profit": 0.0541949140516808,
        "Agriculture": 0.3038433748300847,
        "Other": 0.7825303078713243,
        "Total": 97.38632512190544,
        "Free of Charge": 2.6136748780945633,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by sector as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามสาขา รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Sector) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential": 10018.463459999999,
        "Service": 7137.46293531,
        "Industrial": 19002.65143619,
        "Government and Non-Profit": 20.492472,
        "Agriculture": 196.993302,
        "Other": 287.15640898,
        "Total": 36663.22001448,
        "Free of Charge": 1020.9429870000001,
        "Grand Total": 37684.16300148
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential": 13193.869702,
        "Service": 8082.33143844,
        "Industrial": 19394.67381436,
        "Government and Non-Profit": 23.277355,
        "Agriculture": 118.231339,
        "Other": 324.31523363,
        "Total": 41136.698882430006,
        "Free of Charge": 990.657354,
        "Grand Total": 42127.35623643
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by sector as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามสาขา รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Sector) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential": 3051.365702,
        "Service": 2242.37613612,
        "Industrial": 6106.74128533,
        "Government and Non-Profit": 6.422663,
        "Agriculture": 65.08126,
        "Other": 90.98603884,
        "Total": 11562.973085290001,
        "Free of Charge": 349.042296,
        "Grand Total": 11912.01538129
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential": 3038.987993,
        "Service": 2276.8734120100003,
        "Industrial": 6064.31040048,
        "Government and Non-Profit": 6.587631,
        "Agriculture": 66.673183,
        "Other": 90.76403703,
        "Total": 11544.196656520002,
        "Free of Charge": 328.605147,
        "Grand Total": 11872.801803520002
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-sector/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by sector as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามสาขา รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for Direct Customer (Classified by Sector) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 0,
        "Service": 607.533519,
        "Industrial": 851.4919989999999,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 1459.025518,
        "Free of Charge": 0,
        "Grand Total": 1459.025518
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 0,
        "Service": 528.030336,
        "Industrial": 708.3168780000001,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 1236.3472140000001,
        "Free of Charge": 0,
        "Grand Total": 1236.347214
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption for EGAT's direct customer classified by sector in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าจากลูกค้าตรงของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption for Direct Customer (Classified by Sector) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 0,
        "Service": 633.476472,
        "Industrial": 704.6587350000002,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 1338.1352069999998,
        "Free of Charge": 0,
        "Grand Total": 1338.1352069999998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 0,
        "Service": 47.340243996733896,
        "Industrial": 52.65975600326613,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 100.00000000000003,
        "Free of Charge": 0,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption for EGAT's direct customer classified by sector as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าจากลูกค้าตรงของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย จำแนกตามสาขา รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for Direct Customer (Classified by Sector) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential": 0,
        "Service": 150.483532,
        "Industrial": 205.84727399999997,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 356.330806,
        "Free of Charge": 0,
        "Grand Total": 356.330806
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential": 0,
        "Service": 176.217097,
        "Industrial": 159.235239,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 335.452336,
        "Free of Charge": 0,
        "Grand Total": 335.452336
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption for EGAT's direct customer classified by sector as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าจากลูกค้าตรงของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย จำแนกตามสาขา รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for Direct Customer (Classified by Sector) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential": 0,
        "Service": 47.522795,
        "Industrial": 78.485002,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 126.007797,
        "Free of Charge": 0,
        "Grand Total": 126.007797
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential": 0,
        "Service": 48.057073,
        "Industrial": 53.131283,
        "Government and Non-Profit": 0,
        "Agriculture": 0,
        "Other": 0,
        "Total": 101.188356,
        "Free of Charge": 0,
        "Grand Total": 101.188356
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-direct-customer-by-sector/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption for EGAT's direct customer classified by sector as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าจากลูกค้าตรงของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย จำแนกตามสาขา รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Sector) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 52860.38427599999,
        "Service": 43949.81843018,
        "Industrial": 82157.99019095999,
        "Government and Non-Profit": 203.84747600000003,
        "Agriculture": 416.851628,
        "Other": 3871.65215911,
        "Total": 183460.54416025,
        "Free of Charge": 3585.937294,
        "Grand Total": 187046.48145425
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 54290.477843,
        "Service": 41528.86799686001,
        "Industrial": 86427.11500829998,
        "Government and Non-Profit": 200.551213,
        "Agriculture": 397.9549800000001,
        "Other": 3829.3009925600004,
        "Total": 186674.26803372003,
        "Free of Charge": 3793.7879159999993,
        "Grand Total": 190468.05594972
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption for the whole country classified by sector in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption for the Whole Country (Classified by Sector) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 62187.512916,
        "Service": 54306.252742550016,
        "Industrial": 88326.26767764002,
        "Government and Non-Profit": 248.687036,
        "Agriculture": 476.150571,
        "Other": 4262.942119900001,
        "Total": 209807.81306309003,
        "Free of Charge": 4661.152804,
        "Grand Total": 214468.96586708998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential": 28.99604269763609,
        "Service": 25.321263858848692,
        "Industrial": 41.183705679999065,
        "Government and Non-Profit": 0.11595478860755801,
        "Agriculture": 0.2220137394121061,
        "Other": 1.9876731827679985,
        "Total": 97.8266539472715,
        "Free of Charge": 2.1733460527284834,
        "Grand Total": 99.99999999999999
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by sector as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามสาขา รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Sector) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential": 14227.877942000003,
        "Service": 13040.89767343,
        "Industrial": 22045.44627311,
        "Government and Non-Profit": 59.220943000000005,
        "Agriculture": 196.99330199999997,
        "Other": 991.69205173,
        "Total": 50562.12818527,
        "Free of Charge": 1161.797838,
        "Grand Total": 51723.92602327
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential": 18366.145233,
        "Service": 14549.5882911,
        "Industrial": 22409.749261260004,
        "Government and Non-Profit": 65.935926,
        "Agriculture": 118.23133899999999,
        "Other": 1029.51059993,
        "Total": 56539.160650289996,
        "Free of Charge": 1131.8883520000002,
        "Grand Total": 57671.04900229
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by sector as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามสาขา รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Sector) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential": 4345.239241,
        "Service": 4130.73339911,
        "Industrial": 7098.27600487,
        "Government and Non-Profit": 18.207008000000002,
        "Agriculture": 65.08126,
        "Other": 318.89089382,
        "Total": 15976.427806800002,
        "Free of Charge": 396.32802000000004,
        "Grand Total": 16372.755826800001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential": 4437.866503,
        "Service": 4197.60282343,
        "Industrial": 7030.683023019999,
        "Government and Non-Profit": 19.307824,
        "Agriculture": 66.673183,
        "Other": 324.80150591,
        "Total": 16076.934862360002,
        "Free of Charge": 374.161157,
        "Grand Total": 16451.096019360004
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-sector/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by sector as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามสาขา รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in MEA Area (Classified by Tariff) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 348.17067,
        "Residential > 150": 15345.566257000002,
        "Residential Total": 15693.736927000002,
        "Small General": 7203.387148,
        "Medium General": 8240.550249000002,
        "Large General": 16799.160481000003,
        "Specific Business": 1655.347998,
        "Gov. & Nonprofit": 133.009723,
        "Agriculture Pumping ": 0,
        "Temporary": 427.9592430000001,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 549.138356,
        "Grand Total": 50702.29012499999
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 326.91241,
        "Residential > 150": 15445.171202,
        "Residential Total": 15772.083611999995,
        "Small General": 6743.354425000001,
        "Medium General": 7886.629293999999,
        "Large General": 16675.806095,
        "Specific Business": 1489.0328070000003,
        "Gov. & Nonprofit": 129.922933,
        "Agriculture Pumping ": 0,
        "Temporary": 352.13790900000004,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 549.0671219999999,
        "Grand Total": 49598.03419700001
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption in MEA area classified by tariff in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามอัตราค่าไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption in MEA Area (Classified by Tariff) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 286.438229,
        "Residential > 150": 17526.52979,
        "Residential Total": 17812.968019,
        "Small General": 7963.407516,
        "Medium General": 9078.014441999998,
        "Large General": 18178.292535,
        "Specific Business": 2247.5480770000004,
        "Gov. & Nonprofit": 163.758611,
        "Agriculture Pumping ": 0,
        "Temporary": 412.34245500000003,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 565.28339,
        "Grand Total": 56421.615045
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 0.5076746363,
        "Residential > 150": 31.0635024822,
        "Residential Total": 31.5711771185,
        "Small General": 14.1141077044,
        "Medium General": 16.0896040192,
        "Large General": 32.2186674743,
        "Specific Business": 3.9834876673,
        "Gov. & Nonprofit": 0.2902409136,
        "Agriculture Pumping ": 0,
        "Temporary": 0.7308235588,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 1.0018915438,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by tariff as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามอัตราค่าไฟฟ้า รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in MEA Area (Classified by Tariff) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential < 150": 74.593282,
        "Residential > 150": 4134.8212,
        "Residential Total": 4209.414482,
        "Small General": 1924.646348,
        "Medium General": 2240.150974,
        "Large General": 4474.818131,
        "Specific Business": 552.292465,
        "Gov. & Nonprofit": 38.728471,
        "Agriculture Pumping ": 0,
        "Temporary": 102.526636,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 140.854851,
        "Grand Total": 13683.432358
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential < 150": 89.820998,
        "Residential > 150": 5082.454533,
        "Residential Total": 5172.275531,
        "Small General": 2149.869748,
        "Medium General": 2355.194714,
        "Large General": 4634.502912,
        "Specific Business": 603.261178,
        "Gov. & Nonprofit": 42.658570999999995,
        "Agriculture Pumping ": 0,
        "Temporary": 109.246931,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 141.230998,
        "Grand Total": 15208.240582999999
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by tariff as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามอัตราค่าไฟฟ้า รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in MEA Area (Classified by Tariff) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential < 150": 22.269316,
        "Residential > 150": 1271.604223,
        "Residential Total": 1293.873539,
        "Small General": 612.014398,
        "Medium General": 714.298901,
        "Large General": 1448.309967,
        "Specific Business": 174.785569,
        "Gov. & Nonprofit": 11.784345,
        "Agriculture Pumping ": 0,
        "Temporary": 32.380261,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 47.285724,
        "Grand Total": 4334.732704
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential < 150": 25.194084,
        "Residential > 150": 1373.684426,
        "Residential Total": 1398.87851,
        "Small General": 638.013686,
        "Medium General": 727.856308,
        "Large General": 1442.6444,
        "Specific Business": 177.734351,
        "Gov. & Nonprofit": 12.720193,
        "Agriculture Pumping ": 0,
        "Temporary": 33.702458,
        "Stand By Rate": 0,
        "Interruptible Rate": 0,
        "Free of Charge": 45.55601,
        "Grand Total": 4477.105916000001
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-mea-area-by-tariff/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption in MEA area classified by tariff as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้านครหลวง จำแนกตามอัตราค่าไฟฟ้า รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Tariff) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 8941.710783999999,
        "Residential > 150": 28224.936565,
        "Residential Total": 37166.647349000006,
        "Small General": 13912.372966000004,
        "Medium General": 21554.980621999992,
        "Large General": 53112.57760199998,
        "Specific Business": 3092.952108000001,
        "Gov. & Nonprofit": 70.837753,
        "Agriculture Pumping ": 416.8516280000002,
        "Temporary": 925.0147640000001,
        "Stand By Rate": 108.82788599999998,
        "Interruptible Rate": 1487.306026,
        "Free of Charge": 3036.7989379999976,
        "Grand Total": 134885.167642
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 8103.390461000004,
        "Residential > 150": 30415.00377,
        "Residential Total": 38518.39423099999,
        "Small General": 13973.400818,
        "Medium General": 21702.445964,
        "Large General": 56510.96812399996,
        "Specific Business": 2530.2473870000003,
        "Gov. & Nonprofit": 70.62828000000002,
        "Agriculture Pumping ": 397.95498000000003,
        "Temporary": 896.6661660000001,
        "Stand By Rate": 153.43341700000002,
        "Interruptible Rate": 1634.8163129999998,
        "Free of Charge": 3244.720793999997,
        "Grand Total": 139633.6764740001
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption in PEA area classified by tariff in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามอัตราค่าไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption in PEA Area (Classified by Tariff) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 7578.972522,
        "Residential > 150": 36795.57237499999,
        "Residential Total": 44374.544897,
        "Small General": 15996.903487999998,
        "Medium General": 25024.271944000004,
        "Large General": 59103.826826,
        "Specific Business": 4998.69818,
        "Gov. & Nonprofit": 84.928425,
        "Agriculture Pumping ": 476.150571,
        "Temporary": 1115.496018,
        "Stand By Rate": 108.45688999999997,
        "Interruptible Rate": 1330.070991,
        "Free of Charge": 4095.869414,
        "Grand Total": 156709.217644
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 4.8363284789,
        "Residential > 150": 23.480158301,
        "Residential Total": 28.3164867799,
        "Small General": 10.2080169428,
        "Medium General": 15.9686024346,
        "Large General": 37.7156032776,
        "Specific Business": 3.1897920589,
        "Gov. & Nonprofit": 0.0541949135,
        "Agriculture Pumping ": 0.3038433719,
        "Temporary": 0.7118254017,
        "Stand By Rate": 0.0692090048,
        "Interruptible Rate": 0.8487509612,
        "Free of Charge": 2.6136748531,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by tariff as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามอัตราค่าไฟฟ้า รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Tariff) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential < 150": 1872.932121,
        "Residential > 150": 8145.531339000001,
        "Residential Total": 10018.463459999999,
        "Small General": 3813.390952,
        "Medium General": 5946.863436,
        "Large General": 14731.975989999999,
        "Specific Business": 1243.987719,
        "Gov. & Nonprofit": 20.492472,
        "Agriculture Pumping ": 196.993302,
        "Temporary": 265.782093,
        "Stand By Rate": 41.59759999999999,
        "Interruptible Rate": 383.67339200000004,
        "Free of Charge": 1020.9429869999999,
        "Grand Total": 37684.16340299999
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential < 150": 2378.6747750000004,
        "Residential > 150": 10815.194926999997,
        "Residential Total": 13193.869701999998,
        "Small General": 4375.099606,
        "Medium General": 6569.424031999999,
        "Large General": 14869.683746000002,
        "Specific Business": 1351.23571,
        "Gov. & Nonprofit": 23.277355,
        "Agriculture Pumping ": 118.23133899999999,
        "Temporary": 298.712332,
        "Stand By Rate": 20.254329999999996,
        "Interruptible Rate": 316.911164,
        "Free of Charge": 990.657354,
        "Grand Total": 42127.35667
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by tariff as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามอัตราค่าไฟฟ้า รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption in PEA Area (Classified by Tariff) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential < 150": 558.664205,
        "Residential > 150": 2492.701497,
        "Residential Total": 3051.365702,
        "Small General": 1204.2236010000001,
        "Medium General": 1875.9783289999998,
        "Large General": 4755.469053000001,
        "Specific Business": 388.657915,
        "Gov. & Nonprofit": 6.422662999999999,
        "Agriculture Pumping ": 65.08126000000001,
        "Temporary": 84.338569,
        "Stand By Rate": 26.123549999999998,
        "Interruptible Rate": 105.3126,
        "Free of Charge": 349.042296,
        "Grand Total": 11912.015538
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential < 150": 567.090209,
        "Residential > 150": 2471.897784,
        "Residential Total": 3038.987993,
        "Small General": 1191.1647790000002,
        "Medium General": 1898.878296,
        "Large General": 4733.839138,
        "Specific Business": 403.04837999999995,
        "Gov. & Nonprofit": 6.587630999999999,
        "Agriculture Pumping ": 66.673183,
        "Temporary": 83.82081099999999,
        "Stand By Rate": 11.180819999999999,
        "Interruptible Rate": 110.015782,
        "Free of Charge": 328.605147,
        "Grand Total": 11872.80196
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-in-pea-area-by-tariff/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption in PEA area classified by tariff as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าในพื้นที่ของการไฟฟ้าส่วนภูมิภาค จำแนกตามอัตราค่าไฟฟ้า รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Tariff) (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 9289.881453999998,
        "Residential > 150": 43570.50282199998,
        "Residential Total": 52860.38427599999,
        "Small General": 21115.760114,
        "Medium General": 29795.53087100001,
        "Large General": 69911.738083,
        "Specific Business": 4748.300106000001,
        "Gov. & Nonprofit": 203.84747599999983,
        "Agriculture Pumping ": 416.8516280000001,
        "Temporary": 1352.9740070000003,
        "Stand By Rate": 108.82788599999998,
        "Interruptible Rate": 1487.306026,
        "Free of Charge": 3585.9372939999985,
        "Total MEA+PEA": 185587.45776699987,
        "Direct Customer": 1459.0255179999997,
        "Grand Total": 187046.48328500002
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 8430.302871,
        "Residential > 150": 45860.17497199998,
        "Residential Total": 54290.47784299999,
        "Small General": 20716.755243000003,
        "Medium General": 29589.075257999993,
        "Large General": 73186.77421900003,
        "Specific Business": 4019.2801940000004,
        "Gov. & Nonprofit": 200.55121299999996,
        "Agriculture Pumping ": 397.9549799999998,
        "Temporary": 1248.8040750000002,
        "Stand By Rate": 153.43341699999996,
        "Interruptible Rate": 1634.8163129999998,
        "Free of Charge": 3793.7879159999975,
        "Total MEA+PEA": 189231.71067099975,
        "Direct Customer": 1236.3472140000001,
        "Grand Total": 190468.05788500016
    },
    "total": 51
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity consumption for the whole country classified by tariff in current year and 5 years ago (Unit: GWh)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามอัตราค่าไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption for the Whole Country (Classified by Tariff) (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 7865.410750999999,
        "Residential > 150": 54322.102165,
        "Residential Total": 62187.51291600001,
        "Small General": 23960.311004000003,
        "Medium General": 34102.286386,
        "Large General": 77282.11936099999,
        "Specific Business": 7246.246257000001,
        "Gov. & Nonprofit": 248.68703600000003,
        "Agriculture Pumping ": 476.150571,
        "Temporary": 1527.8384730000002,
        "Stand By Rate": 108.45688999999997,
        "Interruptible Rate": 1330.070991,
        "Free of Charge": 4661.152803999999,
        "Total MEA+PEA": 213130.83268899997,
        "Direct Customer": 1338.135207,
        "Grand Total": 214468.96789599996
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Residential < 150": 3.6673887268,
        "Residential > 150": 25.3286536966,
        "Residential Total": 28.9960424233,
        "Small General": 11.1719244229,
        "Medium General": 15.9008022095,
        "Large General": 36.0341732042,
        "Specific Business": 3.3786921847,
        "Gov. & Nonprofit": 0.1159547875,
        "Agriculture Pumping ": 0.2220137373,
        "Temporary": 0.71238207,
        "Stand By Rate": 0.0505699687,
        "Interruptible Rate": 0.6201694371,
        "Free of Charge": 2.1733460322,
        "Total MEA+PEA": 99.3760704776,
        "Direct Customer": 0.6239295224,
        "Grand Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by tariff as yearly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามอัตราค่าไฟฟ้า รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Tariff) (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Residential < 150": 1947.525403,
        "Residential > 150": 12280.352539,
        "Residential Total": 14227.877942000003,
        "Small General": 5738.0373,
        "Medium General": 8187.01441,
        "Large General": 19206.794121,
        "Specific Business": 1796.2801840000002,
        "Gov. & Nonprofit": 59.220943000000005,
        "Agriculture Pumping ": 196.993302,
        "Temporary": 368.30872899999997,
        "Stand By Rate": 41.59759999999999,
        "Interruptible Rate": 383.67339200000004,
        "Free of Charge": 1161.797838,
        "Total MEA+PEA": 51367.595761,
        "Direct Customer": 356.33080600000005,
        "Grand Total": 51723.926566999995
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Residential < 150": 2468.4957730000006,
        "Residential > 150": 15897.649459999999,
        "Residential Total": 18366.145233,
        "Small General": 6524.969353999999,
        "Medium General": 8924.618746000002,
        "Large General": 19504.186658,
        "Specific Business": 1954.4968880000001,
        "Gov. & Nonprofit": 65.93592600000001,
        "Agriculture Pumping ": 118.23133899999999,
        "Temporary": 407.95926299999996,
        "Stand By Rate": 20.254329999999996,
        "Interruptible Rate": 316.911164,
        "Free of Charge": 1131.888352,
        "Total MEA+PEA": 57335.597253,
        "Direct Customer": 335.45233600000006,
        "Grand Total": 57671.049588999995
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by tariff as quarterly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามอัตราค่าไฟฟ้า รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by Tariff) (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Residential < 150": 580.9335210000002,
        "Residential > 150": 3764.30572,
        "Residential Total": 4345.239241,
        "Small General": 1816.2379989999997,
        "Medium General": 2590.2772299999997,
        "Large General": 6203.77902,
        "Specific Business": 563.4434840000001,
        "Gov. & Nonprofit": 18.207008000000005,
        "Agriculture Pumping ": 65.08126000000001,
        "Temporary": 116.71883,
        "Stand By Rate": 26.123549999999998,
        "Interruptible Rate": 105.3126,
        "Free of Charge": 396.32802000000004,
        "Total MEA+PEA": 16246.748242000005,
        "Direct Customer": 126.00779699999998,
        "Grand Total": 16372.756039
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Residential < 150": 592.2842929999999,
        "Residential > 150": 3845.5822099999996,
        "Residential Total": 4437.866503,
        "Small General": 1829.1784650000002,
        "Medium General": 2626.7346040000007,
        "Large General": 6176.483538,
        "Specific Business": 580.782731,
        "Gov. & Nonprofit": 19.307824,
        "Agriculture Pumping ": 66.673183,
        "Temporary": 117.52326900000001,
        "Stand By Rate": 11.180819999999999,
        "Interruptible Rate": 110.015782,
        "Free of Charge": 374.161157,
        "Total MEA+PEA": 16349.907875999997,
        "Direct Customer": 101.18835600000003,
        "Grand Total": 16451.096231999996
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tariff/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity consumption for the whole country classified by tariff as monthly (Unit: GWh) (2002-present)

ปริมาณการใช้ไฟฟ้าของทั้งประเทศ จำแนกตามอัตราค่าไฟฟ้า รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 2 Digits (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "10 การเกษตร",
        "GWh 2021": 0,
        "GWh 2022": 0,
        "GWh 2023": 0,
        "GWh 2024": 0,
        "GWh 5 MTHS 2024": 0,
        "GWh 5 MTHS 2025": 0,
        "GROWTH RATE (%) 2022": null,
        "GROWTH RATE (%) 2023": null,
        "GROWTH RATE (%) 2024": null,
        "GROWTH RATE (%) 5 MTHS 2025": null
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "11 เกษตรกรรมและการล่าสัตว์",
        "GWh 2021": 3397.284737169998,
        "GWh 2022": 3348.6192928999944,
        "GWh 2023": 3757.0718379800196,
        "GWh 2024": 4142.775437200016,
        "GWh 5 MTHS 2024": 1754.3006483099998,
        "GWh 5 MTHS 2025": 1774.607577010003,
        "GROWTH RATE (%) 2022": -1.43248058479032,
        "GROWTH RATE (%) 2023": 12.197640560276948,
        "GROWTH RATE (%) 2024": 10.266069318157585,
        "GROWTH RATE (%) 5 MTHS 2025": 1.1575512281529774
    },
    "total": 42
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/current

Query Parameters

Parameter Type Default Description
date String

Electricity consumption for the whole country classified by TSIC 2 digits in current year and 4 years ago (Unit: GWh)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 2 Digits ของปีปัจจุบันและย้อนหลัง 4 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 2 Digits (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "2024": 0,
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "10 การเกษตร"
    },
    {
        "2024": 4142.7754372,
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "11 เกษตรกรรมและการล่าสัตว์"
    },
    "total": 42
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 2 digits as yearly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 2 Digits รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 2 Digits (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "10 การเกษตร",
        "year_en": 2024,
        "Q1": 0,
        "Q2": 0,
        "Q3": 0,
        "Q4": 0,
        "Total": 0
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "11 เกษตรกรรมและการล่าสัตว์",
        "year_en": 2024,
        "Q1": 1034.3449144899987,
        "Q2": 1058.7143988099992,
        "Q3": 1030.6470155100012,
        "Q4": 1019.0691083899976,
        "Total": 4142.775437200001
    },
    "total": 84
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 2 digits as quarterly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 2 Digits รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 2 Digits (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "10 การเกษตร",
        "year_en": 2024,
        "JAN": 0,
        "FEB": 0,
        "MAR": 0,
        "APR": 0,
        "MAY": 0,
        "JUN": 0,
        "JUL": 0,
        "AUG": 0,
        "SEP": 0,
        "OCT": 0,
        "NOV": 0,
        "DEC": 0,
        "Total": 0
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "11 เกษตรกรรมและการล่าสัตว์",
        "year_en": 2024,
        "JAN": 333.65005995000007,
        "FEB": 333.93932281999975,
        "MAR": 366.7555317199995,
        "APR": 364.06585335999955,
        "MAY": 355.88988045999986,
        "JUN": 338.75866499000017,
        "JUL": 340.99831988000005,
        "AUG": 349.1971574700003,
        "SEP": 340.4515381599996,
        "OCT": 348.31394791999986,
        "NOV": 328.44888112999973,
        "DEC": 342.306279340001,
        "Total": 4142.775437200002
    },
    "total": 84
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-2-digits/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 2 digits as monthly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 2 Digits รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 3 Digits (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "111 การผลิต ผลิตผลเกษตรและปศุสัตว์",
        "GWh 2021": 2908.346710220016,
        "GWh 2022": 2901.5368997399974,
        "GWh 2023": 3167.422957680003,
        "GWh 2024": 3527.008535190004,
        "GWh 5 MTHS 2024": 1418.1840540599997,
        "GWh 5 MTHS 2025": 1458.0556539799989,
        "GROWTH RATE (%) 2022": -0.23414713438704737,
        "GROWTH RATE (%) 2023": 9.163628350335005,
        "GROWTH RATE (%) 2024": 11.352622694045978,
        "GROWTH RATE (%) 5 MTHS 2025": 2.8114545362327683
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "112 บริการทางการเกษตร",
        "GWh 2021": 488.9348219500011,
        "GWh 2022": 447.06018315999916,
        "GWh 2023": 589.6194792999979,
        "GWh 2024": 615.741390009998,
        "GWh 5 MTHS 2024": 336.1065702499993,
        "GWh 5 MTHS 2025": 316.5429500300001,
        "GROWTH RATE (%) 2022": -8.564462359828449,
        "GROWTH RATE (%) 2023": 31.888166629453234,
        "GROWTH RATE (%) 2024": 4.4302998165887715,
        "GROWTH RATE (%) 5 MTHS 2025": -5.82065985959384
    },
    "total": 94
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/current

Query Parameters

Parameter Type Default Description
date String

Electricity consumption for the whole country classified by TSIC 3 digits in current year and 4 years ago (Unit: GWh)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 3 Digits ของปีปัจจุบันและย้อนหลัง 4 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 3 Digits (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "2024": 3527.008535190002,
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "111 การผลิต ผลิตผลเกษตรและปศุสัตว์"
    },
    {
        "2024": 615.7413900099999,
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "112 บริการทางการเกษตร"
    },
    "total": 94
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 3 digits as yearly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 3 Digits รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 3 Digits (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "111 การผลิต ผลิตผลเกษตรและปศุสัตว์",
        "year_en": 2024,
        "Q1": 809.1841277400001,
        "Q2": 907.6592399600006,
        "Q3": 916.8077839000002,
        "Q4": 893.3573835899982,
        "Total": 3527.0085351900016
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "112 บริการทางการเกษตร",
        "year_en": 2024,
        "Q1": 225.15505275000015,
        "Q2": 151.04831485000014,
        "Q3": 113.8331956099999,
        "Q4": 125.7048267999999,
        "Total": 615.7413900099999
    },
    "total": 188
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 3 digits as quarterly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 3 Digits รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Electricity Consumption for the Whole Country (Classified by TSIC) - TSIC 3 Digits (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "111 การผลิต ผลิตผลเกษตรและปศุสัตว์",
        "year_en": 2024,
        "JAN": 259.99936424,
        "FEB": 258.52166655,
        "MAR": 290.66309695,
        "APR": 299.64779688999994,
        "MAY": 309.3521294300002,
        "JUN": 298.6593136400002,
        "JUL": 301.79091223999984,
        "AUG": 311.80667011000025,
        "SEP": 303.2102015499995,
        "OCT": 314.21801984000047,
        "NOV": 297.05201645999966,
        "DEC": 282.08734729000037,
        "Total": 3527.0085351900007
    },
    {
        "update_date": "2025-07-17T00:00:00.000Z",
        "TSIC": "112 บริการทางการเกษตร",
        "year_en": 2024,
        "JAN": 73.64945871,
        "FEB": 75.41599427,
        "MAR": 76.08959977000013,
        "APR": 64.41618147000004,
        "MAY": 46.53533603000006,
        "JUN": 40.09679735000004,
        "JUL": 39.20608664,
        "AUG": 37.38858236,
        "SEP": 37.238526609999994,
        "OCT": 34.09455507999999,
        "NOV": 31.394315670000022,
        "DEC": 60.215956050000045,
        "Total": 615.7413900099998
    },
    "total": 188
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/electricity-consumption-for-the-whole-country-by-tsic-3-digits/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Electricity consumption for the whole country classified by TSIC 3 digits as monthly (Unit: GWh) (2002-present)

การใช้ไฟฟ้าของทั้งประเทศ จำแนกตามประเภทมาตรฐานอุตสาหกรรมประเทศไทย (TSIC) 3 Digits รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2545-ปัจจุบัน)

Fuel Consumption

EGAT Fuel Consumption in Power Generation (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Fuel Oil_M.LITRES": 98.2907,
        "Diesel Oil_M.LITRES": 58.825202,
        "Palm Oil_M.LITRES": 5.235799999999999,
        "Natural Gas_MMSCFD": 1102.3738602739725,
        "Lignite_TON": 14244883
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "Fuel Oil_M.LITRES": 25.748782000000002,
        "Diesel Oil_M.LITRES": 312.35079,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1109.5911452054795,
        "Lignite_TON": 13658811
    },
    "total": 44
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/current

Query Parameters

Parameter Type Default Description
date String

EGAT fuel consumption in power generation in current year and 5 years ago (Oil Unit: M.Litres) (Natural Gas Unit: MMSCFD) (Lignite Unit: ton)

การใช้เชื้อเพลิงในการผลิตไฟฟ้าของโรงไฟฟ้าของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วยน้ำมัน: ล้านลิตร) (หน่วยก๊าซธรรมชาติ: ล้านลูกบาศก์ฟุตต่อวัน) (หน่วยลิกไนต์: ตัน)

EGAT Fuel Consumption in Power Generation (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Fuel Oil_M.LITRES": 10.646128,
        "Diesel Oil_M.LITRES": 48.417586,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1018.4769808743172,
        "Lignite_TON": 12735435
    },
    {
        "section": 2.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "Fuel Oil_M.LITRES": 251.71720241831576,
        "Diesel Oil_M.LITRES": -71.91027709108492,
        "Palm Oil_M.LITRES": null,
        "Natural Gas_MMSCFD": -4.07261905798622,
        "Lignite_TON": -0.06031489460078108
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

EGAT fuel consumption in power generation as yearly (Oil Unit: M.Litres) (Natural Gas Unit: MMSCFD) (Lignite Unit: ton) (1986-present)

การใช้เชื้อเพลิงในการผลิตไฟฟ้าของโรงไฟฟ้าของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย รายปี (หน่วยน้ำมัน: ล้านลิตร) (หน่วยก๊าซธรรมชาติ: ล้านลูกบาศก์ฟุตต่อวัน) (หน่วยลิกไนต์: ตัน)

EGAT Fuel Consumption in Power Generation (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "Fuel Oil_M.LITRES": 1.318995,
        "Diesel Oil_M.LITRES": 2.917435,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1131.894945054945,
        "Lignite_TON": 3229203
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "Fuel Oil_M.LITRES": 2.939805,
        "Diesel Oil_M.LITRES": 2.738144,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1086.3924285714286,
        "Lignite_TON": 3203651
    },
    "total": 10
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

EGAT fuel consumption in power generation as quarterly (Oil Unit: M.Litres) (Natural Gas Unit: MMSCFD) (Lignite Unit: ton) (1986-present)

การใช้เชื้อเพลิงในการผลิตไฟฟ้าของโรงไฟฟ้าของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย รายไตรมาส (หน่วยน้ำมัน: ล้านลิตร) (หน่วยก๊าซธรรมชาติ: ล้านลูกบาศก์ฟุตต่อวัน) (หน่วยลิกไนต์: ตัน)

EGAT Fuel Consumption in Power Generation (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "Fuel Oil_M.LITRES": 0,
        "Diesel Oil_M.LITRES": 0.413018,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1081.0568709677418,
        "Lignite_TON": 1022443
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "Fuel Oil_M.LITRES": 1.318995,
        "Diesel Oil_M.LITRES": 1.4731830000000001,
        "Palm Oil_M.LITRES": 0,
        "Natural Gas_MMSCFD": 1123.443448275862,
        "Lignite_TON": 1120670
    },
    "total": 26
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/egat-fuel-consumption-in-power-generation/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

EGAT fuel consumption in power generation as monthly (Oil Unit: M.Litres) (Natural Gas Unit: MMSCFD) (Lignite Unit: ton) (1986-present)

การใช้เชื้อเพลิงในการผลิตไฟฟ้าของโรงไฟฟ้าของการไฟฟ้าฝ่ายผลิตแห่งประเทศไทย รายเดือน (หน่วยน้ำมัน: ล้านลิตร) (หน่วยก๊าซธรรมชาติ: ล้านลูกบาศก์ฟุตต่อวัน) (หน่วยลิกไนต์: ตัน)

Import and Export

Import of Electricity (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/import-of-electricity/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "mth_sk": "202199",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Exported": 1969.1365099999998
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "mth_sk": "202299",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "Exported": 2061.919856
    },
    "total": 44
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity import in current year and 5 years ago (Unit: GWh)

ปริมาณการนำเข้าไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Import of Electricity (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/import-of-electricity/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 99,
        "period_name": "YTD",
        "Exported": 17.198221
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1987,
        "period_no": 99,
        "period_name": "YTD",
        "Exported": 18.005499999999998
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity import as yearly (Unit: GWh) (1986-present)

ปริมาณการนำเข้าไฟฟ้า รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Import of Electricity (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/import-of-electricity/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 1,
        "period_name": "Q1",
        "Exported": 4.369637
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 2,
        "period_name": "Q2",
        "Exported": 4.353801
    },
    "total": 157
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity import as quarterly (Unit: GWh) (1986-present)

ปริมาณการนำเข้าไฟฟ้า รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Import of Electricity (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/import-of-electricity/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 1,
        "period_name": "JAN",
        "Exported": 1.435086
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 2,
        "period_name": "FEB",
        "Exported": 1.367403
    },
    "total": 473
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/import-of-electricity/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity import as monthly (Unit: GWh) (1986-present)

ปริมาณการนำเข้าไฟฟ้า รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Export of Electricity (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-17T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-17T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/export-of-electricity/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-17T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-17T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-17T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-17T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "mth_sk": "202199",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "imported": 33356.28696800001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "mth_sk": "202299",
        "year_en": 2022,
        "period_no": 99,
        "period_name": "YTD",
        "imported": 35471.757402
    },
    "total": 44
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/current

Query Parameters

Parameter Type Default Description
date String

Quantity of electricity export in current year and 5 years ago (Unit: GWh)

ปริมาณการส่งออกไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: กิกะวัตต์ชั่วโมง)

Export of Electricity (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/export-of-electricity/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 99,
        "period_name": "YTD",
        "Imported": 597.700543
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1987,
        "period_no": 99,
        "period_name": "YTD",
        "Imported": 387.25059999999996
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of electricity export as yearly (Unit: GWh) (1986-present)

ปริมาณการส่งออกไฟฟ้า รายปี (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Export of Electricity (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/export-of-electricity/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 1,
        "period_name": "Q1",
        "Imported": 141.70139999999998
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 2,
        "period_name": "Q2",
        "Imported": 128.5528
    },
    "total": 157
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of electricity export as quarterly (Unit: GWh) (1986-present)

ปริมาณการส่งออกไฟฟ้า รายไตรมาส (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

Export of Electricity (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/electricity/export-of-electricity/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 1,
        "period_name": "JAN",
        "Imported": 56.2324
    },
    {
        "section": 1.1,
        "update_date": "2025-07-17T00:00:00.000Z",
        "unit": "Gigawatt hours (GWh)",
        "year_en": 1986,
        "period_no": 2,
        "period_name": "FEB",
        "Imported": 48.3266
    },
    "total": 473
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/electricity/export-of-electricity/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of electricity export as monthly (Unit: GWh) (1986-present)

ปริมาณการส่งออกไฟฟ้า รายเดือน (หน่วย: กิกะวัตต์ชั่วโมง) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission by Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-08T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-08T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-08T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-08T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-08T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-08T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2025-07-08T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 98423.402999,
        "Coal/Lignite": 74799.192358,
        "Natural Gas": 76675.75004500001,
        "Total": 249898.345402
    },
    {
        "section": "1.1",
        "update_date": "2025-07-08T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 93690.13032899998,
        "Coal/Lignite": 76647.521069,
        "Natural Gas": 76467.92839,
        "Total": 246805.57978799997
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission by Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 9001.277538999999,
        "Coal/Lignite": 5233.721021,
        "Natural Gas": 6323.144214,
        "Total": 20558.142774
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 8573.672929,
        "Coal/Lignite": 5450.32793,
        "Natural Gas": 6395.8583180000005,
        "Total": 20419.859177
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission by Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 26801.277274999997,
        "Coal/Lignite": 16343.694938,
        "Natural Gas": 20307.662685000003,
        "Total": 63452.634898000004
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 26014.019889000003,
        "Coal/Lignite": 15299.188143999998,
        "Natural Gas": 22704.60821,
        "Total": 64017.816243
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission by Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 105336.47509899999,
        "Coal/Lignite": 60216.333459999994,
        "Natural Gas": 82288.84653900002,
        "Total": 247841.655098
    },
    {
        "section": 2.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 42.50152181131477,
        "Coal/Lignite": 24.296292500221416,
        "Natural Gas": 33.20218568846382,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission from Energy Consumption by Sector (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-10T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-10T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption-sector/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-10T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-10T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-10T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-10T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": "1.1",
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation": 90991.16048100001,
        "Transport": 75890.79040000001,
        "Industry": 69544.926658,
        "Other": 13471.467863,
        "Total": 249898.345402
    },
    {
        "section": "1.1",
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation": 90854.82072599998,
        "Transport": 71378.171684,
        "Industry": 71462.62730999995,
        "Other": 13109.960068,
        "Total": 246805.57978799992
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission from energy consumption classified by sector in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการใช้พลังงาน จำแนกตามสาขา ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission from Energy Consumption by Sector (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption-sector/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Power Generation": 7215.5154999999995,
        "Transport": 7044.307013000001,
        "Industry": 5153.836469,
        "Other": 1144.4837920000002,
        "TOTAL": 20558.142774
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Power Generation": 7657.288038000001,
        "Transport": 6707.5725760000005,
        "Industry": 4969.604117,
        "Other": 1085.394446,
        "TOTAL": 20419.859177
    },
   "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission from energy consumption classified by sector as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการใช้พลังงาน จำแนกตามสาขา รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission from Energy Consumption by Sector (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption-sector/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Power Generation": 23772.926264,
        "Transport": 20981.922887,
        "Industry": 15315.407349000001,
        "Other": 3382.3783980000003,
        "TOTAL": 63452.634898000004
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Power Generation": 25877.140997000002,
        "Transport": 20375.027805,
        "Industry": 14505.284608999998,
        "Other": 3260.362832,
        "TOTAL": 64017.816243
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission from energy consumption classified by sector as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการใช้พลังงาน จำแนกตามสาขา รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission from Energy Consumption by Sector (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption-sector/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-10T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Power Generation": 93885.48747599998,
      "Transport": 82220.68153900001,
      "Industry": 58377.202288,
      "Other": 13358.283795000001,
      "TOTAL": 247841.65509799996
  },
  {
      "section": 2.1,
      "update_date": "2025-07-10T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Power Generation": 37.88123809892909,
      "Transport": 33.17468224075926,
      "Industry": 23.554233554854555,
      "Other": 5.389846105457113,
      "TOTAL": 100
  },
  "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption-sector/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission from energy consumption classified by sector as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการใช้พลังงาน จำแนกตามสาขา รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Power Generation by Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-10T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-10T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/generation-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-10T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-10T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-10T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-10T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": "1.1",
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 167.91569600000003,
        "Coal/Lignite": 35446.982961999995,
        "Natural Gas": 55376.261823,
        "Total": 90991.160481
    },
    {
        "section": "1.1",
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 454.3413439999999,
        "Coal/Lignite": 35072.032717,
        "Natural Gas": 55328.446665,
        "Total": 90854.820726
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in power generation classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Power Generation by Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/generation-energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 39.995547,
        "Coal/Lignite": 2640.486598,
        "Natural Gas": 4535.033355,
        "Total": 7215.5154999999995
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 38.338277,
        "Coal/Lignite": 2897.9390460000004,
        "Natural Gas": 4721.010715,
        "Total": 7657.288038000001
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Power Generation by Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/generation-energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 120.325669,
        "Coal/Lignite": 8514.244185000001,
        "Natural Gas": 15138.35641,
        "Total": 23772.926264
    },
    {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 117.345405,
        "Coal/Lignite": 8263.852338,
        "Natural Gas": 17495.943253999998,
        "Total": 25877.140997000002
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Power Generation by Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/generation-energy-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body =  @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": 1.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 469.627374,
        "Coal/Lignite": 31918.7717,
        "Natural Gas": 61497.088401999994,
        "Total": 93885.48747599998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-10T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 0.500212957961209,
        "Coal/Lignite": 33.99755655330588,
        "Natural Gas": 65.50223048873292,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/generation-energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Transport by Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 72932.25921400002,
        "Coal/Lignite": 0,
        "Natural Gas": 2958.531186,
        "Total": 75890.79040000003
    },
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 68989.52635100001,
        "Coal/Lignite": 0,
        "Natural Gas": 2388.6453329999995,
        "Total": 71378.171684
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in transport classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Transport by Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport-energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 6854.818264,
        "Coal/Lignite": 0,
        "Natural Gas": 189.488749,
        "Total": 7044.307013000001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 6525.026718,
        "Coal/Lignite": 0,
        "Natural Gas": 182.545858,
        "Total": 6707.5725760000005
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Transport by Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport-energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 120.325669,
        "Coal/Lignite": 8514.244185000001,
        "Natural Gas": 15138.35641,
        "Total": 23772.926264
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 117.345405,
        "Coal/Lignite": 8263.852338,
        "Natural Gas": 17495.943253999998,
        "Total": 25877.140997000002
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Transport by Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
     {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 80100.64252299999,
        "Coal/Lignite": 0,
        "Natural Gas": 2120.0390159999997,
        "Total": 82220.68153899998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 97.42152585418015,
        "Coal/Lignite": 0,
        "Natural Gas": 2.5784741458198632,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport-energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Industry by Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 11851.760226000002,
        "Coal/Lignite": 39352.209396000006,
        "Natural Gas": 18340.957036000003,
        "Total": 69544.92665800001
    },
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 11136.302566000002,
        "Coal/Lignite": 41575.48835199999,
        "Natural Gas": 18750.836391999997,
        "Total": 71462.62731
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in industry classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Industry by Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry-energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 961.979936,
        "Coal/Lignite": 2593.234423,
        "Natural Gas": 1598.62211,
        "Total": 5153.836469
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 924.913488,
        "Coal/Lignite": 2552.388884,
        "Natural Gas": 1492.301745,
        "Total": 4969.604117
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Industry by Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry-energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 2883.1071759999995,
        "Coal/Lignite": 7829.450753,
        "Natural Gas": 4602.8494200000005,
        "Total": 15315.407349
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 2797.922003,
        "Coal/Lignite": 7035.335806,
        "Natural Gas": 4672.0268,
        "Total": 14505.284609
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Industry by Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry-energy-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
    "section": 1.1,
    "update_date": "2025-07-11T00:00:00.000Z",
    "unit": "1,000 Tons",
    "year_en": 2024,
    "year_remark": "",
    "period_no": 99,
    "period_name": "YTD",
    "Oil": 11407.921406999998,
    "Coal/Lignite": 28297.561759999997,
    "Natural Gas": 18671.719121000002,
    "Total": 58377.202288000015
  },
  {
    "section": 2.1,
    "update_date": "2025-07-11T00:00:00.000Z",
    "unit": "SHARE (%)",
    "year_en": 2024,
    "year_remark": "",
    "period_no": 99,
    "period_name": "YTD",
    "Oil": 19.54174054234354,
    "Coal/Lignite": 48.47365178686685,
    "Natural Gas": 31.98460767078958,
    "Total": 100
  },
  "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry-energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Others by Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/others-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 13471.467863,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 13471.467863
    },
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 13109.960068,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 13109.960068
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Others by Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/others-energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 1144.483792,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 1144.483792
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 1085.3944459999998,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 1085.3944459999998
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Others by Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/others-energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 3382.378398,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 3382.378398
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 3260.362832,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 3260.362832
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Others by Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/others-energy-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 13358.283795000001,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 13358.283795000001
    },
    {
        "section": 2.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 100,
        "Coal/Lignite": 0,
        "Natural Gas": 0,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/others-energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission by Sector and Energy Type

CO2 Emission by Sector and Energy Type (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/sector-energy-type/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation_Oil": 167.915696,
        "Power Generation_Coal/Lignite": 35446.982961999995,
        "Power Generation_Natural Gas": 55376.261823,
        "Power Generation_Total": 90991.160481,
        "Transport_Oil": 72932.25921399999,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 2958.5311859999997,
        "Transport_Total": 75890.79039999998,
        "Industry_Oil": 11851.760226000002,
        "Industry_Coal/Lignite": 39352.209396,
        "Industry_Natural Gas": 18340.957036,
        "Industry_Total": 69544.926658,
        "Other_Oil": 13471.467863000003,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 13471.467863000003,
        "Grand Total_Oil": 98423.402999,
        "Grand Total_Coal/Lignite": 74799.192358,
        "Grand Total_Natural Gas": 76675.750045,
        "Grand Total_Total": 249898.34540200004
    },
    {
        "section": "1.1",
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation_Oil": 454.341344,
        "Power Generation_Coal/Lignite": 35072.032717,
        "Power Generation_Natural Gas": 55328.44666500001,
        "Power Generation_Total": 90854.820726,
        "Transport_Oil": 68989.52635099998,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 2388.6453329999995,
        "Transport_Total": 71378.17168399997,
        "Industry_Oil": 11136.302566000002,
        "Industry_Coal/Lignite": 41575.488352,
        "Industry_Natural Gas": 18750.836392,
        "Industry_Total": 71462.62731,
        "Other_Oil": 13109.960068,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 13109.960068,
        "Grand Total_Oil": 93690.13032899998,
        "Grand Total_Coal/Lignite": 76647.52106900001,
        "Grand Total_Natural Gas": 76467.92839,
        "Grand Total_Total": 246805.57978799997
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission classified by sector and energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามสาขาและชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission by Sector and Energy Type (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/sector-energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Power Generation_Oil": 39.995547,
        "Power Generation_Coal/Lignite": 2640.486598,
        "Power Generation_Natural Gas": 4535.033355,
        "Power Generation_Total": 7215.5154999999995,
        "Transport_Oil": 6854.818264,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 189.488749,
        "Transport_Total": 7044.307013000001,
        "Industry_Oil": 961.979936,
        "Industry_Coal/Lignite": 2593.234423,
        "Industry_Natural Gas": 1598.62211,
        "Industry_Total": 5153.836469,
        "Other_Oil": 1144.4837920000002,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 1144.4837920000002,
        "Grand Total_Oil": 9001.277539,
        "Grand Total_Coal/Lignite": 5233.721020999999,
        "Grand Total_Natural Gas": 6323.144214,
        "Grand Total_Total": 20558.142774
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Power Generation_Oil": 38.338277,
        "Power Generation_Coal/Lignite": 2897.9390460000004,
        "Power Generation_Natural Gas": 4721.010715,
        "Power Generation_Total": 7657.288038000001,
        "Transport_Oil": 6525.026718,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 182.545858,
        "Transport_Total": 6707.5725760000005,
        "Industry_Oil": 924.913488,
        "Industry_Coal/Lignite": 2552.388884,
        "Industry_Natural Gas": 1492.301745,
        "Industry_Total": 4969.604117,
        "Other_Oil": 1085.3944459999998,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 1085.3944459999998,
        "Grand Total_Oil": 8573.672929,
        "Grand Total_Coal/Lignite": 5450.32793,
        "Grand Total_Natural Gas": 6395.8583180000005,
        "Grand Total_Total": 20419.859177000002
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission classified by sector and energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามสาขาและชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission by Sector and Energy Type (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/sector-energy-type/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Power Generation_Oil": 120.32566899999999,
        "Power Generation_Coal/Lignite": 8514.244185000001,
        "Power Generation_Natural Gas": 15138.35641,
        "Power Generation_Total": 23772.926264,
        "Transport_Oil": 20415.466032,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 566.456855,
        "Transport_Total": 20981.922887,
        "Industry_Oil": 2883.107176,
        "Industry_Coal/Lignite": 7829.450753,
        "Industry_Natural Gas": 4602.8494200000005,
        "Industry_Total": 15315.407349000001,
        "Other_Oil": 3382.3783980000003,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 3382.378398,
        "Grand Total_Oil": 26801.277275,
        "Grand Total_Coal/Lignite": 16343.694938,
        "Grand Total_Natural Gas": 20307.662685,
        "Grand Total_Total": 63452.634898000004
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Power Generation_Oil": 117.345405,
        "Power Generation_Coal/Lignite": 8263.852338,
        "Power Generation_Natural Gas": 17495.943253999998,
        "Power Generation_Total": 25877.140997,
        "Transport_Oil": 19838.389648999997,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 536.638156,
        "Transport_Total": 20375.027804999998,
        "Industry_Oil": 2797.9220029999997,
        "Industry_Coal/Lignite": 7035.335806,
        "Industry_Natural Gas": 4672.0268,
        "Industry_Total": 14505.284609,
        "Other_Oil": 3260.362832,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 3260.362832,
        "Grand Total_Oil": 26014.019888999996,
        "Grand Total_Coal/Lignite": 15299.188144,
        "Grand Total_Natural Gas": 22704.60821,
        "Grand Total_Total": 64017.816243
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission classified by sector and energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามสาขาและชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission by Sector and Energy Type (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/sector-energy-type/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation_Oil": 469.627374,
        "Power Generation_Coal/Lignite": 31918.7717,
        "Power Generation_Natural Gas": 61497.088401999994,
        "Power Generation_Total": 93885.487476,
        "Transport_Oil": 80100.64252299999,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 2120.0390159999997,
        "Transport_Total": 82220.68153899998,
        "Industry_Oil": 11407.921406999998,
        "Industry_Coal/Lignite": 28297.561759999997,
        "Industry_Natural Gas": 18671.719121000002,
        "Industry_Total": 58377.202288000015,
        "Other_Oil": 13358.283794999998,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 13358.283795,
        "Grand Total_Oil": 105336.475099,
        "Grand Total_Coal/Lignite": 60216.333459999994,
        "Grand Total_Natural Gas": 82288.84653899999,
        "Grand Total_Total": 247841.655098
    },
    {
        "section": 2.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Power Generation_Oil": 0.500212957961209,
        "Power Generation_Coal/Lignite": 33.99755655330588,
        "Power Generation_Natural Gas": 65.50223048873292,
        "Power Generation_Total": 100,
        "Transport_Oil": 97.42152585418015,
        "Transport_Coal/Lignite": 0,
        "Transport_Natural Gas": 2.5784741458198632,
        "Transport_Total": 100,
        "Industry_Oil": 19.54174054234354,
        "Industry_Coal/Lignite": 48.47365178686685,
        "Industry_Natural Gas": 31.98460767078958,
        "Industry_Total": 100,
        "Other_Oil": 99.99999999999999,
        "Other_Coal/Lignite": 0,
        "Other_Natural Gas": 0,
        "Other_Total": 100,
        "Grand Total_Oil": 42.501521811314774,
        "Grand Total_Coal/Lignite": 24.296292500221416,
        "Grand Total_Natural Gas": 33.20218568846381,
        "Grand Total_Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/sector-energy-type/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission classified by sector and energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ จำแนกตามสาขาและชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission per Energy Consumption (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "KTOE",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 499796.69080400007,
        "Commercial Primary Energy Consumption (ktoe)": 97803.14021,
        "Renewable (ktoe)": 24016.56,
        "TPEC (ktoe)": 121819.70020999998,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 2.051378758700034
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "KTOE",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 740416.739364,
        "Commercial Primary Energy Consumption (ktoe)": 96823.50274,
        "Renewable (ktoe)": 24265.180999999997,
        "TPEC (ktoe)": 121088.68373999998,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 2.038221674933206
    },
    "total": 56
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission per energy consumption in current year and 5 years ago (CO2 emission Unit: 1,000 Tons-CO2) (primary energy consumption Unit: ktoe) (CO2/TPEC Unit: 1,000 Tons-CO2/ktoe)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการใช้พลังงานขั้นต้น: ktoe) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน: พันตัน-CO2/ktoe)

CO2 Emission per Energy Consumption (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "JAN",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 22279.873869,
        "Commercial Primary Energy Consumption (ktoe)": 8891.78401,
        "Renewable (ktoe)": 2881.08,
        "TPEC (ktoe)": 11772.86401,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 1.892476958034615
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "FEB",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 20791.974094,
        "Commercial Primary Energy Consumption (ktoe)": 8289.195349999998,
        "Renewable (ktoe)": 2861.28,
        "TPEC (ktoe)": 11150.475349999999,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 1.864671544608186
    },
    "total": 128
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission per energy consumption as monthly (CO2 emission Unit: 1,000 Tons-CO2) (primary energy consumption Unit: ktoe) (CO2/TPEC Unit: 1,000 Tons-CO2/ktoe) (2017-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน รายเดือน (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการใช้พลังงานขั้นต้น: ktoe) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน: พันตัน-CO2/ktoe) (2560-ปัจจุบัน)

CO2 Emission per Energy Consumption (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 1,
        "period_name": "Q1",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 64907.273774999994,
        "Commercial Primary Energy Consumption (ktoe)": 25825.97352,
        "Renewable (ktoe)": 8002.820000000001,
        "TPEC (ktoe)": 33828.79352,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 1.9186990436601299
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 2,
        "period_name": "Q2",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 60088.746737,
        "Commercial Primary Energy Consumption (ktoe)": 22933.81038,
        "Renewable (ktoe)": 5746.35,
        "TPEC (ktoe)": 28680.16038,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 2.0951328702786007
    },
    "total": 44
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission per energy consumption as quarterly (CO2 emission Unit: 1,000 Tons-CO2) (primary energy consumption Unit: ktoe) (CO2/TPEC Unit: 1,000 Tons-CO2/ktoe) (2017-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน รายไตรมาส (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการใช้พลังงานขั้นต้น: ktoe) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน: พันตัน-CO2/ktoe) (2560-ปัจจุบัน)

CO2 Emission per Energy Consumption (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-consumption/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 249898.34540200006,
        "Commercial Primary Energy Consumption (ktoe)": 97803.14021000001,
        "Renewable (ktoe)": 24016.559999999998,
        "TPEC (ktoe)": 121819.70021,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 2.051378758700034
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "year_remark": "",
        "CO2 Emission (1,000 Tons-CO2)": 246805.579788,
        "Commercial Primary Energy Consumption (ktoe)": 96823.50273999998,
        "Renewable (ktoe)": 24265.181000000004,
        "TPEC (ktoe)": 121088.68373999998,
        "CO2/TPEC (1,000 Tons-CO2/ KTOE)": 2.038221674933206
    },
    "total": 12
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-consumption/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission per energy consumption as yearly (CO2 emission Unit: 1,000 Tons-CO2) (primary energy consumption Unit: ktoe) (CO2/TPEC Unit: 1,000 Tons-CO2/ktoe) (2017-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน รายปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการใช้พลังงานขั้นต้น: ktoe) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อการใช้พลังงาน: พันตัน-CO2/ktoe) (2560-ปัจจุบัน)

CO2 Emission

CO2 Emission per Capita (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/capita/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/capita/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/capita/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/capita/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/capita/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/capita/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "co2_emission": 247841.655098,
        "population": 65951210,
        "co2_per_pop": 3.757954631886208
    },
    {
        "section": 2.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2024,
        "year_remark": "",
        "co2_emission": 1.870311707598523,
        "population": -0.15352155247752114,
        "co2_per_pop": 2.0269450575963286
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/capita/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission per capita as yearly (CO2 emission Unit: 1,000 Tons-CO2) (population Unit: person) (CO2/POP Unit: Tons-CO2/person) (1993-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหัวประชากร รายปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยประชากร: คน) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหัวประชากร: ตัน-CO2/คน) (2536-ปัจจุบัน)

CO2 Emission

CO2 Emission per GDP (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/gdp/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "CO2 Emission (1,000 Tons-CO2)": 63452.634898,
        "GDP CVM (Million of Bahts)": 2899023,
        "CO2/GDP (Tons-CO2 /  Million Bahts)": 21.887592784879597
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "CO2 Emission (1,000 Tons-CO2)": 64017.816243,
        "GDP CVM (Million of Bahts)": 2694894,
        "CO2/GDP (Tons-CO2 /  Million Bahts)": 23.755226084217043
    },
    "total": 10
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/gdp/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

CO2 emission per GDP as quarterly (CO2 emission Unit: 1,000 Tons-CO2) (GDP Unit: Million of Bahts) (CO2/GDP Unit: Tons-CO2/Million Bahts) (1993-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อผลิตภัณฑ์มวลรวมในประเทศ รายไตรมาส (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยผลิตภัณฑ์มวลรวมในประเทศ: ล้านบาท) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อผลิตภัณฑ์มวลรวมในประเทศ: ตัน-CO2/ล้านบาท) (2536-ปัจจุบัน)

CO2 Emission per GDP (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/gdp/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/gdp/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/gdp/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/gdp/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/gdp/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/gdp/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 247841.655098,
        "GDP CVM (Million of Bahts)": 11179501,
        "CO2/GDP (Tons-CO2 /  Million Bahts)": 22.169294953146835
    },
    {
        "section": 1.2,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 1.870311707598511,
        "GDP CVM (Million of Bahts)": 2.541820677352894,
        "CO2/GDP (Tons-CO2 /  Million Bahts)": -0.6548635135583136
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/gdp/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

CO2 emission per GDP as yearly (CO2 emission Unit: 1,000 Tons-CO2) (GDP Unit: Million of Bahts) (CO2/GDP Unit: Tons-CO2/Million Bahts) (1993-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อผลิตภัณฑ์มวลรวมในประเทศ รายปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยผลิตภัณฑ์มวลรวมในประเทศ: ล้านบาท) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อผลิตภัณฑ์มวลรวมในประเทศ: ตัน-CO2/ล้านบาท) (2536-ปัจจุบัน)

CO2 Emission

CO2 Emission per kWh (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/kWh/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-11T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-11T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/kWh/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/kWh/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-11T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-11T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/kWh/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-11T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/kWh/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/kWh/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-11T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 90991.160481,
        "Generation (GWh)": 206023.24906899992,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.4416548175615163,
        "Consumption (GWh)": 187046.483285,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.4864628240155582
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 90854.82072600002,
        "Generation (GWh)": 209716.76842399998,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.43322630521519423,
        "Consumption (GWh)": 190468.05788500002,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.47700817520203803
    },
    "total": 44
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/kWh/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission per kWh in current year and 5 years ago (CO2 emission Unit: 1,000 Tons-CO2) (Generation Unit: GWh) (Consumption Unit: GWh) (CO2/kWh Unit: kg-CO2/kWh)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยไฟฟ้า ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการผลิตไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (หน่วยการใช้ไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการใช้ไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง)

CO2 Emission per kWh (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/kWh/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/kWh/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/kWh/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/kWh/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/kWh/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/kWh/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "JAN",
        "CO2 Emission (1,000 Tons-CO2)": 7215.5155,
        "Generation (GWh)": 18300.752613999994,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.3942742493814251,
        "Consumption (GWh)": 16372.75603899999,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.44070255996074237
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "FEB",
        "CO2 Emission (1,000 Tons-CO2)": 7657.288038,
        "Generation (GWh)": 18632.563077999996,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.41096267893713345,
        "Consumption (GWh)": 16451.096231999996,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.4654576163201427
    },
    "total": 26
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/kWh/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission per kWh as monthly (CO2 emission Unit: 1,000 Tons-CO2) (Generation Unit: GWh) (Consumption Unit: GWh) (CO2/kWh Unit: kg-CO2/kWh) (1999-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยไฟฟ้า รายเดือน (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการผลิตไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (หน่วยการใช้ไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการใช้ไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (2542-ปัจจุบัน)

CO2 Emission per kWh (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/kWh/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 1,
        "period_name": "Q1",
        "CO2 Emission (1,000 Tons-CO2)": 23772.926264,
        "Generation (GWh)": 58334.255771,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.4075294344599894,
        "Consumption (GWh)": 51723.92656699997,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.4596117859150934
    },
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 2,
        "period_name": "Q2",
        "CO2 Emission (1,000 Tons-CO2)": 25877.140997000002,
        "Generation (GWh)": 63721.963420000015,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.4060945333156214,
        "Consumption (GWh)": 57671.04958899998,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.44870244570571743
    },
    "total": 10
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/kWh/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission per kWh as quarterly (CO2 emission Unit: 1,000 Tons-CO2) (Generation Unit: GWh) (Consumption Unit: GWh) (CO2/kWh Unit: kg-CO2/kWh) (1999-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยไฟฟ้า รายไตรมาส (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการผลิตไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (หน่วยการใช้ไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการใช้ไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (2542-ปัจจุบัน)

CO2 Emission per kWh (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/kWh/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/kWh/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/kWh/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/kWh/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/kWh/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/kWh/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 93885.487476,
        "Generation (GWh)": 235512.41572600004,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": 0.39864347357902485,
        "Consumption (GWh)": 214468.96789599996,
        "Consumption CO2/kWh (kg-CO2 / kWh)": 0.4377579115386373
    },
    {
        "section": 1.2,
        "update_date": "2025-07-11T00:00:00.000Z",
        "unit": "GROWTH RATE (%)",
        "year_en": 2024,
        "period_no": 99,
        "period_name": "YTD",
        "CO2 Emission (1,000 Tons-CO2)": 5.1220403901581,
        "Generation (GWh)": 5.476968440949903,
        "Generation (GWh) CO2/kWh (kg-CO2 / kWh)": -0.3364981531399396,
        "Consumption (GWh)": 5.17172438801046,
        "Consumption CO2/kWh (kg-CO2 / kWh)": -0.04724083221179759
    }
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/kWh/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission per kWh as yearly (CO2 emission Unit: 1,000 Tons-CO2) (Generation Unit: GWh) (Consumption Unit: GWh) (CO2/kWh Unit: kg-CO2/kWh) (1999-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยไฟฟ้า รายปี (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์: พันตัน-CO2) (หน่วยการผลิตไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการผลิตไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (หน่วยการใช้ไฟฟ้า: กิกะวัตต์ชั่วโมง) (หน่วยการปล่อยก๊าซคาร์บอนไดออกไซด์ต่อหน่วยการใช้ไฟฟ้า: กิโลกรัม-CO2/กิโลวัตต์ชั่วโมง) (2542-ปัจจุบัน)

CO2 Emission

CO2 Emission in Power Generation (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-14T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-14T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/power-generation/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-14T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-14T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/power-generation/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-14T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/power-generation/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/power-generation/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-14T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": "1.1",
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 167.91569600000005,
        "Coal/Lignite": 35446.982961999995,
        "Natural Gas": 55376.261823,
        "Total": 90991.160481
    },
    {
        "section": "1.1",
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 454.34134400000005,
        "Coal/Lignite": 35072.03271700001,
        "Natural Gas": 55328.44666500002,
        "Total": 90854.82072600003
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/power-generation/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in power generation classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Power Generation (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/energy-type/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/energy-type/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/energy-type/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 39.995547,
        "Coal/Lignite": 2640.486598,
        "Natural Gas": 4535.033355,
        "Total": 7215.5154999999995
    },
    {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 38.338277,
        "Coal/Lignite": 2897.9390460000004,
        "Natural Gas": 4721.010715,
        "Total": 7657.288038000001
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/energy-type/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Power Generation (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/power-generation/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 120.32566899999999,
        "Coal/Lignite": 8514.244185000001,
        "Natural Gas": 15138.35641,
        "Total": 23772.926264
    },
    {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 117.345405,
        "Coal/Lignite": 8263.852338,
        "Natural Gas": 17495.943253999998,
        "Total": 25877.140997000002
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/power-generation/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Power Generation (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/power-generation/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/power-generation/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/power-generation/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/power-generation/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/power-generation/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
    {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 469.627374,
        "Coal/Lignite": 31918.7717,
        "Natural Gas": 61497.088401999994,
        "Total": 93885.48747599998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 0.500212957961209,
        "Coal/Lignite": 33.99755655330588,
        "Natural Gas": 65.50223048873292,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/power-generation/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in power generation classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการผลิตไฟฟ้า จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Transport (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-14T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-14T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-14T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-14T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-14T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-14T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
   {
        "section": "1.1",
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2020,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 72932.259214,
        "Coal/Lignite": 0,
        "Natural Gas": 2958.531186,
        "Total": 75890.7904
    },
    {
        "section": "1.1",
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2021,
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 68989.526351,
        "Coal/Lignite": 0,
        "Natural Gas": 2388.6453330000004,
        "Total": 71378.171684
    },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in transport classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Transport (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "JAN",
        "Oil": 6854.818264,
        "Coal/Lignite": 0,
        "Natural Gas": 189.488749,
        "Total": 7044.307013000001
    },
    {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "FEB",
        "Oil": 6525.026718,
        "Coal/Lignite": 0,
        "Natural Gas": 182.545858,
        "Total": 6707.5725760000005
    },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Transport (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 1,
        "period_name": "Q1",
        "Oil": 20415.466032,
        "Coal/Lignite": 0,
        "Natural Gas": 566.456855,
        "Total": 20981.922886999997
    },
    {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 2,
        "period_name": "Q2",
        "Oil": 19838.389649,
        "Coal/Lignite": 0,
        "Natural Gas": 536.638156,
        "Total": 20375.027804999998
    },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Transport (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/transport/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/transport/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/transport/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/transport/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/transport/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/transport/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
        "section": 1.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "1,000 Tons",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 80100.64252299999,
        "Coal/Lignite": 0,
        "Natural Gas": 2120.0390159999997,
        "Total": 82220.68153899998
    },
    {
        "section": 2.1,
        "update_date": "2025-07-14T00:00:00.000Z",
        "unit": "SHARE (%)",
        "year_en": 2024,
        "year_remark": "",
        "period_no": 99,
        "period_name": "YTD",
        "Oil": 97.42152585418015,
        "Coal/Lignite": 0,
        "Natural Gas": 2.5784741458198632,
        "Total": 100
    },
    "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/transport/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in transport classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากการขนส่ง จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Industry (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-14T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-14T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-14T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-14T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-14T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-14T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": "1.1",
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2020,
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 11851.760226000008,
      "Coal/Lignite": 39352.20939599999,
      "Natural Gas": 18340.957036,
      "Total": 69544.926658
  },
  {
      "section": "1.1",
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2021,
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 11136.302566000002,
      "Coal/Lignite": 41575.488352,
      "Natural Gas": 18750.836392,
      "Total": 71462.62731
  },
    "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in industry classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Industry (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "JAN",
      "Oil": 961.9799360000001,
      "Coal/Lignite": 2593.234423,
      "Natural Gas": 1598.62211,
      "Total": 5153.836469
  },
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "FEB",
      "Oil": 924.9134880000001,
      "Coal/Lignite": 2552.388884,
      "Natural Gas": 1492.301745,
      "Total": 4969.604117
  },
    "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Industry (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "Q1",
      "Oil": 2883.1071760000004,
      "Coal/Lignite": 7829.450753,
      "Natural Gas": 4602.8494200000005,
      "Total": 15315.407349
  },
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "Q2",
      "Oil": 2797.9220029999997,
      "Coal/Lignite": 7035.335806,
      "Natural Gas": 4672.0268,
      "Total": 14505.284609
  },
  "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Industry (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/industry/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/industry/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/industry/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/industry/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/industry/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/industry/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 11407.921406999998,
      "Coal/Lignite": 28297.561759999997,
      "Natural Gas": 18671.719121000002,
      "Total": 58377.202288000015
  },
  {
      "section": 2.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 19.54174054234354,
      "Coal/Lignite": 48.47365178686685,
      "Natural Gas": 31.98460767078958,
      "Total": 100
  },
  "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/industry/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in industry classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาอุตสาหกรรม จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission

CO2 Emission in Other Sectors (Current)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2025-07-14T00:00:00.000Z"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"date": "2025-07-14T00:00:00.000Z"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/other-sectors/current", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"date": "2025-07-14T00:00:00.000Z"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"date\": \"2025-07-14T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"date": "2025-07-14T00:00:00.000Z"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""date"": ""2025-07-14T00:00:00.000Z""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
 {
      "section": "1.1",
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2020,
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 13471.467863000005,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 13471.467863000005
  },
  {
      "section": "1.1",
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2021,
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 13109.960067999995,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 13109.960067999995
  },
  "total": 50
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/other-sectors/current

Query Parameters

Parameter Type Default Description
date String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type in current year and 5 years ago (Unit: Thousand Tons)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน ของปีปัจจุบันและย้อนหลัง 5 ปี (หน่วย: พันตัน)

CO2 Emission in Other Sectors (Month)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month' \
--header 'Content-Type: application/json' \
--data-raw '{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/other-sectors/month", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startMonth\":\"1\",\"endMonth\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startMonth":"1","endMonth":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startMonth"":""1"",""endMonth"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "JAN",
      "Oil": 1144.483792,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 1144.483792
  },
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "FEB",
      "Oil": 1085.3944459999998,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 1085.3944459999998
  },
  "total": 39
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/other-sectors/month

Query Parameters

Parameter Type Default Description
startMonth String
endMonth String
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as monthly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายเดือน (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Other Sectors (Quarter)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter' \
--header 'Content-Type: application/json' \
--data-raw '{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/other-sectors/quarter", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startQuarter\":\"1\",\"endQuarter\":\"1\",\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startQuarter":"1","endQuarter":"1","startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startQuarter"":""1"",""endQuarter"":""1"",""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 1,
      "period_name": "Q1",
      "Oil": 3382.3783980000003,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 3382.3783980000003
  },
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 2,
      "period_name": "Q2",
      "Oil": 3260.362832,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 3260.362832
  },
    "total": 15
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/other-sectors/quarter

Query Parameters

Parameter Type Default Description
startQuarter String
endQuarter String
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as quarterly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายไตรมาส (หน่วย: พันตัน) (2529-ปัจจุบัน)

CO2 Emission in Other Sectors (Year)

curl --location --request POST 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year' \
--header 'Content-Type: application/json' \
--data-raw '{"startYear":"2024","endYear":"2025"}'
import http.client
import json

conn = http.client.HTTPSConnection("api.eppo.go.th")
payload = json.dumps({"startYear":"2024","endYear":"2025"})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/v1/openAPI/emission/other-sectors/year", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"startYear":"2024","endYear":"2025"}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"startYear\":\"2024\",\"endYear\":\"2025\"}");
Request request = new Request.Builder()
  .url("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({"startYear":"2024","endYear":"2025"});

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow",
};

fetch("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
var client = new RestClient("https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{""startYear"":""2024"",""endYear"":""2025""}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Example Response

[
  {
      "section": 1.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "1,000 Tons",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 13358.283795000001,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 13358.283795000001
  },
  {
      "section": 2.1,
      "update_date": "2025-07-14T00:00:00.000Z",
      "unit": "SHARE (%)",
      "year_en": 2024,
      "year_remark": "",
      "period_no": 99,
      "period_name": "YTD",
      "Oil": 100,
      "Coal/Lignite": 0,
      "Natural Gas": 0,
      "Total": 100
  },
  "total": 3
]

Descriptions

HTTP Request

Post https://api.eppo.go.th/v1/openAPI/emission/other-sectors/year

Query Parameters

Parameter Type Default Description
startYear String
endYear String

Quantity of CO2 emission in other sectors (residential, agriculture, comercial and others) classified by energy type as yearly (Unit: Thousand Tons) (1986-present)

ปริมาณการปล่อยก๊าซคาร์บอนไดออกไซด์จากสาขาเศรษฐกิจอื่น ๆ (ครัวเรือน เกษตรกรรม พาณิชยกรรม และกิจกรรมอื่น ๆ) จำแนกตามชนิดพลังงาน รายปี (หน่วย: พันตัน) (2529-ปัจจุบัน)