apidocs
  1. Content
apidocs
  • Auth
    • Ticket
      POST
  • Resource
    • CheckAvail
      POST
    • HotelDetail
      POST
    • HotelIdList
      POST
    • HotelList
      POST
  • Content
    • Region
      POST
    • Regions
      POST
  • Trade
    • Book
      POST
    • Cancel
      POST
    • QueryOrders
      POST
  1. Content

Region

POST
/api/search/region
Get region details by region id.

Request

Header Params

Body Params application/json

Example
{
    "Authorization": "string",
    "Currency": "string",
    "Device-Id": "string",
    "IPv4": "string",
    "IPv6": "string",
    "Language": "string",
    "Session-Id": "string",
    "Test": "string",
    "Timeout-Milliseconds": 0,
    "Trace-Id": "string",
    "UseOriginal-Currency": true,
    "User-Agent": "string",
    "id": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hotelbyte.online/api/search/region' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Authorization": "string",
    "Currency": "string",
    "Device-Id": "string",
    "IPv4": "string",
    "IPv6": "string",
    "Language": "string",
    "Session-Id": "string",
    "Test": "string",
    "Timeout-Milliseconds": 0,
    "Trace-Id": "string",
    "UseOriginal-Currency": true,
    "User-Agent": "string",
    "id": "string"
}'

Responses

🟢200OK
application/json
Success
Headers

Body

Example
{
    "region": {
        "ancestors": [
            {
                "ancestors": [
                    {}
                ],
                "coordinates": {
                    "boundingPolygon": {
                        "coordinates": [
                            {
                                "lat": 0,
                                "lng": 0
                            }
                        ],
                        "type": "string"
                    },
                    "centerLat": 0,
                    "centerLng": 0
                },
                "countryCode": "string",
                "countrySubdivisionCode": "string",
                "descendants": {},
                "expediaId": "string",
                "extra": {
                    "countryName": "string",
                    "nameZh": "string",
                    "provinceName": "string"
                },
                "id": 0,
                "name": "string",
                "nameFull": "string",
                "tripId": "string",
                "type": "0"
            }
        ],
        "coordinates": {
            "boundingPolygon": {
                "coordinates": [
                    {
                        "lat": 0,
                        "lng": 0
                    }
                ],
                "type": "string"
            },
            "centerLat": 0,
            "centerLng": 0
        },
        "countryCode": "string",
        "countrySubdivisionCode": "string",
        "descendants": {},
        "expediaId": "string",
        "extra": {
            "countryName": "string",
            "nameZh": "string",
            "provinceName": "string"
        },
        "id": 0,
        "name": "string",
        "nameFull": "string",
        "tripId": "string",
        "type": "0"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-06-06 07:47:34
Previous
HotelList
Next
Regions
Built with