Skip to content
Navigation

List a person's travel gallery

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

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • id
    string
    required

Query parameters

  • format
    optional
    string

    byCountry answers one album per country; any other value, or none, answers every photo in one list.

Returns

200

OK

JSON

Any of the following:

  • array<object>
    • albumId
      string
      required
    • cities
      array of
      string
      required
    • count
      number
      required

      How many photos the album holds.

    • country
      string
      required

      The album's title: the photos' country, or Unknown for photos without one.

    • items
      array of
      object
      required

      The album's photos, each without locationCountry and with imageUri as an absolute URL.

      • createdBy
        string
        required
      • hasError
        boolean
        required

        Whether processing the location of the photo failed.

      • imageUri
        string
        required

        The photo: its storage key, which the gallery listing answers as an absolute URL.

      • lastModifiedBy
        string
        required
      • id
        string
        required
      • userId
        string
        required

        The person whose gallery holds the photo.

      • createdAt
        string
        required
      • updatedAt
        string
        required
      • type
        string
        required
      • capturedAt
        optional

        When the photo was taken, from the upload's metadata; null when it carried none.

        Any of the following:

        • string
        • null
      • city
        optional

        Any of the following:

        • string
        • null
      • country
        optional

        Any of the following:

        • string
        • null
      • countryCode
        optional

        Any of the following:

        • string
        • null
      • description
        optional

        A brief description of the place or of the visit.

        Any of the following:

        • string
        • null
      • errorCode
        optional

        Set when processing the location failed.

        Any of the following:

        • string
        • null
      • errorMessage
        optional

        Any of the following:

        • string
        • null
      • fileName
        optional

        The name of the uploaded file.

        Any of the following:

        • string
        • null
      • fullAddress
        optional

        Any of the following:

        • string
        • null
      • latitude
        optional

        Any of the following:

        • number
        • null
      • locationCountry
        optional

        The photo's country, as the place lookup found it.

        Any of the following:

        • object
          • address
            string
            required

            The short address; empty when the place has none.

          • country
            string
            required

            The country's name; empty when the place has none.

          • fullAddress
            string
            required

            The full address; empty when the place has none.

          • amenities
            optional
            array of
            string
          • city
            optional
            string
          • countryCode
            optional
            string
          • description
            optional
            string
          • latitude
            optional
            number
          • longitude
            optional
            number
          • name
            optional
            string
          • photos
            optional
            array of
            object

            Up to four photos when they were asked for; empty otherwise.

            • name
              string
              required
            • url
              string
              required
            • key
              optional
              string
            • source
              optional
              string
          • placeId
            optional
            string
          • placeTypes
            optional
            array of
            string

            Every type the directory gives the place, as it spells them.

          • primaryType
            optional
            string
            ·
            one of 57 values

            The place's most relevant type.

            Allowed values: 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
            optional
            string

            The directory the place comes from.

          • state
            optional
            string
          • zipCode
            optional
            string
        • null
      • longitude
        optional

        Any of the following:

        • number
        • null
      • state
        optional

        Any of the following:

        • string
        • null
      • zipCode
        optional

        Any of the following:

        • string
        • null
    • lastVisitDate
      required

      When the newest photo was taken, or uploaded when that is not known.

      Any of the following:

      • string
      • null
    • location
      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
          string
          required

          The short address; empty when the place has none.

        • country
          string
          required

          The country's name; empty when the place has none.

        • fullAddress
          string
          required

          The full address; empty when the place has none.

        • amenities
          optional
          array of
          string
        • city
          optional
          string
        • countryCode
          optional
          string
        • description
          optional
          string
        • latitude
          optional
          number
        • longitude
          optional
          number
        • name
          optional
          string
        • photos
          optional
          array of
          object

          Up to four photos when they were asked for; empty otherwise.

          • name
            string
            required
          • url
            string
            required
          • key
            optional
            string
          • source
            optional
            string
        • placeId
          optional
          string
        • placeTypes
          optional
          array of
          string

          Every type the directory gives the place, as it spells them.

        • primaryType
          optional
          string
          ·
          one of 57 values

          The place's most relevant type.

          Allowed values: 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
          optional
          string

          The directory the place comes from.

        • state
          optional
          string
        • zipCode
          optional
          string
      • object
        • city
          required

          Any of the following:

          • string
          • null
        • country
          required

          Any of the following:

          • string
          • null
        • countryCode
          required

          Any of the following:

          • string
          • null
        • latitude
          required

          Any of the following:

          • number
          • null
        • longitude
          required

          Any of the following:

          • number
          • null
        • state
          required

          Any of the following:

          • string
          • null
  • object
    • count
      number
      required

      How many photos the list holds.

    • items
      array of
      object
      required

      The photos, each with imageUri as an absolute URL.

      • createdBy
        string
        required
      • hasError
        boolean
        required

        Whether processing the location of the photo failed.

      • imageUri
        string
        required

        The photo: its storage key, which the gallery listing answers as an absolute URL.

      • lastModifiedBy
        string
        required
      • id
        string
        required
      • userId
        string
        required

        The person whose gallery holds the photo.

      • createdAt
        string
        required
      • updatedAt
        string
        required
      • type
        string
        required
      • capturedAt
        optional

        When the photo was taken, from the upload's metadata; null when it carried none.

        Any of the following:

        • string
        • null
      • city
        optional

        Any of the following:

        • string
        • null
      • country
        optional

        Any of the following:

        • string
        • null
      • countryCode
        optional

        Any of the following:

        • string
        • null
      • description
        optional

        A brief description of the place or of the visit.

        Any of the following:

        • string
        • null
      • errorCode
        optional

        Set when processing the location failed.

        Any of the following:

        • string
        • null
      • errorMessage
        optional

        Any of the following:

        • string
        • null
      • fileName
        optional

        The name of the uploaded file.

        Any of the following:

        • string
        • null
      • fullAddress
        optional

        Any of the following:

        • string
        • null
      • latitude
        optional

        Any of the following:

        • number
        • null
      • locationCountry
        optional

        The photo's country, as the place lookup found it.

        Any of the following:

        • object
          • address
            string
            required

            The short address; empty when the place has none.

          • country
            string
            required

            The country's name; empty when the place has none.

          • fullAddress
            string
            required

            The full address; empty when the place has none.

          • amenities
            optional
            array of
            string
          • city
            optional
            string
          • countryCode
            optional
            string
          • description
            optional
            string
          • latitude
            optional
            number
          • longitude
            optional
            number
          • name
            optional
            string
          • photos
            optional
            array of
            object

            Up to four photos when they were asked for; empty otherwise.

            • name
              string
              required
            • url
              string
              required
            • key
              optional
              string
            • source
              optional
              string
          • placeId
            optional
            string
          • placeTypes
            optional
            array of
            string

            Every type the directory gives the place, as it spells them.

          • primaryType
            optional
            string
            ·
            one of 57 values

            The place's most relevant type.

            Allowed values: 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
            optional
            string

            The directory the place comes from.

          • state
            optional
            string
          • zipCode
            optional
            string
        • null
      • longitude
        optional

        Any of the following:

        • number
        • null
      • state
        optional

        Any of the following:

        • string
        • null
      • zipCode
        optional

        Any of the following:

        • string
        • null
    • nextToken
      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.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

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

403

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

Type to search…

↑↓ navigate↵ selectEsc close