Foursquare Intersections logo

Exploring Foursquare Data using GoLang

We love using GoLang. It's very easy to learn, and yet incredibly powerful. To explore this power further, we put together a simple project to get you started.

Written by Gareth Paul Jones on Jan 26, 2017 - Read time: 2 min - Read Later

In a previous post we discussed adding support for #GoLang to the sub-package OAuth. To extend this work further, this project allows you to explore the Foursquare API in more depth and additionally provide some proposed edits.

The project is split into two parts:

  • app — containing details about the app serving content via AppEngine
  • fsq — a lightweight library for go to perform search and display venue information.

This project will touch on two Foursquare API endpoints: venues/search and venues/VENUE_ID/proposeedit .

Getting Started

1. Get Your Developer Keys

Sign up for a Foursquare Developer or Enterprise Account.

Once you get setup you should have two important pieces of information:

  1. CLIENT_ID — Unique to your registered application.
  2. CLIENT_SECRET — Unique and private to your application.

Please remember to keep these keys in a secure location.

2. Clone this repo

git clone

3. Amend App.yaml with your variables

These are directly environment variables.

  FSQ_CLIENT_ID: 'YOUR_FOURSQUARE_KEY' // found in step 1
  FSQ_VERSION: 'YYYYMMDD' // e.g. 20170101

4. Run your application

goapp serve

Once your application is up and running, you can tweak it to your needs.

And if you've come this far, we'd love to hear from you.


Follow Gareth Paul Jones

Exploring Foursquare Data using GoLang

Read Later

Pardot response heading