API Documentation

URL: https://thailand.go.th/api/news
Service Type: REST/JSON
Method: GET
Parameter
Parameter Name Required Default Description
api_token True -
type True - ex: useful, event, issue
hl - en language content ex: en, th, cn, jp, de
Parameter Description
Parameter: Type
Type Description
useful Target
issue Topic
event Events
guidebook Guide Books
Parameter: hl
hl Languages
en English
th Thai
cn Chinese
jp Japanese
de German
Code Example
    var myHeaders = new Headers();
    myHeaders.append("Authorization", "Bearer xxxxx");

    var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
    };

    fetch("https://thailand.go.th/api/news?type=guidebook&hl=th", requestOptions)
    .then(response => response.text())
    .then(result => console.log(result))
    .catch(error => console.log('error', error));
                
Request API Token
Please contact the administrator for request api_token
Copyright 2022, The Government Public Relations Department
Web Traffic Statistics : 20,463,032