Maps Search
Search locations seamlessly with our Maps Search API. Provide a query, and our api retrieves detailed location data and points of interest from multiple sources.
cURL 'https://api.enrich.so/v1/api/search-maps-on-google?query=Zara&gps_position=long&page_size=10' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');
axios.get("https://api.enrich.so/v1/api/search-maps-on-google?query=Zara&gps_position=long&page_size=10", {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});// Some code
import requests
payload = {'query': 'Zara', 'gps_position': 'long', 'page_size': 10}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/search-maps-on-google', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.enrich.so/v1/api/search-maps-on-google?query=Zara&gps_position=long")
.get()
.addHeader("accept", "application/json")
.addHeader("authorization", "Bearer <token>")
.build();
Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'
url = URI("https://api.enrich.so/v1/api/search-maps-on-google?query=Zara&gps_position=long&page_size=10")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrich.so/v1/api/search-maps-on-google?query=Zara&gps_position=long&page_size=10",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: application/json",
"authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Example response
Status Code: 200 OK
{
"success": true,
"message": "Search successfully executed.",
"data": {
"request_parameters": {
"query": "\"Zara\"",
"type": "maps",
"page_size": 5,
"current_page": 0,
"engine": "google",
"gps_position": "@latitude"
},
"ll": "@46.1285393,-118.3270212,5z",
"result": [
{
"position": 1,
"title": "ZARA",
"address": "Westlake Center, 400 Pine St, Seattle, WA 98101",
"latitude": 47.611743,
"longitude": -122.33724799999999,
"rating": 3.6,
"ratingCount": 748,
"priceLevel": "$$",
"type": "Clothing store",
"types": [
"Clothing store"
],
"website": "https://www.zara.com/us/en/stores-locator/zara-seattle-wa_sea_d_sea_westlake-center-m-s6424",
"phoneNumber": "(833) 247-2473",
"description": "Spanish fashion chain offering on-trend house-brand clothing, shoes & accessories.",
"openingHours": {
"Wednesday": "11 AM–7 PM",
"Thursday": "11 AM–7 PM",
"Friday": "10 AM–8 PM",
"Saturday": "10 AM–8 PM",
"Sunday": "11 AM–7 PM",
"Monday": "11 AM–7 PM",
"Tuesday": "11 AM–7 PM"
},
"thumbnailUrl": "https://lh5.googleusercontent.com/p/AF1QipOfC0xdoNxX2qk2T2ZwojDb9ohJ75nmVDGtejvd",
"cid": "12884396970179372739",
"fid": "0x5490154b054d4323:0xb2ce92c7a8a926c3",
"placeId": "ChIJI0NNBUsVkFQRwyapqMeSzrI"
},
{
"position": 2,
"title": "ZARA",
"address": "575 Bellevue Way NE, Bellevue, WA 98004",
"latitude": 47.614218699999995,
"longitude": -122.2040249,
"rating": 3.3,
"ratingCount": 920,
"priceLevel": "$$",
"type": "Clothing store",
"types": [
"Clothing store"
],
"website": "https://www.zara.com/us/en/stores-locator/bellevue-wa_sea_m_bellevue_bellevue-square-m-s7998",
"phoneNumber": "(833) 247-2473",
"description": "Spanish fashion chain offering on-trend house-brand clothing, shoes & accessories.",
"openingHours": {
"Wednesday": "10 AM–9 PM",
"Thursday": "10 AM–9 PM",
"Friday": "9 AM–9 PM",
"Saturday": "9 AM–9 PM",
"Sunday": "11 AM–7 PM",
"Monday": "9 AM–10 PM",
"Tuesday": "10 AM–9 PM"
},
"thumbnailUrl": "https://lh5.googleusercontent.com/p/AF1QipN6Z0qniFzLCHYPCP6LSnuHgJA0QkohLUaZmVa5",
"cid": "15180882672874059568",
"fid": "0x54906c865f0eb713:0xd2ad545bf58a7730",
"placeId": "ChIJE7cOX4ZskFQRMHeK9VtUrdI"
},
{
"position": 3,
"title": "ZARA",
"address": "184Th St Sw 3000 Lynnwood District of Columbia, Lynnwood, WA 98037",
"latitude": 47.82964,
"longitude": -122.27356999999999,
"rating": 4,
"ratingCount": 396,
"priceLevel": "",
"type": "Clothing store",
"types": [
"Clothing store"
],
"website": "https://www.zara.com/us/en/stores-locator/lynnwood-wa_sea_m_lyn_alderwood-m-s12430",
"phoneNumber": "(833) 247-2473",
"description": "Spanish fashion chain offering on-trend house-brand clothing, shoes & accessories.",
"openingHours": {
"Wednesday": "10 AM–9 PM",
"Thursday": "10 AM–9 PM",
"Friday": "10 AM–9 PM",
"Saturday": "10 AM–9 PM",
"Sunday": "Closed",
"Monday": "10 AM–9 PM",
"Tuesday": "10 AM–9 PM"
},
"thumbnailUrl": "https://lh5.googleusercontent.com/p/AF1QipPpVwyk-SIUacUUe1YeylqH8VMaIY900wNJVY9I",
"cid": "7871090729175463779",
"fid": "0x549005ef96e914d3:0x6d3bbb50bb5fb763",
"placeId": "ChIJ0xTplu8FkFQRY7dfu1C7O20"
},
{
"position": 4,
"title": "ZARA FOOD MART",
"address": "9530 Aurora Ave N, Seattle, WA 98103",
"latitude": 47.698214799999995,
"longitude": -122.3440938,
"rating": 3,
"ratingCount": 25,
"priceLevel": "",
"type": "Convenience store",
"types": [
"Convenience store"
],
"website": "",
"phoneNumber": "(206) 829-9917",
"description": "",
"openingHours": {
"Wednesday": "7 AM–10 PM",
"Thursday": "7 AM–10 PM",
"Friday": "7 AM–10 PM",
"Saturday": "7 AM–10 PM",
"Sunday": "10 AM–9 PM",
"Monday": "7 AM–10 PM",
"Tuesday": "7 AM–10 PM"
},
"thumbnailUrl": "https://lh5.googleusercontent.com/p/AF1QipPn-m3BYCQVMsZTby_z1Ib9gcqkbTPIMqmlrC2T",
"cid": "14191890822896998841",
"fid": "0x549017a2bc62f39b:0xc4f3b982f5e6d9b9",
"placeId": "ChIJm_NivKIXkFQRudnm9YK588Q"
},
{
"position": 5,
"title": "Zara",
"address": "1056 Robson St, Vancouver, BC V6E 1A7, Canada",
"latitude": 49.284042,
"longitude": -123.124247,
"rating": 3.6,
"ratingCount": 1443,
"priceLevel": "$$",
"type": "Clothing store",
"types": [
"Clothing store"
],
"website": "http://www.zara.com/ca",
"phoneNumber": "(833) 673-6157",
"description": "Spanish fashion chain offering on-trend house-brand clothing, shoes & accessories.",
"openingHours": {
"Wednesday": "10 AM–8 PM",
"Thursday": "10 AM–8 PM",
"Friday": "10 AM–8 PM",
"Saturday": "10 AM–8 PM",
"Sunday": "11 AM–7 PM",
"Monday": "10 AM–8 PM",
"Tuesday": "10 AM–8 PM"
},
"thumbnailUrl": "https://lh5.googleusercontent.com/p/AF1QipOdyWS90paHJj4HQP8MTRhE6OwJcMNN3pffM_07",
"cid": "2835108593873541939",
"fid": "0x5486718043c02549:0x2758543ebd7d5b33",
"placeId": "ChIJSSXAQ4BxhlQRM1t9vT5UWCc"
}
]
},
"total_credits": 100,
"credits_used": 64.1,
"credits_remaining": 35.900000000000006
}
Status code: 404 NOT FOUND
{
"message": "We couldn't find the results for this query"
}
Last updated