บริการข้อมูล BOT API ในกลุ่มสถิติ ประกอบด้วย สถิติเศรษฐกิจการเงิน สถิติสถาบันการเงิน สถิติตลาดการเงิน และสถิติระบบการชำระเงิน ซึ่งเป็นข้อมูลที่ ธปท. เผยแพร่บน BOT Website ผู้ใช้บริการสามารถเลือกข้อมูลที่ต้องการ (Observations) โดยระบุ series code ซึ่งสามารถ Download ได้จาก List of Statistics APIs ท้ายนี้
The BOT API products on Statistics include economic and financial, financial Institutions, financial market and payment systems statistics, all of which are published on the BOT Website. Users can filter observations by series code, downloadable from List of Statistics APIs below.
Download API list Document click
production
https://apigw1.bot.or.th/bot/public
API Gateway
Paths
/
get /
clientIdHeader
X-IBM-Client-Id
(apiKey located in header)
series_code
Required in query
string
The code for series
start_period
Required in query
string
start period: format (YYYY-MM-DD)
end_period
Optional in query
string
end period: format (YYYY-MM-DD)
sort_by
Optional in query
string
sort data (asc, desc)
Accept
Optional in header
string
application/xml
application/json
application/json
200
200 OK
Example Request
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).
Definitions
{
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"api": {
"type": "string",
"example": "Bank of Thailand Statistics"
},
"timestamp": {
"type": "string",
"example": "2018-07-23 15:53:34"
},
"series": {
"type": "array",
"items": {
"properties": {
"series_code": {
"type": "string",
"example": "PF00000000Q00232"
},
"series_name_th": {
"type": "string",
"example": "FSIs ยอดรวมตราสารหนี้"
},
"series_name_eng": {
"type": "string",
"example": "Government debt securities_Total"
},
"unit_th": {
"type": "string",
"example": "ล้านบาท"
},
"unit_eng": {
"type": "string",
"example": "Millions of Baht"
},
"series_type": {
"type": "string",
"example": "Stock"
},
"frequency": {
"type": "string",
"example": "Quarterly"
},
"last_update_date": {
"type": "string",
"example": "2018-04-30"
},
"observations": {
"type": "object",
"properties": {
"period_start": {
"type": "string"
},
"value": {
"type": "string"
}
},
"example": [
{
"period_start": "2017-Q1",
"value": "8648519.0000000"
},
{
"period_start": "2017-Q2",
"value": "8472552.0000000"
},
{
"period_start": "2017-Q3",
"value": "8454779.0000000"
},
{
"period_start": "2017-Q4",
"value": "8690422.0000000"
},
{
"period_start": "2018-Q1",
"value": "8722207.0000000"
}
]
}
}
}
}
}
}
}
}