---
title: "Get a shared saved list"
---

> 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.

# Get a shared saved list

Path: Nicer API › favorites

`GET /favorites/shared/{shareId}`

URL: `https://api.nicer.travel/favorites/shared/{shareId}`

Returns a shared saved list, newest first, with its owner's first name and photo. Reachable without a token: the link id is the only credential, and it stops working the moment its owner stops sharing.

## Path parameters

- `shareId` (`favorites.shared.get.path.shareId`; string, required)

## 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.favorites.shared.get({
  "shareId": "string"
});
```

### Nicer CLI

```bash
nicer favorites shared get --share-id 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/favorites/shared/<shareId>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/favorites/shared/<shareId>';
const options = {method: 'GET'};

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/favorites/shared/<shareId>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "activity": {
        "destinationId": "string",
        "destinationName": "string",
        "durationMinutes": 100000,
        "reviewCount": 9007199254740991
      },
      "city": "string",
      "country": "string",
      "imageUrl": "string",
      "latitude": -90,
      "longitude": -180,
      "name": "string",
      "rateCodes": [
        "string"
      ],
      "starRating": 5,
      "createdAt": "string",
      "kind": "HOTEL",
      "reference": "string"
    }
  ],
  "owner": {
    "avatarUrl": "string",
    "firstName": "string"
  }
}
```

- `items` (`favorites.shared.get.response.200.items`; array of object, required)
  - `name` (`favorites.shared.get.response.200.items.name`; string, required)
    - maxLength: `300` · minLength: `1`
  - `kind` (`favorites.shared.get.response.200.items.kind`; string, required)
    - one of `"HOTEL"`, `"ACTIVITY"`
  - `reference` (`favorites.shared.get.response.200.items.reference`; string, required)
    - maxLength: `512` · minLength: `1`
  - `activity` (`favorites.shared.get.response.200.items.activity`; any of, optional)
    - any of the following:
      - `FavoriteActivity`
        - `destinationId` (`FavoriteActivity.destinationId`; string, required)
          - maxLength: `32` · minLength: `1`
        - `destinationName` (`FavoriteActivity.destinationName`; any of, required)
          - any of the following: `string`, `null`
        - `durationMinutes` (`FavoriteActivity.durationMinutes`; any of, required)
          - any of the following: `integer`, `null`
        - `reviewCount` (`FavoriteActivity.reviewCount`; any of, required)
          - any of the following: `integer`, `null`
      - `null`
  - `city` (`favorites.shared.get.response.200.items.city`; any of, optional)
    - any of the following: `string`, `null`
  - `country` (`favorites.shared.get.response.200.items.country`; any of, optional)
    - any of the following: `string`, `null`
  - `imageUrl` (`favorites.shared.get.response.200.items.imageUrl`; any of, optional)
    - any of the following: `string`, `null`
  - `latitude` (`favorites.shared.get.response.200.items.latitude`; any of, optional)
    - any of the following: `number`, `null`
  - `longitude` (`favorites.shared.get.response.200.items.longitude`; any of, optional)
    - any of the following: `number`, `null`
  - `rateCodes` (`favorites.shared.get.response.200.items.rateCodes`; any of, optional)
    - any of the following: `array<string>`, `null`
  - `starRating` (`favorites.shared.get.response.200.items.starRating`; any of, optional)
    - any of the following: `number`, `null`
  - `createdAt` (`favorites.shared.get.response.200.items.createdAt`; string, optional)
- `owner` (`favorites.shared.get.response.200.owner`; object, required)
  - `avatarUrl` (`favorites.shared.get.response.200.owner.avatarUrl`; any of, required)
    - any of the following: `string`, `null`
  - `firstName` (`favorites.shared.get.response.200.owner.firstName`; any of, required)
    - any of the following: `string`, `null`

### 400

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

#### Example

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

- `errorCode` (`favorites.shared.get.response.400.errorCode`; string, required)
- `errorMessage` (`favorites.shared.get.response.400.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/favorites/favorites.shared.get/index.md
