Locations

Returns a single location of the agenda (or of its shared location set) in the full Location shape.

get/agendas/{agendaUid}/locations/{locationUid}

Request

  • Base URL: https://api.openagenda.com/v3
  • URL: https://api.openagenda.com/v3/agendas/{agendaUid}/locations/{locationUid}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://openagenda.com/api/auth/oauth2/authorize, token URL https://openagenda.com/api/auth/oauth2/token, scopes: locations:read)

Path parameters

agendaUidinteger required

Numeric uid of the agenda.

locationUidinteger required

Numeric uid of the location.

Response

The location.

uidinteger required
slugstring required
setUidinteger nullable required

Uid of the shared location set this location belongs to, or null when it belongs to a single agenda's own pool.

namestring required
addressstring nullable required
citystring nullable required
districtstring nullable required
regionstring nullable required
departmentstring nullable required
adminLevel3string nullable required
adminLevel5string nullable required
postalCodestring nullable required
inseestring nullable required

INSEE code of the French municipality, when known.

countryCodestring nullable required

ISO 3166-1 alpha-2 country code.

latitudenumber double required
longitudenumber double required
timezonestring nullable required

IANA time zone of the location.

descriptionLocalizedString required

A string localized per language, keyed by ISO 639-1 code (e.g. fr, en).

accessLocalizedString required

A string localized per language, keyed by ISO 639-1 code (e.g. fr, en).

imageCreditsstring nullable required
websitestring nullable required
emailstring nullable required
phonestring nullable required
linksstring[] required
siretstring nullable required

SIRET number (French establishment id) of the location's operator, when provided.

verifiedboolean required

Whether the location was verified by an agenda moderator.

createdAtstring date-time required
updatedAtstring date-time required

Example response

{
  "uid": 67890,
  "slug": "chateau-des-lebres_4421007",
  "setUid": null,
  "name": "Château des Lèbres",
  "address": "Naves, 07140 Les Vans",
  "city": "Les Vans",
  "district": null,
  "region": "Auvergne-Rhône-Alpes",
  "department": "Ardèche",
  "adminLevel3": null,
  "adminLevel5": null,
  "postalCode": "07140",
  "insee": "07334",
  "countryCode": "FR",
  "latitude": 44.388303,
  "longitude": 4.105528,
  "timezone": "Europe/Paris",
  "description": {
    "fr": "Ancienne maison forte des comtes du Roure."
  },
  "access": {},
  "image": {
    "width": 1200,
    "height": 800,
    "src": "https://img.openagenda.com/u/1080x0/main/67890.full.image.jpg",
    "srcTemplate": "https://img.openagenda.com/u/{geo}/main/67890.full.image.jpg",
    "srcset": [
      {
        "width": 640,
        "url": "https://img.openagenda.com/u/640x0/main/67890.full.image.jpg"
      },
      {
        "width": 1080,
        "url": "https://img.openagenda.com/u/1080x0/main/67890.full.image.jpg"
      }
    ]
  },
  "imageCredits": null,
  "website": "http://www.domainedeslebres.com/",
  "email": null,
  "phone": "0475363414",
  "links": [
    "https://fr-fr.facebook.com/domainedeslebres/"
  ],
  "extIds": [
    {
      "key": "legacy",
      "value": "4421007"
    }
  ],
  "additionalFields": {
    "tags": [
      {
        "id": 2,
        "label": "Château, hôtel urbain, palais, manoir"
      }
    ]
  },
  "siret": null,
  "verified": true,
  "createdAt": "2017-10-30T14:21:07.000Z",
  "updatedAt": "2019-04-29T15:40:33.000Z"
}

Changes

    • info

      added the optional property /////// to the response with the status

    • breaking

      added to the response body oneOf list for the response status

    • breaking

      added to the response body oneOf list for the response status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new bad_request enum value to the / response property for the response status

    • warning

      added the new bad_request enum value to the / response property for the response status

    • warning

      added the new forbidden enum value to the / response property for the response status

    • warning

      added the new forbidden enum value to the / response property for the response status

    • warning

      added the new insufficient_scope enum value to the / response property for the response status

    • warning

      added the new insufficient_scope enum value to the / response property for the response status

    • warning

      added the new not_found enum value to the / response property for the response status

    • warning

      added the new not_found enum value to the / response property for the response status

    • warning

      added the new read_only_credential enum value to the / response property for the response status

    • warning

      added the new read_only_credential enum value to the / response property for the response status

    • warning

      added the new service_unavailable enum value to the / response property for the response status

    • warning

      added the new service_unavailable enum value to the / response property for the response status

    • warning

      added the new unauthorized enum value to the / response property for the response status

    • warning

      added the new unauthorized enum value to the / response property for the response status