---
title: "List preferred hotels"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# List preferred hotels

Path: Nicer API › internova

`GET /internova`

URL: `https://api.nicer.travel/internova`

Lists the hotels of the preferred hotel programs (program SELECT or CURATED) as the nightly catalog sync stores them, filtered by the encoded `where` tree the portal sends, reduced to the attributes in `fields` (comma-separated), 10 a page unless `limit` says otherwise, with `nextToken` the page number counted from 0. The answer carries the page's items, `nextToken` and `prevToken` (null at either end), the total count (`countHotel`), the number of pages (`countPages`) and how many items it shows (`showing`). Reads the whole catalog on every call. Any signed-in person may call it.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `fields` (`internova.list.query.fields`; string, optional) — The attributes to keep on each hotel, comma-separated; a dotted path (hotelDetails.ratingNumber) keeps that part of an attribute. type is always kept. Every attribute when absent.
- `limit` (`internova.list.query.limit`; string, optional) — Hotels a page: its leading digits, at least 1. 10 when absent or not a number.
- `nextToken` (`internova.list.query.nextToken`; string, optional) — The page to answer, counted from 0: the nextToken or prevToken of another page. The first page when absent or not a number.
- `where` (`internova.list.query.where`; string, optional) — The filter tree: and(…;…) and or(…;…) groups around field:operator:value conditions joined by commas, each value URL-encoded and a list of values joined by |. Operators: eq (also an unknown or missing one), neq, lt, lte, gt, gte, inq, between, like (every value a substring of the attribute, or a member of a list attribute), beginsWith and exists. Every hotel when absent.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.internova.list();
```

### Nicer CLI

```bash
nicer internova list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/internova \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/internova';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/internova"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "countHotel": 0,
  "countPages": 0,
  "items": [
    {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "distanceFromSearch": {
        "unit": "km",
        "value": 0
      },
      "features": [
        "string"
      ],
      "fullAddress": "string",
      "gate": "string",
      "iataCode": "string",
      "internovaId": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "region": "string",
      "source": "string",
      "state": "string",
      "terminal": "string",
      "timeZone": "string",
      "zipCode": "string",
      "additionalAmenities": [
        {
          "type": "string",
          "value": "string"
        }
      ],
      "availableFilters": [
        "string"
      ],
      "customs": [
        {
          "type": "string",
          "value": "string"
        }
      ],
      "experiences": [
        "string"
      ],
      "hotelDetails": {
        "allowedPaymentMethods": [
          "string"
        ],
        "commission": 0,
        "commissionSuite": 0,
        "contacts": [
          {
            "email": "string",
            "name": "string",
            "phone": "string",
            "title": "string",
            "type": "string"
          }
        ],
        "crownRating": "string",
        "onSiteFitnessCenterAvailable": true,
        "ratingNumber": 0,
        "smokingRoomAvailable": true,
        "totalNumberFloors": 0,
        "totalNumberOfRooms": 0
      },
      "program": "SELECT",
      "providerReferences": [
        {
          "chainCode": "string",
          "propertyCode": "string",
          "system": "string"
        }
      ],
      "searchKey": "string",
      "specialAmenities": [
        {
          "type": "string",
          "value": "string"
        }
      ],
      "createdAt": "string",
      "updatedAt": "string",
      "type": "Internova"
    }
  ],
  "nextToken": 0,
  "prevToken": 0,
  "showing": 0
}
```

- `countHotel` (`internova.list.response.200.countHotel`; number, required) — How many hotels match the filter.
- `countPages` (`internova.list.response.200.countPages`; number, required) — How many pages they make.
- `items` (`internova.list.response.200.items`; array of object, required)
  - `type` (`internova.list.response.200.items.type`; string, required)
  - `address` (`internova.list.response.200.items.address`; any of, optional)
    - any of the following: `string`, `null`
  - `amenities` (`internova.list.response.200.items.amenities`; array of string, optional)
  - `city` (`internova.list.response.200.items.city`; any of, optional)
    - any of the following: `string`, `null`
  - `country` (`internova.list.response.200.items.country`; string, optional)
  - `countryCode` (`internova.list.response.200.items.countryCode`; string, optional)
  - `description` (`internova.list.response.200.items.description`; string, optional)
  - `distanceFromSearch` (`internova.list.response.200.items.distanceFromSearch`; object, optional)
    - `unit` (`internova.list.response.200.items.distanceFromSearch.unit`; string, required)
      - one of `"km"`, `"mi"`
    - `value` (`internova.list.response.200.items.distanceFromSearch.value`; number, required)
  - `features` (`internova.list.response.200.items.features`; array of string, optional)
  - `fullAddress` (`internova.list.response.200.items.fullAddress`; string, optional)
  - `gate` (`internova.list.response.200.items.gate`; any of, optional)
    - any of the following: `string`, `null`
  - `iataCode` (`internova.list.response.200.items.iataCode`; any of, optional)
    - any of the following: `string`, `null`
  - `internovaId` (`internova.list.response.200.items.internovaId`; string, optional)
  - `latitude` (`internova.list.response.200.items.latitude`; number, optional)
  - `longitude` (`internova.list.response.200.items.longitude`; number, optional)
  - `name` (`internova.list.response.200.items.name`; string, optional)
  - `photos` (`internova.list.response.200.items.photos`; array of object, optional)
    - `name` (`internova.list.response.200.items.photos.name`; string, required)
    - `key` (`internova.list.response.200.items.photos.key`; string, optional)
    - `url` (`internova.list.response.200.items.photos.url`; string, optional)
  - `placeId` (`internova.list.response.200.items.placeId`; string, optional)
  - `region` (`internova.list.response.200.items.region`; string, optional)
  - `source` (`internova.list.response.200.items.source`; string, optional)
  - `state` (`internova.list.response.200.items.state`; any of, optional)
    - any of the following: `string`, `null`
  - `terminal` (`internova.list.response.200.items.terminal`; any of, optional)
    - any of the following: `string`, `null`
  - `timeZone` (`internova.list.response.200.items.timeZone`; string, optional)
  - `zipCode` (`internova.list.response.200.items.zipCode`; any of, optional)
    - any of the following: `string`, `null`
  - `additionalAmenities` (`internova.list.response.200.items.additionalAmenities`; array of object, optional)
    - `type` (`internova.list.response.200.items.additionalAmenities.type`; string, required)
    - `value` (`internova.list.response.200.items.additionalAmenities.value`; any of, required)
      - any of the following:
        - `Option 1`
          - any of the following:
            - `string`
            - `boolean`
        - `number`
  - `availableFilters` (`internova.list.response.200.items.availableFilters`; array of string, optional)
  - `customs` (`internova.list.response.200.items.customs`; array of object, optional)
    - `type` (`internova.list.response.200.items.customs.type`; string, required)
    - `value` (`internova.list.response.200.items.customs.value`; any of, required)
      - any of the following:
        - `Option 1`
          - any of the following:
            - `string`
            - `boolean`
        - `number`
  - `experiences` (`internova.list.response.200.items.experiences`; array of string, optional)
  - `hotelDetails` (`internova.list.response.200.items.hotelDetails`; object, optional)
    - `allowedPaymentMethods` (`internova.list.response.200.items.hotelDetails.allowedPaymentMethods`; array of string, optional)
    - `commission` (`internova.list.response.200.items.hotelDetails.commission`; number, optional)
    - `commissionSuite` (`internova.list.response.200.items.hotelDetails.commissionSuite`; number, optional)
    - `contacts` (`internova.list.response.200.items.hotelDetails.contacts`; array of object, optional)
      - `type` (`internova.list.response.200.items.hotelDetails.contacts.type`; string, required)
      - `email` (`internova.list.response.200.items.hotelDetails.contacts.email`; string, optional)
      - `name` (`internova.list.response.200.items.hotelDetails.contacts.name`; string, optional)
      - `phone` (`internova.list.response.200.items.hotelDetails.contacts.phone`; string, optional)
      - `title` (`internova.list.response.200.items.hotelDetails.contacts.title`; string, optional)
    - `crownRating` (`internova.list.response.200.items.hotelDetails.crownRating`; string, optional)
    - `onSiteFitnessCenterAvailable` (`internova.list.response.200.items.hotelDetails.onSiteFitnessCenterAvailable`; boolean, optional)
    - `ratingNumber` (`internova.list.response.200.items.hotelDetails.ratingNumber`; number, optional)
    - `smokingRoomAvailable` (`internova.list.response.200.items.hotelDetails.smokingRoomAvailable`; boolean, optional)
    - `totalNumberFloors` (`internova.list.response.200.items.hotelDetails.totalNumberFloors`; number, optional)
    - `totalNumberOfRooms` (`internova.list.response.200.items.hotelDetails.totalNumberOfRooms`; number, optional)
  - `program` (`internova.list.response.200.items.program`; string, optional)
    - one of `"SELECT"`, `"CURATED"`
  - `providerReferences` (`internova.list.response.200.items.providerReferences`; array of object, optional)
    - `chainCode` (`internova.list.response.200.items.providerReferences.chainCode`; string, required)
      - minLength: `1`
    - `propertyCode` (`internova.list.response.200.items.providerReferences.propertyCode`; string, required)
      - minLength: `1`
    - `system` (`internova.list.response.200.items.providerReferences.system`; string, required)
  - `searchKey` (`internova.list.response.200.items.searchKey`; string, optional)
  - `specialAmenities` (`internova.list.response.200.items.specialAmenities`; array of object, optional)
    - `type` (`internova.list.response.200.items.specialAmenities.type`; string, required)
    - `value` (`internova.list.response.200.items.specialAmenities.value`; any of, required)
      - any of the following:
        - `Option 1`
          - any of the following:
            - `Option 1`
              - any of the following:
                - `string`
                - `boolean`
            - `number`
        - `null`
  - `createdAt` (`internova.list.response.200.items.createdAt`; string, optional)
  - `updatedAt` (`internova.list.response.200.items.updatedAt`; string, optional)
- `nextToken` (`internova.list.response.200.nextToken`; any of, required) — The next page's number; null on the last page.
  - any of the following: `number`, `null`
- `prevToken` (`internova.list.response.200.prevToken`; any of, required) — The previous page's number; null on the first page.
  - any of the following: `number`, `null`
- `showing` (`internova.list.response.200.showing`; number, required) — How many hotels this page holds.

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`internova.list.response.400.errorCode`; string, required)
- `errorMessage` (`internova.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`internova.list.response.401.errorCode`; string, required)
- `errorMessage` (`internova.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`internova.list.response.403.errorCode`; string, required)
- `errorMessage` (`internova.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/internova/internova.list/index.md
