Skip to content

Instantly share code, notes, and snippets.

@vrootic
Created September 2, 2014 09:03
Show Gist options
  • Select an option

  • Save vrootic/a93e082f553f1cc41ec7 to your computer and use it in GitHub Desktop.

Select an option

Save vrootic/a93e082f553f1cc41ec7 to your computer and use it in GitHub Desktop.
import requests
request_api = 'https://api.foursquare.com/v2/venues/search'
your_client_id = ''
your_client_secret = ''
your_v = '20140902'
your_near = 'New York, NY'
request_params = dict(
near=your_near,
client_id=your_client_id,
client_secret=your_client_secret,
v=your_v)
response = requests.get(request_api, params=request_params)
result = response.json()
print result["response"]["venues"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment