Skip to content
Navigation

Structure a raw hotel room description

POST
https://api.nicer.travel/agent/room-description

Turns a raw hotel room description, often in capitals, into a clean room title and sections of bullet points (highlights, meals, amenities, cancellation, beds, bathroom and the rest), with one model call. Answers are kept for 30 days by description and currency; noCache=true asks for a fresh one. Anyone may call it without a token, so the Pay page can, up to 50 times an hour per IP address.

Query parameters

  • noCache
    optional
    true

Request body JSON required

  • description
    string
    required
    maxLength: 16000 · minLength: 1
  • currencyCode
    optional
    string
    maxLength: 3

Returns

200

OK

JSON
  • roomTitle
    string
    required

    Clean, concise room name e.g. 'Standard King Guest Room', 'Deluxe Suite Ocean View'

  • sections
    array of
    object
    required

    Organized sections of room information, omit empty sections

    • infos
      array of
      string
      required

      List of clean, human-readable bullet points for this section

    • sectionTitle
      string
      ·
      one of 13 values
      required

      Section category — only include sections that have relevant content

      Allowed values: Highlights, Meal, Amenities, Cancellation information, Bed & Bedding, Bathroom, Room Features, Internet & Technology, View, Accessibility, Location, Loyalty & Perks, Other

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

429

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close