Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (12 sloc) 794 Bytes


  • Command line interface to the Yelp Search API. python --help
  • Command line interface to the Yelp Business API. python --help
  • Example for signing a search request using the oauth2 library.

These scripts require the oauth2 library which you can install via:

sudo easy_install oauth2

Search for bars in sf:

python --consumer_key="CONSUMER_KEY" --consumer_secret="CONSUMER_SECRET" \
--token="TOKEN" --token_secret="TOKEN_SECRET" --location="sf" --term="bars"

Lookup business information for yelp-san-francisco (Yelp):

python --consumer_key="CONSUMER_KEY" --consumer_secret="CONSUMER_SECRET" \
--token="TOKEN" --token_secret="TOKEN_SECRET" --id="yelp-san-francisco"
Something went wrong with that request. Please try again.