---
title: "List a person's travel gallery"
---

> 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 a person's travel gallery

Path: Nicer API › User places

`GET /user-places/{id}`

URL: `https://api.nicer.travel/user-places/{id}`

Lists the places of a person's travel gallery (userId): each photo they uploaded with where it was taken. With format byCountry the answer is one album per country, each with its cities, its last visit date and a representative location; otherwise it is one list with a total count. Any signed-in person may read anyone's gallery by userId: only its owner gets where each photo was taken exactly (latitude, longitude, street address and postal code), anyone else gets the city, state and country.

## Authentication

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

## Path parameters

- `id` (`userPlaces.get.path.id`; string, required)

## Query parameters

- `format` (`userPlaces.get.query.format`; string, optional) — byCountry answers one album per country; any other value, or none, answers every photo in one list.

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

### Nicer CLI

```bash
nicer user-places get --id 'string'
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/user-places/<id>';
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/user-places/<id>"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
[
  {
    "albumId": "string",
    "cities": [
      "string"
    ],
    "count": 0,
    "country": "string",
    "items": [
      {
        "capturedAt": "string",
        "city": "string",
        "country": "string",
        "countryCode": "string",
        "createdBy": "string",
        "description": "string",
        "errorCode": "string",
        "errorMessage": "string",
        "fileName": "string",
        "fullAddress": "string",
        "hasError": true,
        "imageUri": "string",
        "lastModifiedBy": "string",
        "latitude": 0,
        "locationCountry": {
          "address": "string",
          "amenities": [
            "string"
          ],
          "city": "string",
          "country": "string",
          "countryCode": "string",
          "description": "string",
          "fullAddress": "string",
          "latitude": 0,
          "longitude": 0,
          "name": "string",
          "photos": [
            {
              "key": "string",
              "name": "string",
              "source": "string",
              "url": "string"
            }
          ],
          "placeId": "string",
          "placeTypes": [
            "string"
          ],
          "primaryType": "lodging",
          "source": "string",
          "state": "string",
          "zipCode": "string"
        },
        "longitude": 0,
        "state": "string",
        "zipCode": "string",
        "id": "string",
        "userId": "string",
        "createdAt": "string",
        "updatedAt": "string",
        "type": "UserPlace"
      }
    ],
    "lastVisitDate": "string",
    "location": {
      "address": "string",
      "amenities": [
        "string"
      ],
      "city": "string",
      "country": "string",
      "countryCode": "string",
      "description": "string",
      "fullAddress": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "photos": [
        {
          "key": "string",
          "name": "string",
          "source": "string",
          "url": "string"
        }
      ],
      "placeId": "string",
      "placeTypes": [
        "string"
      ],
      "primaryType": "lodging",
      "source": "string",
      "state": "string",
      "zipCode": "string"
    }
  }
]
```

Any of the following:

- `array<object>`
  - `albumId` (`userPlaces.get.response.200.1.albumId`; string, required)
  - `cities` (`userPlaces.get.response.200.1.cities`; array of string, required)
  - `count` (`userPlaces.get.response.200.1.count`; number, required) — How many photos the album holds.
  - `country` (`userPlaces.get.response.200.1.country`; string, required) — The album's title: the photos' country, or Unknown for photos without one.
  - `items` (`userPlaces.get.response.200.1.items`; array of object, required) — The album's photos, each without locationCountry and with imageUri as an absolute URL.
    - `createdBy` (`userPlaces.get.response.200.1.items.createdBy`; string, required)
    - `hasError` (`userPlaces.get.response.200.1.items.hasError`; boolean, required) — Whether processing the location of the photo failed.
    - `imageUri` (`userPlaces.get.response.200.1.items.imageUri`; string, required) — The photo: its storage key, which the gallery listing answers as an absolute URL.
    - `lastModifiedBy` (`userPlaces.get.response.200.1.items.lastModifiedBy`; string, required)
    - `id` (`userPlaces.get.response.200.1.items.id`; string, required)
    - `userId` (`userPlaces.get.response.200.1.items.userId`; string, required) — The person whose gallery holds the photo.
    - `createdAt` (`userPlaces.get.response.200.1.items.createdAt`; string, required)
    - `updatedAt` (`userPlaces.get.response.200.1.items.updatedAt`; string, required)
    - `type` (`userPlaces.get.response.200.1.items.type`; string, required)
    - `capturedAt` (`userPlaces.get.response.200.1.items.capturedAt`; any of, optional) — When the photo was taken, from the upload's metadata; null when it carried none.
      - any of the following: `string`, `null`
    - `city` (`userPlaces.get.response.200.1.items.city`; any of, optional)
      - any of the following: `string`, `null`
    - `country` (`userPlaces.get.response.200.1.items.country`; any of, optional)
      - any of the following: `string`, `null`
    - `countryCode` (`userPlaces.get.response.200.1.items.countryCode`; any of, optional)
      - any of the following: `string`, `null`
    - `description` (`userPlaces.get.response.200.1.items.description`; any of, optional) — A brief description of the place or of the visit.
      - any of the following: `string`, `null`
    - `errorCode` (`userPlaces.get.response.200.1.items.errorCode`; any of, optional) — Set when processing the location failed.
      - any of the following: `string`, `null`
    - `errorMessage` (`userPlaces.get.response.200.1.items.errorMessage`; any of, optional)
      - any of the following: `string`, `null`
    - `fileName` (`userPlaces.get.response.200.1.items.fileName`; any of, optional) — The name of the uploaded file.
      - any of the following: `string`, `null`
    - `fullAddress` (`userPlaces.get.response.200.1.items.fullAddress`; any of, optional)
      - any of the following: `string`, `null`
    - `latitude` (`userPlaces.get.response.200.1.items.latitude`; any of, optional)
      - any of the following: `number`, `null`
    - `locationCountry` (`userPlaces.get.response.200.1.items.locationCountry`; any of, optional) — The photo's country, as the place lookup found it.
      - any of the following:
        - `object`
          - `address` (`userPlaces.get.response.200.1.items.locationCountry.1.address`; string, required) — The short address; empty when the place has none.
          - `country` (`userPlaces.get.response.200.1.items.locationCountry.1.country`; string, required) — The country's name; empty when the place has none.
          - `fullAddress` (`userPlaces.get.response.200.1.items.locationCountry.1.fullAddress`; string, required) — The full address; empty when the place has none.
          - `amenities` (`userPlaces.get.response.200.1.items.locationCountry.1.amenities`; array of string, optional)
          - `city` (`userPlaces.get.response.200.1.items.locationCountry.1.city`; string, optional)
          - `countryCode` (`userPlaces.get.response.200.1.items.locationCountry.1.countryCode`; string, optional)
          - `description` (`userPlaces.get.response.200.1.items.locationCountry.1.description`; string, optional)
          - `latitude` (`userPlaces.get.response.200.1.items.locationCountry.1.latitude`; number, optional)
          - `longitude` (`userPlaces.get.response.200.1.items.locationCountry.1.longitude`; number, optional)
          - `name` (`userPlaces.get.response.200.1.items.locationCountry.1.name`; string, optional)
          - `photos` (`userPlaces.get.response.200.1.items.locationCountry.1.photos`; array of object, optional) — Up to four photos when they were asked for; empty otherwise.
            - `name` (`userPlaces.get.response.200.1.items.locationCountry.1.photos.name`; string, required)
            - `url` (`userPlaces.get.response.200.1.items.locationCountry.1.photos.url`; string, required)
            - `key` (`userPlaces.get.response.200.1.items.locationCountry.1.photos.key`; string, optional)
            - `source` (`userPlaces.get.response.200.1.items.locationCountry.1.photos.source`; string, optional)
          - `placeId` (`userPlaces.get.response.200.1.items.locationCountry.1.placeId`; string, optional)
          - `placeTypes` (`userPlaces.get.response.200.1.items.locationCountry.1.placeTypes`; array of string, optional) — Every type the directory gives the place, as it spells them.
          - `primaryType` (`userPlaces.get.response.200.1.items.locationCountry.1.primaryType`; string, optional) — The place's most relevant type.
            - one of `"lodging"`, `"restaurant"`, `"tourist_attraction"`, `"shopping_mall"`, `"airport"`, `"hospital"`, `"school"`, `"gas_station"`, `"bank"`, `"atm"`, `"pharmacy"`, `"store"`, `"museum"`, `"park"`, `"gym"`, `"movie_theater"`, `"night_club"`, `"bar"`, `"cafe"`, `"church"`, `"mosque"`, `"synagogue"`, `"hindu_temple"`, `"library"`, `"university"`, `"subway_station"`, `"train_station"`, `"bus_station"`, `"taxi_stand"`, `"car_rental"`, `"beauty_salon"`, `"spa"`, `"doctor"`, `"dentist"`, `"veterinary_care"`, `"zoo"`, `"amusement_park"`, `"casino"`, `"bowling_alley"`, `"stadium"`, `"post_office"`, `"police"`, `"fire_station"`, `"city_hall"`, `"courthouse"`, `"embassy"`, `"locality"`, `"administrative_area_level_1"`, `"administrative_area_level_2"`, `"country"`, `"city"`, `"region"`, `"state"`, `"neighborhood"`, `"sublocality"`, `"establishment"`, `"point_of_interest"`
          - `source` (`userPlaces.get.response.200.1.items.locationCountry.1.source`; string, optional) — The directory the place comes from.
          - `state` (`userPlaces.get.response.200.1.items.locationCountry.1.state`; string, optional)
          - `zipCode` (`userPlaces.get.response.200.1.items.locationCountry.1.zipCode`; string, optional)
        - `null`
    - `longitude` (`userPlaces.get.response.200.1.items.longitude`; any of, optional)
      - any of the following: `number`, `null`
    - `state` (`userPlaces.get.response.200.1.items.state`; any of, optional)
      - any of the following: `string`, `null`
    - `zipCode` (`userPlaces.get.response.200.1.items.zipCode`; any of, optional)
      - any of the following: `string`, `null`
  - `lastVisitDate` (`userPlaces.get.response.200.1.lastVisitDate`; any of, required) — When the newest photo was taken, or uploaded when that is not known.
    - any of the following: `string`, `null`
  - `location` (`userPlaces.get.response.200.1.location`; any of, required) — The newest photo's country as the place lookup found it, or else that photo's own city, state and country.
    - any of the following:
      - `object`
        - `address` (`userPlaces.get.response.200.1.location.1.address`; string, required) — The short address; empty when the place has none.
        - `country` (`userPlaces.get.response.200.1.location.1.country`; string, required) — The country's name; empty when the place has none.
        - `fullAddress` (`userPlaces.get.response.200.1.location.1.fullAddress`; string, required) — The full address; empty when the place has none.
        - `amenities` (`userPlaces.get.response.200.1.location.1.amenities`; array of string, optional)
        - `city` (`userPlaces.get.response.200.1.location.1.city`; string, optional)
        - `countryCode` (`userPlaces.get.response.200.1.location.1.countryCode`; string, optional)
        - `description` (`userPlaces.get.response.200.1.location.1.description`; string, optional)
        - `latitude` (`userPlaces.get.response.200.1.location.1.latitude`; number, optional)
        - `longitude` (`userPlaces.get.response.200.1.location.1.longitude`; number, optional)
        - `name` (`userPlaces.get.response.200.1.location.1.name`; string, optional)
        - `photos` (`userPlaces.get.response.200.1.location.1.photos`; array of object, optional) — Up to four photos when they were asked for; empty otherwise.
          - `name` (`userPlaces.get.response.200.1.location.1.photos.name`; string, required)
          - `url` (`userPlaces.get.response.200.1.location.1.photos.url`; string, required)
          - `key` (`userPlaces.get.response.200.1.location.1.photos.key`; string, optional)
          - `source` (`userPlaces.get.response.200.1.location.1.photos.source`; string, optional)
        - `placeId` (`userPlaces.get.response.200.1.location.1.placeId`; string, optional)
        - `placeTypes` (`userPlaces.get.response.200.1.location.1.placeTypes`; array of string, optional) — Every type the directory gives the place, as it spells them.
        - `primaryType` (`userPlaces.get.response.200.1.location.1.primaryType`; string, optional) — The place's most relevant type.
          - one of `"lodging"`, `"restaurant"`, `"tourist_attraction"`, `"shopping_mall"`, `"airport"`, `"hospital"`, `"school"`, `"gas_station"`, `"bank"`, `"atm"`, `"pharmacy"`, `"store"`, `"museum"`, `"park"`, `"gym"`, `"movie_theater"`, `"night_club"`, `"bar"`, `"cafe"`, `"church"`, `"mosque"`, `"synagogue"`, `"hindu_temple"`, `"library"`, `"university"`, `"subway_station"`, `"train_station"`, `"bus_station"`, `"taxi_stand"`, `"car_rental"`, `"beauty_salon"`, `"spa"`, `"doctor"`, `"dentist"`, `"veterinary_care"`, `"zoo"`, `"amusement_park"`, `"casino"`, `"bowling_alley"`, `"stadium"`, `"post_office"`, `"police"`, `"fire_station"`, `"city_hall"`, `"courthouse"`, `"embassy"`, `"locality"`, `"administrative_area_level_1"`, `"administrative_area_level_2"`, `"country"`, `"city"`, `"region"`, `"state"`, `"neighborhood"`, `"sublocality"`, `"establishment"`, `"point_of_interest"`
        - `source` (`userPlaces.get.response.200.1.location.1.source`; string, optional) — The directory the place comes from.
        - `state` (`userPlaces.get.response.200.1.location.1.state`; string, optional)
        - `zipCode` (`userPlaces.get.response.200.1.location.1.zipCode`; string, optional)
      - `object`
        - `city` (`userPlaces.get.response.200.1.location.2.city`; any of, required)
          - any of the following: `string`, `null`
        - `country` (`userPlaces.get.response.200.1.location.2.country`; any of, required)
          - any of the following: `string`, `null`
        - `countryCode` (`userPlaces.get.response.200.1.location.2.countryCode`; any of, required)
          - any of the following: `string`, `null`
        - `latitude` (`userPlaces.get.response.200.1.location.2.latitude`; any of, required)
          - any of the following: `number`, `null`
        - `longitude` (`userPlaces.get.response.200.1.location.2.longitude`; any of, required)
          - any of the following: `number`, `null`
        - `state` (`userPlaces.get.response.200.1.location.2.state`; any of, required)
          - any of the following: `string`, `null`
