Developers

traveldata API: REST endpoints for hotel, room and board mapping

JSON over REST. Send a hotel record and get the TravelData ID, a confidence score and the supplier codes back.

Quick start

Send your API key in the Authorization header. All responses are UTF-8 JSON.

curl https://api.traveldata.pro/v1/match/hotel \
  -H "Authorization: Bearer $TRAVELDATA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "AURORA BEACH RST SPA 5*", "address": "Belek, Serik, Antalya" }'
Choose a sample request

Request

POST /v1/match/hotel
{
  "name": "AURORA BEACH RST SPA 5*",
  "address": "Belek, Serik, Antalya",
  "geo": { "lat": 36.8571, "lng": 31.0432 }
}

Response

{
  "td_id": "TD-1048213",
  "name": "Aurora Beach Resort & Spa",
  "destination": "Belek, Antalya, TR",
  "stars": 5,
  "board_types": ["AI", "UAI"],
  "supplier_codes": {
    "supplier_a": "HTL-88213",
    "supplier_b": "40917",
    "supplier_c": "TR-ANT-551"
  },
  "match_score": 0.998,
  "languages": ["en", "tr", "de", "ru", "ar"]
}

Request

POST /v1/match/board
{
  "names": [
    "Ultra Her Şey Dahil",
    "Soft AI",
    "Half Board Plus"
  ]
}

Response

{
  "results": [
    { "input": "Ultra Her Şey Dahil", "code": "UAI" },
    { "input": "Soft AI", "code": "SAI" },
    { "input": "Half Board Plus", "code": "HB+" }
  ]
}

Request

POST /v1/match/rooms
{
  "td_id": "TD-1048213",
  "names": [
    "Deluxe Sea View DBL",
    "Dlx Room Seaside Double"
  ]
}

Response

{
  "rooms": [
    {
      "room_code": "DLX-SEA-DBL",
      "type": "Deluxe",
      "view": "Sea",
      "bed": "DBL",
      "supplier_names": [
        "Deluxe Sea View DBL",
        "Dlx Room Seaside Double"
      ]
    }
  ]
}

Hotel and supplier names are examples.

Endpoints

MethodPathWhat it does
GET/v1/hotels/{td_id}Single hotel card (content + mapping)
GET/v1/hotels?country=TR&city=antalyaList and filter hotels
POST/v1/match/hotelTravelData ID and score from name, address and coordinates
POST/v1/match/roomsStandard room codes from room names
POST/v1/match/boardStandard board code from a board name
GET/v1/mappings/{supplier}Supplier code ↔ TravelData ID table
GET/v1/destinations/{id}Destination hierarchy
GET/v1/hotels/{td_id}/imagesTagged and scored images
GET/v1/hotels/{td_id}/content?lang=deMultilingual descriptions
GET/v1/dumps/latestBulk file links
POST/v1/webhooksWebhook subscription

Delivery formats

  • REST API

    For on-the-fly matching and single lookups.

  • Bulk files

    Full and delta files; CSV and JSON.

  • Webhooks

    Hotel closed, new match and content updated notifications.

Request API access