Foursquare

Independent location data platform

Go to site
Explore
/
Apps
/
Foursquare

Foursquare API Integrations

Build and run workflows using the Foursquare API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Foursquare API gives developers access to the Foursquare database of venues and users. With the API, developers can build applications that allow Foursquare users to check in to venues, find nearby venues, get recommendations, and more.

Here are some examples of what you can build with the Foursquare API:

  • An app that allows users to check in to venues and share their location with friends
  • A venue discovery app that recommends nearby places to eat, drink, and shop
  • A social network for foodies that lets users share photos and reviews of dishes they've tried
  • A travel app that helps users find things to do and see in different cities
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    foursquare: {
      type: "app",
      app: "foursquare",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.foursquare.com/v2/users/self`,
      headers: {
        Authorization: `Bearer ${this.foursquare.$auth.oauth_access_token}`,
      },
      params: {
        oauth_token: `${this.foursquare.$auth.oauth_access_token}`,
        "v": `20191001`,
      },
    })
  },
})

Choose an API to Connect with Foursquare API

1
-
12
of
1000+
apps by most popular

Authentication

Foursquare uses OAuth authentication. When you connect your Foursquare account, Pipedream will open a popup window where you can sign into Foursquare and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Foursquare API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://foursquare.com/oauth2/authenticate?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://foursquare.com/oauth2/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}