- `object`
  - `count` (`userPlaces.get.response.200.2.count`; number, required) — How many photos the list holds.
  - `items` (`userPlaces.get.response.200.2.items`; array of object, required) — The photos, each with imageUri as an absolute URL.
    - `createdBy` (`userPlaces.get.response.200.2.items.createdBy`; string, required)
    - `hasError` (`userPlaces.get.response.200.2.items.hasError`; boolean, required) — Whether processing the location of the photo failed.
    - `imageUri` (`userPlaces.get.response.200.2.items.imageUri`; string, required) — The photo: its storage key, which the gallery listing answers as an absolute URL.
    - `lastModifiedBy` (`userPlaces.get.response.200.2.items.lastModifiedBy`; string, required)
    - `id` (`userPlaces.get.response.200.2.items.id`; string, required)
    - `userId` (`userPlaces.get.response.200.2.items.userId`; string, required) — The person whose gallery holds the photo.
    - `createdAt` (`userPlaces.get.response.200.2.items.createdAt`; string, required)
    - `updatedAt` (`userPlaces.get.response.200.2.items.updatedAt`; string, required)
    - `type` (`userPlaces.get.response.200.2.items.type`; string, required)
    - `capturedAt` (`userPlaces.get.response.200.2.items.capturedAt`; any of, optional) — When the photo was taken, from the upload's metadata; null when it carried none.
      - any of the following: `string`, `null`
    - `city` (`userPlaces.get.response.200.2.items.city`; any of, optional)
      - any of the following: `string`, `null`
    - `country` (`userPlaces.get.response.200.2.items.country`; any of, optional)
      - any of the following: `string`, `null`
    - `countryCode` (`userPlaces.get.response.200.2.items.countryCode`; any of, optional)
      - any of the following: `string`, `null`
    - `description` (`userPlaces.get.response.200.2.items.description`; any of, optional) — A brief description of the place or of the visit.
      - any of the following: `string`, `null`
    - `errorCode` (`userPlaces.get.response.200.2.items.errorCode`; any of, optional) — Set when processing the location failed.
      - any of the following: `string`, `null`
    - `errorMessage` (`userPlaces.get.response.200.2.items.errorMessage`; any of, optional)
      - any of the following: `string`, `null`
    - `fileName` (`userPlaces.get.response.200.2.items.fileName`; any of, optional) — The name of the uploaded file.
      - any of the following: `string`, `null`
    - `fullAddress` (`userPlaces.get.response.200.2.items.fullAddress`; any of, optional)
      - any of the following: `string`, `null`
    - `latitude` (`userPlaces.get.response.200.2.items.latitude`; any of, optional)
      - any of the following: `number`, `null`
    - `locationCountry` (`userPlaces.get.response.200.2.items.locationCountry`; any of, optional) — The photo's country, as the place lookup found it.
      - any of the following:
        - `object`
          - `address` (`userPlaces.get.response.200.2.items.locationCountry.1.address`; string, required) — The short address; empty when the place has none.
          - `country` (`userPlaces.get.response.200.2.items.locationCountry.1.country`; string, required) — The country's name; empty when the place has none.
          - `fullAddress` (`userPlaces.get.response.200.2.items.locationCountry.1.fullAddress`; string, required) — The full address; empty when the place has none.
          - `amenities` (`userPlaces.get.response.200.2.items.locationCountry.1.amenities`; array of string, optional)
          - `city` (`userPlaces.get.response.200.2.items.locationCountry.1.city`; string, optional)
          - `countryCode` (`userPlaces.get.response.200.2.items.locationCountry.1.countryCode`; string, optional)
          - `description` (`userPlaces.get.response.200.2.items.locationCountry.1.description`; string, optional)
          - `latitude` (`userPlaces.get.response.200.2.items.locationCountry.1.latitude`; number, optional)
          - `longitude` (`userPlaces.get.response.200.2.items.locationCountry.1.longitude`; number, optional)
          - `name` (`userPlaces.get.response.200.2.items.locationCountry.1.name`; string, optional)
          - `photos` (`userPlaces.get.response.200.2.items.locationCountry.1.photos`; array of object, optional) — Up to four photos when they were asked for; empty otherwise.
            - `name` (`userPlaces.get.response.200.2.items.locationCountry.1.photos.name`; string, required)
            - `url` (`userPlaces.get.response.200.2.items.locationCountry.1.photos.url`; string, required)
            - `key` (`userPlaces.get.response.200.2.items.locationCountry.1.photos.key`; string, optional)
            - `source` (`userPlaces.get.response.200.2.items.locationCountry.1.photos.source`; string, optional)
          - `placeId` (`userPlaces.get.response.200.2.items.locationCountry.1.placeId`; string, optional)
          - `placeTypes` (`userPlaces.get.response.200.2.items.locationCountry.1.placeTypes`; array of string, optional) — Every type the directory gives the place, as it spells them.
          - `primaryType` (`userPlaces.get.response.200.2.items.locationCountry.1.primaryType`; string, optional) — The place's most relevant type.
            - one of `"lodging"`, `"restaurant"`, `"tourist_attraction"`, `"shopping_mall"`, `"airport"`, `"hospital"`, `"school"`, `"gas_station"`, `"bank"`, `"atm"`, `"pharmacy"`, `"store"`, `"museum"`, `"park"`, `"gym"`, `"movie_theater"`, `"night_club"`, `"bar"`, `"cafe"`, `"church"`, `"mosque"`, `"synagogue"`, `"hindu_temple"`, `"library"`, `"university"`, `"subway_station"`, `"train_station"`, `"bus_station"`, `"taxi_stand"`, `"car_rental"`, `"beauty_salon"`, `"spa"`, `"doctor"`, `"dentist"`, `"veterinary_care"`, `"zoo"`, `"amusement_park"`, `"casino"`, `"bowling_alley"`, `"stadium"`, `"post_office"`, `"police"`, `"fire_station"`, `"city_hall"`, `"courthouse"`, `"embassy"`, `"locality"`, `"administrative_area_level_1"`, `"administrative_area_level_2"`, `"country"`, `"city"`, `"region"`, `"state"`, `"neighborhood"`, `"sublocality"`, `"establishment"`, `"point_of_interest"`
          - `source` (`userPlaces.get.response.200.2.items.locationCountry.1.source`; string, optional) — The directory the place comes from.
          - `state` (`userPlaces.get.response.200.2.items.locationCountry.1.state`; string, optional)
          - `zipCode` (`userPlaces.get.response.200.2.items.locationCountry.1.zipCode`; string, optional)
        - `null`
    - `longitude` (`userPlaces.get.response.200.2.items.longitude`; any of, optional)
      - any of the following: `number`, `null`
    - `state` (`userPlaces.get.response.200.2.items.state`; any of, optional)
      - any of the following: `string`, `null`
    - `zipCode` (`userPlaces.get.response.200.2.items.zipCode`; any of, optional)
      - any of the following: `string`, `null`
  - `nextToken` (`userPlaces.get.response.200.2.nextToken`; any of, required) — Null when the list holds every photo. The list stops at the first 1,000, and this route reads no further page.
    - any of the following:
      - `Option 1`
        - any of the following:
          - `string`
          - `number`
      - `null`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

- `errorCode` (`userPlaces.get.response.401.errorCode`; string, required)
- `errorMessage` (`userPlaces.get.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`userPlaces.get.response.403.errorCode`; string, required)
- `errorMessage` (`userPlaces.get.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/User-places/userPlaces.get/index.md
