= The Search for Sushi : A real story = Let's start with searching for merchants. Let's say we are looking for sushi in downtown Montreal, we all love sushi yes ? Let's build the request for those sushi restaurants. Our last request from the Hello World exemple was http://api.praized.com/apitribe/merchants.xml?api_key=a0d3b09f9dcc50db5803306886510641 That request gives us the top merchants for the community. To do a search on merchants (or places), we use the same endpoint, but add new parameters. "q" : the query, "l", the location and or "t" for tags. For more precise locations, we can use latitude : "lat", longitude : "long" and radius : "radius" (in kilometers). So to get our sushi we would do this : http://api.praized.com/apitribe/merchants.xml?api_key=a0d3b09f9dcc50db5803306886510641&q=sushi&l=montreal And we would get something like this : {{{ apitribe Api Tribe http://api-tribe.com/praized/ http://api-tribe.com/ 12 10 114 1 13aa5889d466fb04c4ffd8dec1615529 http://api-tribe.com/praized/places/ca/quebec/montreal/restaurant-sushi-mou-shi?l=montreal&q=sushi Restaurant Sushi Mou-Shi 0 2008-07-04T13:28:31Z http://przd.com/stA-93 0 100 1 1 ... }}} Pagination parameters here are useful, because we are gette 114 entries. "per_page" : the number of entries per page and "page", the page number, are used for this. The order of results are bazed on the number of praizes the merchants / places gets. Let's add a couple of tags to get more interestings results. Tags are (you probably know, but where are in a tutorial after all) community metadata added to a merchant / place. Here is our updated query : http://api.praized.com/apitribe/merchants.xml?api_key=a0d3b09f9dcc50db5803306886510641&q=sushi&l=montreal&t=fastfood And we would get a more limited number of places. Same with : http://api.praized.com/apitribe/merchants.xml?api_key=a0d3b09f9dcc50db5803306886510641&q=sushi&l=montreal&t=downtown You can also restrict the search to your communities using the r=communities parameter. Or if you visit Praized headquaters, let's find a sushi restaurant at a walking distance (1.5 km) http://api.praized.com/apitribe/merchants.xml?api_key=a0d3b09f9dcc50db5803306886510641&q=sushi&lat=45.505159&long=-73.567934&radius=1.5 You can play with the search endpoint and get the most out of it! ------ Continue to [A_Third_Tutorial_OAuth A Third Tutorial : Understanding OAauth with Praized] Back to [First_tutorial_Hello_World Praized'Hello World] Up to [API Our Index]