Travel Theme Lookup

The Travel Theme Lookup API returns a list of supported Sabre themes. A theme is similar to a travel category, and is based on geography, points of interest, and recreational activities, such as beaches, national parks, or skiing.

Data used by the Travel Theme Lookup API

  • Sabre® creates and maintains the file of themes with airports in the  Sabre cache.

HTTP method and endpoint

/v1/lists/supported/shop/themes/

Request

Travel Theme Lookup API requests do not have variations or parameters. The URI requests a list of all themes.

Response

Themes

array

Repeats for each Sabre theme

Theme

string

Returns the valid travel themes

Return values: BEACH, DISNEY, GAMBLING, HISTORIC, MOUNTAINS, NATIONAL-PARKS, OUTDOORS, ROMANTIC, SHOPPING, SKIING, THEME-PARK, CARIBBEAN

Links

array

Contains  destinations link objects for each Theme 

destinations link

object

Invokes the Theme Airport Lookup API to return a list of airport codes that correspond to the theme in the Theme object

Overall response Links

array

For more information, see Links nodes in response payloads.

self link

object

Returns the URL of the request that generated the response

linkTemplate link

object

Formats a Travel Theme Lookup request

Example: request and response

Request

GET https://api.sabre.com/v1/lists/supported/shop/themes/ HTTP/1.1

Response

{
    "Themes": [
        {
            "Theme": "BEACH",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/BEACH"
                }
            ]
        },
        {
            "Theme": "CARIBBEAN",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/CARIBBEAN"
                }
            ]
        },
        {
            "Theme": "DISNEY",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/DISNEY"
                }
            ]
        },
        {
            "Theme": "GAMBLING",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/GAMBLING"
                }
            ]
        },
        {
            "Theme": "HISTORIC",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/HISTORIC"
                }
            ]
        },
        {
            "Theme": "MOUNTAINS",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/MOUNTAINS"
                }
            ]
        },
        {
            "Theme": "NATIONAL-PARKS",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/NATIONAL-PARKS"
                }
            ]
        },
        {
            "Theme": "OUTDOORS",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/OUTDOORS"
                }
            ]
        },
        {
            "Theme": "ROMANTIC",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/ROMANTIC"
                }
            ]
        },
        {
            "Theme": "SHOPPING",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/SHOPPING"
                }
            ]
        },
        {
            "Theme": "SKIING",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/SKIING"
                }
            ]
        },
        {
            "Theme": "THEME-PARK",
            "Links": [
                {
                    "rel": "destinations",
                    "href": "https://api.sabre.com/v1/lists/supported/shop/themes/THEME-PARK"
                }
            ]
        }
    ],
    "Links": [
        {
            "rel": "self",
            "href": "https://api.sabre.com/v1/shop/themes"
        },
        {
            "rel": "linkTemplate",
            "href": "https://api.sabre.com/v1/shop/themes"
        }
    ]
}

Usage notes

Links nodes

  • Sabre® REST APIs have one or more Links nodes that combine related URI resources in a response. For more information, see the links nodes page.

Theme Airport Lookup API

To get a list of destination airport codes that are associated with the optional theme parameter, use the Theme Airport Lookup API. The response will be a list of valid themes that we associate with that destination, e.g., Las Vegas would be associated as a GAMBLING destination.

Errors

An HTTP status code is always returned.

For more information about HTTP status codes and error response formats, see Sabre APIs: common errors.

Status 404 NOT FOUND

No results were found

The service cannot find data to fulfill the request using the filters that you applied.

Status 413 FULL head

The API returns this error when a request URI is too long. For example, the HTTP request’s query string exceeds the server limit.

The response will be empty as a result.

Please consider reducing the number of request parameters in the URI or separating parameters into multiple HTTP requests.

Docs Navigation