CBT Thailand Data API

GetRecommendedRoute



Description


      This service allows you to search any recommended routes in CBT. You can query specified area by sending a parameter "provinceName".


Request Header

Header

Description

Content-Type

application/json, text/json

Method

GET

Authorization

Bearer {Your CBT API key}

Accept-Language

Display language support: "th" or "en"


Parameter

Name

Type

Required

Description

numberOfDay

String

Optional

Number of days for filtering.

provinceName

String

Optional

Refer to province name in Thailand.

numberOfResult

Int

Optional

Number of record to return per/page. Default value is "20" and Maximum value is "100".

pageNumber

Int

Optional

Number of Page. Default value is "1".


*Required parameters must be assigned at least one value.


Status Codes

Status Codes

Description

200 OK

Request successful

400 Bad Request

Problem with the request

401 Unauthorized

Valid API Key is not specified

403 Forbidden

Not authorized to access the resource

404 Not Found

No result found for the query

405 Method Not Allowed

A request method is not supported for the requested resource

500 Internal Server Error

Error on the internal server


Response Body

Name

Type

Description

page

-

result

-


API Reference

Input


Output


Sample

https://cbtthailand.dasta.or.th/CBTAPI/Route/GetRoute?numberOfDay=3&provinceName=สมุทรปราการ&pageNumber=1&numberOfResult=50