You can use the Search API to query nextstop for information about places and guides based on a number of criteria. The Search API is subject to the nextstop API Terms of Use and shares the same basic usage model as other nextstop APIs. You should read the API Overview for basic information on registering for an API key and using the nextstop API.
To issue a search using the API, you should make a GET request to http://api.nextstop.com/search/. Your request should include all of the required parameters specified below.
The search API currently supports the following GET parameters.
Note that the lat/lng of a guide is the lat/lng for the area that contains all the places in a guide. For example, if a guide contains places in San Francisco, the lat/lng for the guide will be the center of the city of San Francisco. If the guide contains places in Portland and San Francsico, the lat/lng for the guide will be the center of the United States.
The search API returns results in the JSON format. Each response includes some core data about the response, and a list of matching places or guides. Take a look at this example response for a places search.
"status": 200,
"message": "",
"data": {
"start": 0,
"resultCount: 1,
"totalResults": 100,
"resultsList": [
{
"website": "",
"locationName": "San Francisco",
"permalink": "http://www.nextstop.com/p/l31u6VYjNv8/dotties-true-blue-cafe/",
"name": "Dottie's True Blue Caf\u00e9",
"geoAccuracy": "point",
"apiEndpoint": "http://api.nextstop.com/p/l31u6VYjNv8/dotties-true-blue-cafe/",
"phone": "415/885-2767",
"address": "522 Jones St",
"lat": 37.786180000000002,
"lng": -122.41307399999999,
"locationUrl": "http://www.nextstop.com/loc/p21IF7pj2yw/san-francisco/",
"recommendationsInfo": {
"count": 4,
"bestRecommendation": {
"cardImageUrl": "http://www.nextstop.com/widget/i/minicard/TaL5lLzVICo.png",
"permalink": "http://www.nextstop.com/p/l31u6VYjNv8/dotties-true-blue-cafe/?card=TaL5lLzVICo&",
"name": "Dottie's True Blue Cafe",
"imageAttributionUrl": "http://www.sanfranciscodays.com/photos/large/dotties.jpg",
"authorInfo": {
"role": "owner",
"authorName": "donovan",
"authorPhotoUrl": "http://images.nextstop.com/profilepic_-OcsJr5SnRc_nearexpires_80sq",
"authorUrl": "http://www.nextstop.com/profile/donovan/"
},
"smallCachedImageUrl": "http://images.nextstop.com/87ae2ffe-e41e-4616-83b8-ea83f239f73f_150sq",
"largeCachedImageUrl": "http://images.nextstop.com/87ae2ffe-e41e-4616-83b8-ea83f239f73f_300sq",
"dateCreated": "2009-09-15 19:09:00",
"onList": {
"apiEndpoint": "http://api.nextstop.com/guide/6eo8vf_Vr8o/san-francisco-neighborhood-gems/",
"permalink": "http://www.nextstop.com/guide/6eo8vf_Vr8o/san-francisco-neighborhood-gems/",
"name": "San Francisco Neighborhood Gems"
},
"imageAttribution": "sanfranciscodays.com",
"shortText": "It could be that any food would seem amazing after waiting in that line - or it could really be that amazing. Actually it probably is.",
"originalImageUrl": "http://www.sanfranciscodays.com/photos/large/dotties.jpg"
}
}
}
],
"resultsInfo": {
"categoryCounts": {
"shop-browse": 2,
"eat-drink": "100+",
"do-explore": 47,
"any": 1,
"stay-sleep": 2
}
All responses from the nextstop API will include: