https://api.apontador.com.br/v2/places
Method: GET
Authorization: You can use your access_token from application or from user
Parameters:
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria
If successful, this call will return:
{ "results":{ "header":{ "found":15801, "rows":1, "start":0, "next":"https://api.apontador.com.br/v2/places/?q=pizzaria&rows=1&start=1"}, "places":[{ "id":"C4088149120E2O0E2C", "link":{ "rel":"self", "uri":"https://api.apontador.com.br/v2/places/C4088149120E2O0E2C" }, "name":"Siriji Restaurante e Pizzaria", "phones":[ "558130323740" ], "urlApontador":"https://www.apontador.com.br/local/pe/recife/restaurantes/C4088149120E2O0E2C/siriji_restaurante_e_pizzaria.html", "address":{ "country":"BR", "state":"PE", "city":"Recife", "street":"Estrada de Belêm", "number":"671", "zipcode":"52030000" }, "location":{ "lat":"-8.0339", "lng":"-34.88604" }, "categories":[ { "id":"67", "name":"RESTAURANTES", "link":{ "rel":"self", "uri":"https://api.apontador.com.br/v2/categories/67" }, "subcategory":{ "id":"95264", "name":"Pizzerias" } }, ], "statistics":{ "pageviews":"158", "rating":"4.0", "reviews":"2", "checkins":"0", "photos":"3" } }] } }
Below you can find different cases of search
The request from our initial search can be filtered using parameter fq.
https://api.apontador.com.br/v2/places/?q=pizzaria&fq=address.city:"sao paulo"&wt=json
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria&fq=address.city:"sao paulo"
https://api.apontador.com.br/v2/places/?q=pizzaria&fq=address.city:"sao paulo" AND address.district:mooca&wt=json
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria&fq=address.city:"sao paulo" AND address.district:mooca
https://api.apontador.com.br/v2/places/?q=pizzaria&location.lat=-23.57361&location.lng=-46.58861&sort=location.distance&wt=json
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria&location.lat=-23.57361&location.lng=-46.58861&sort=location.distance
https://api.apontador.com.br/v2/places/?q=pizzaria&location.nw.lat=-23.57036&location.nw.lng=-46.59420&location.se.lat=-23.57660&location.se.lng=-46.58410&sort=location.distance&wt=json
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria&location.nw.lat=-23.57036&location.nw.lng=-46.59420&location.se.lat=-23.57660&location.se.lng=-46.58410&sort=location.distance
https://api.apontador.com.br/v2/places/?q=pizzaria&location.lat=-23.57361&location.lng=-46.58861&sort=location.distance&fl=name,phones,statistics.rating&wt=json
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?q=pizzaria&location.lat=-23.57361&location.lng=-46.58861&sort=location.distance&fl=name,phones,statistics.rating
https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.name:pizzarias&fq=address.city:"sao paulo"&wt=json&rows=5&sort=statistics.rating desc,statistics.pageviews desc
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.name:pizzarias&fq=address.city:"sao paulo"&rows=5&sort=statistics.rating desc,statistics.pageviews desc
https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.id:67&fq=address.city:"sao paulo"&wt=json&rows=5&sort=statistics.rating desc,statistics.pageviews desc
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.id:67&fq=address.city:"sao paulo"&rows=5&sort=statistics.rating desc,statistics.pageviews desc
https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.id:78&fq=address.city:"sao paulo"&wt=json&rows=5&sort=statistics.rating desc,statistics.pageviews desc
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?fq=categories.category.subcategory.id:78&fq=address.city:"sao paulo"&rows=5&sort=statistics.rating desc,statistics.pageviews desc
https://api.apontador.com.br/v2/places/?fq=placeLists.placeList.id:71
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?fq=placeLists.placeList.id:71
https://api.apontador.com.br/v2/places/?fq=utilities.utility.name:\"Ver Ofertas\" AND featured.photo.medium:[* TO *]&wt=json&fl=categories.category.name,id,name,address.state,address.city,address.street,address.number,location.lat,location.lng,statistics.reviews,statistics.rating,featured.photo.medium,utilities.utility.id,utilities.utility.name
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS_TOKEN" https://api.apontador.com.br/v2/places/?fq=utilities.utility.name:\"Ver Ofertas\" AND featured.photo.medium:[* TO *]&wt=json&fl=categories.category.name,id,name,address.state,address.city,address.street,address.number,location.lat,location.lng,statistics.reviews,statistics.rating,featured.photo.medium,utilities.utility.id,utilities.utility.name