> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Foursquare Places API

> Search 100M+ points of interest by name, category or location, and read a place's details, tips and photos.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/foursquare.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=16582eb066654c396ce1de7515fa118b)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`FOURSQUARE_API_KEY`

Endpoints

6

Auth

Key in header

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/places-api-overview)

&#x20;·&#x20;

[Pricing](https://foursquare.com/pricing/)

## Setup

| Variable | | What it is |
| - | - | - |
| `FOURSQUARE_API_KEY` | required | a Foursquare Service API key (Developer Console > your project > Service API Keys); sent as a Bearer token |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* This is the places-api.foursquare.com API: service keys and a dated X-Places-Api-Version header instead of the old api.foursquare.com/v3 paths. fsq\_id is now fsq\_place\_id.
* With no 'fields', calls return all Pro fields; other fields must be named in 'fields', comma-separated (see the response fields page).
* Paging: when more results exist, the response's 'link' header carries the next-page URL with a cursor. 'limit' sets results per page.
* Rate limit: 50 queries per second across all endpoints on Pay as You Go and Sandbox, 100 on Enterprise.

## Endpoints

GET

Search places

Places matching a query, categories or chains around a point, in a box or near a named locality.

[Open](#foursquare-places-search)

GET

Get place details

One place by its Foursquare id: name, address, categories, coordinates, chains and any fields requested.

[Open](#foursquare-places-get)

GET

Get a place's tips

User tips (short reviews) left on a place.

[Open](#foursquare-places-tips)

GET

Get a place's photos

Photo records for a place: prefix and suffix to build an image URL, size and date.

[Open](#foursquare-places-photos)

GET

Autocomplete places and addresses

Suggestions for a partial query: places, search terms and geographies.

[Open](#foursquare-places-autocomplete)

GET

Match a place by name and address

The Foursquare place that best matches a known name and address, to resolve your record to a place id.

[Open](#foursquare-places-match)

### Search places

GET

`/places/search`

`foursquare.places.search`

Places matching a query, categories or chains around a point, in a box or near a named locality.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query`</td><td>string</td><td>query</td><td>Text matched against name, category, phone, taste and tips. Example `coffee`</td></tr>
    <tr><td>`ll`</td><td>string</td><td>query</td><td>Centre point as 'latitude,longitude'. Example `41.8781,-87.6298`</td></tr>

    <tr>
      <td>
        `radius`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Metres from ll, 0 to 100000; default 22000. Only with ll (or IP-biased location).
      </td>
    </tr>

    <tr>
      <td>
        `near`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A locality name, e.g. 'Chicago, IL'; errors if it cannot be geocoded.
      </td>
    </tr>

    <tr>
      <td>
        `ne`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        North-east corner of a box as 'lat,lng'; use with sw.
      </td>
    </tr>

    <tr>
      <td>
        `sw`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        South-west corner of a box as 'lat,lng'; use with ne.
      </td>
    </tr>

    <tr>
      <td>
        `fsq_category_ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated Foursquare category ids.
      </td>
    </tr>

    <tr>
      <td>
        `fsq_chain_ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated chain ids.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_fsq_chain_ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated chain ids to leave out; not with exclude\_all\_chains.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_all_chains`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only places not known to belong to a chain.
      </td>
    </tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated response fields; default all Pro fields.
      </td>
    </tr>

    <tr>
      <td>
        `min_price`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Lowest price tier, 1 to 4.
      </td>
    </tr>

    <tr>
      <td>
        `max_price`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Highest price tier, 1 to 4.
      </td>
    </tr>

    <tr>
      <td>
        `open_at`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Open at a day and time, DOWTHHMM with Monday = 1, e.g. '1T2130'. Not with open\_now.
      </td>
    </tr>

    <tr>
      <td>
        `open_now`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only places open now. Not with open\_at.
      </td>
    </tr>

    <tr><td>`tel_format`</td><td>string</td><td>query</td><td>Phone number format. One of `NATIONAL`, `E164`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Result order. One of `RELEVANCE`, `RATING`, `DISTANCE`, `POPULARITY`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 50; default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/place-search) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-places-text-search)

```python Python theme={null}
router.call_data_api("foursquare.places.search", {'query': 'coffee', 'll': '41.8781,-87.6298'})
```

```text MCP theme={null}
call_data_api(endpoint="foursquare.places.search", params={"query": "coffee", "ll": "41.8781,-87.6298"})
```

> [!NOTE]
>
> * radius, ne/sw and near drop global results; places without hours are excluded by open\_now and open\_at.

### Get place details

GET

`/places/{fsq_place_id}`

`foursquare.places.get`

One place by its Foursquare id: name, address, categories, coordinates, chains and any fields requested.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`fsq_place_id` required</td><td>string</td><td>path</td><td>The Foursquare place id (formerly venue id). Example `5a187743ccad6b307315e6fe`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated response fields; default all Pro fields.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/place-details) · Same job: [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-get), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-details), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-places-details), [HERE](https://docs.webrouter.net/data-apis/here-maps.md#here-maps-lookup), [Whitepages Pro](https://docs.webrouter.net/data-apis/whitepages.md#whitepages-property-owners), [Yelp Fusion](https://docs.webrouter.net/data-apis/yelp.md#yelp-businesses-get)

```python Python theme={null}
router.call_data_api("foursquare.places.get", {'fsq_place_id': '5a187743ccad6b307315e6fe'})
```

```text MCP theme={null}
call_data_api(endpoint="foursquare.places.get", params={"fsq_place_id": "5a187743ccad6b307315e6fe"})
```

### Get a place's tips

GET

`/places/{fsq_place_id}/tips`

`foursquare.places.tips`

User tips (short reviews) left on a place.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `fsq_place_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The Foursquare place id.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Tips per page, 1 to 50; default 10.
      </td>
    </tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated tip fields to return.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order; POPULAR is the default. One of `POPULAR`, `NEWEST`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/place-tips) · Same job: [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-google-reviews), [Outscraper](https://docs.webrouter.net/data-apis/outscraper.md#outscraper-maps-reviews), [Yelp Fusion](https://docs.webrouter.net/data-apis/yelp.md#yelp-businesses-reviews)

### Get a place's photos

GET

`/places/{fsq_place_id}/photos`

`foursquare.places.photos`

Photo records for a place: prefix and suffix to build an image URL, size and date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `fsq_place_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The Foursquare place id.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Photos per page, up to 50; default 10.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order; POPULAR is the default. One of `POPULAR`, `NEWEST`</td></tr>

    <tr>
      <td>
        `classifications`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated photo classifications to restrict to, e.g. 'food\_or\_drink', 'menu', 'outdoor', 'logos'.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/place-photos)

> [!NOTE]
>
> * An image URL is prefix + size + suffix; prefix + 'original' + suffix gives the full-size photo.

### Autocomplete places and addresses

GET

`/autocomplete`

`foursquare.places.autocomplete`

Suggestions for a partial query: places, search terms and geographies.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The partial text, at least 3 characters.
      </td>
    </tr>

    <tr>
      <td>
        `ll`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Point to bias around, as 'latitude,longitude'.
      </td>
    </tr>

    <tr>
      <td>
        `radius`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Metres around ll to bias results to.
      </td>
    </tr>

    <tr>
      <td>
        `types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Any combination of place, search and geo, comma-separated; default all.
      </td>
    </tr>

    <tr><td>`bias`</td><td>string</td><td>query</td><td>Bias results toward one type. One of `place`, `search`, `geo`</td></tr>

    <tr>
      <td>
        `session_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Your own token grouping a user's keystrokes and selection into one billed session.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1 to 50; default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/autocomplete) · Same job: [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-autocomplete), [Yelp Fusion](https://docs.webrouter.net/data-apis/yelp.md#yelp-autocomplete)

> [!NOTE]
>
> * Without session\_token every request is billed separately (per keystroke).

### Match a place by name and address

GET

`/places/match`

`foursquare.places.match`

The Foursquare place that best matches a known name and address, to resolve your record to a place id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `name`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Name of the place.
      </td>
    </tr>

    <tr>
      <td>
        `address`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Street address, e.g. '1060 W Addison St'.
      </td>
    </tr>

    <tr>
      <td>
        `city`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        City or locality.
      </td>
    </tr>

    <tr>
      <td>
        `state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        State or region.
      </td>
    </tr>

    <tr>
      <td>
        `postal_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Postal code.
      </td>
    </tr>

    <tr><td>`cc` required</td><td>string</td><td>query</td><td>Two-letter country code; only English-speaking countries are supported. Example `US`</td></tr>

    <tr>
      <td>
        `ll`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The place's location as 'latitude,longitude'.
      </td>
    </tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated response fields; default all Pro fields.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.foursquare.com/fsq-developers-places/reference/place-match) · Same job: [Yelp Fusion](https://docs.webrouter.net/data-apis/yelp.md#yelp-businesses-phone-search)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.