Skip to content

Instantly share code, notes, and snippets.

@wylieconlon
Created March 7, 2014 00:07
Show Gist options
  • Save wylieconlon/9402445 to your computer and use it in GitHub Desktop.
Save wylieconlon/9402445 to your computer and use it in GitHub Desktop.
API sample for Smart Host
# example API requests
#
# http://www.smarthost.me/api/1.0/price/?address=412 E 9th St, New York, NY&private_room=true&entire_home=false&occupancy=2
# http://www.smarthost.me/api/1.0/price/?address=brooklyn&private_room=true&entire_home=false&occupancy=2
{
"average": 113.07379375591296,
"city": "New York",
"count": 1057,
"latitude": 40.64522171020508,
"longitude": -73.94938659667969,
"max": 6000,
"median": 99,
"min": 0,
"occupancy": "2",
"state": "NY"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment