Sample API Response
The native Woosmap API JSON Data of your assets
The API return a GeoJson file with assets data. Here is a sample response:
Asset Feature Collection Response
{
"type": "FeatureCollection",
"features":
[
{
"type": "Feature",
"properties":
{
"store_id": "2354",
"name": "Berkeley Street/Berkeley Square",
"contact":
{
"phone": "02076295779",
"website": "https://www.starbucks.com/store-locator/store/2354/berkeley-street-berkeley-square-27-berkeley-st-berkeley-square-london-eng-w-1-x-5-",
},
"address":
{
"lines": ["27 Berkeley St", "London, ENG W1X 5AD"],
"country_code": "GB",
"city": "London",
"zipcode": "W1X 5AD",
},
"user_properties": { "take_away": "available" },
"tags": ["WA", "WF", "CD", "DR", "XO"],
"types": ["Coffee shop"],
"last_updated": "2022-11-10T13:23:53.564829+00:00",
"distance": 135.28682936,
"open":
{
"open_now": true,
"open_hours": [{ "end": "18:00", "start": "06:30" }],
"week_day": 3,
"current_slice": { "end": "18:00", "start": "06:30" },
},
"weekly_opening":
{
"1":
{
"hours": [{ "end": "18:00", "start": "06:30" }],
"isSpecial": false,
},
"2":
{
"hours": [{ "end": "18:00", "start": "06:30" }],
"isSpecial": false,
},
"3":
{
"hours": [{ "end": "18:00", "start": "06:30" }],
"isSpecial": false,
},
"4":
{
"hours": [{ "end": "18:00", "start": "06:30" }],
"isSpecial": false,
},
"5":
{
"hours": [{ "end": "18:00", "start": "06:30" }],
"isSpecial": false,
},
"6":
{
"hours": [{ "end": "17:00", "start": "08:00" }],
"isSpecial": false,
},
"7":
{
"hours": [{ "end": "17:00", "start": "08:00" }],
"isSpecial": false,
},
"timezone": "Europe/London",
},
"opening_hours":
{
"usual":
{
"1": [{ "end": "18:00", "start": "06:30" }],
"2": [{ "end": "18:00", "start": "06:30" }],
"3": [{ "end": "18:00", "start": "06:30" }],
"4": [{ "end": "18:00", "start": "06:30" }],
"5": [{ "end": "18:00", "start": "06:30" }],
"6": [{ "end": "17:00", "start": "08:00" }],
"7": [{ "end": "17:00", "start": "08:00" }],
},
"special": {},
"timezone": "Europe/London",
},
},
"geometry": { "type": "Point", "coordinates": [-0.14408, 51.5088] },
},
],
"pagination": { "page": 1, "pageCount": 1 },
}
And here is how to retrieve this assets using the Store Search API:
Sample Search call
https://api.woosmap.com/stores/search/
?lat=51.50976
&lng=-0.145276
&radius=300
&key=YOUR_PUBLIC_API_KEY
curl -L -X GET 'https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY',
headers: {
'Referer': 'http://localhost'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
url = "https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY"
payload={}
headers = {
'Referer': 'http://localhost'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY")
.method("GET", body)
.addHeader("Referer", "http://localhost")
.build();
Response response = client.newCall(request).execute();
require "uri"
require "net/http"
url = URI("https://api.woosmap.com/stores/search/?lat=51.50976&lng=-0.145276&radius=300&key=YOUR_PUBLIC_API_KEY")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Referer"] = "http://localhost"
response = https.request(request)
puts response.read_body
Was this article helpful?
Have more questions? Submit a request