# Directory



Find public shops by place and the activities they offer.



## Find shops

`GET /v1/public/directory/shops`

The ChatGPT app or a website lists published shops near a place without signing in; invalid filters return 422 and rate limits return 429.

### Parameters

- `latitude` (number): Degrees; with longitude
- `longitude` (number): Degrees; with latitude
- `radius_km` (integer): With coordinates only; default 50
- `place` (string): 2 to 80 characters (trimmed): a town, province, region or country, or a two letter country code
- `activity` (string): rentals, tours, or a kind of ride id such as e-bike
- `language` (string): The language of kind names; default en
- `limit` (integer): Default 8

### Body parameters

None.

### Returns

A JSON response with shops.

### Errors

- 422: invalid_request: a bound, latitude without longitude (or the reverse), or radius_km without coordinates
- 429: Too many requests
- 503: The public booking login is not configured

### Request

```bash
API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/directory/shops"
```

```javascript
const url = "https://api.outdoorgrid.ai" +
  "/v1/public/directory/shops";
const response = await fetch(url, {
  method: "GET",
  headers: {

  },
});
const data = await response.json();
```

```python
import os
import requests

url = (
    "https://api.outdoorgrid.ai"
    "/v1/public/directory/shops"
)
response = requests.get(
    url,
    headers={

    },
    timeout=10,
)
response.raise_for_status()
print(response.json())
```

### Response

```json
{
  "shops": [
    {
      "name": "Trail bike rental",
      "offers": {
        "rentals": true,
        "tours": true
      },
      "place": {
        "country": "Trail bike rental",
        "latitude": 46.54,
        "longitude": 12.14,
        "region": "Trail bike rental",
        "town": "Trail bike rental"
      },
      "slug": "alpine-trail-demo"
    }
  ]
}
```

## The Shop object



- `cover_url` (string): A public signed link to the site's first hero photo the shop uploaded, or null
- `distance_km` (number): From the coordinates to that place, one decimal; null without coordinates
- `from_price` (object): null when no online rental is priced
  - `amount_minor` (integer, required): The cheapest first day of the shop's online rentals, in minor units
  - `currency` (string, required): The shop's currency, ISO 4217
- `languages` (string[]): The languages of the shop's site
- `logo_url` (string): A public signed link to the logo, or null
- `name` (string, required): Name shown to guests.
- `offers` (object, required): Whether this shop offers rentals or tours and which ride kinds it publishes.
  - `rental_kinds` (object[]): The published site's kinds of ride, by sort
    - `id` (string, required): A kind of ride the shop publishes on its site, for example "e-bike"
    - `name` (string, required): In the language asked for, else English, else the first
  - `rentals` (boolean, required): At least one active rental product online
  - `tours` (boolean, required): At least one active group or private tour online
- `place` (object, required): The matching guest-visible place nearest the coordinates, else the first. Never a street, phone, email or person
  - `country` (string): Two letter country code, for example "IT"
  - `latitude` (number): The place on the map; null when the shop has not set it
  - `longitude` (number): Longitude of this public place; null when the shop has not supplied it.
  - `region` (string): The region, else the province
  - `town` (string): The place's town (address.city)
- `site_url` (string): The shop's booking page, where the guest books and pays
- `slug` (string, required): The shop's address name, as in https://{slug}.outdoorgrid.ai



```json

{
  "name": "Trail bike rental",
  "offers": {
    "rentals": true,
    "tours": true
  },
  "place": {
    "country": "Trail bike rental",
    "latitude": 46.54,
    "longitude": 12.14,
    "region": "Trail bike rental",
    "town": "Trail bike rental"
  },
  "slug": "alpine-trail-demo"
}

```