curl --request GET \
--url https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locatorimport requests
url = "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"brand": {
"id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"logo_url": "https://cdn.closient.com/brands/acme/logo.png",
"name": "Acme Beverages",
"website": "https://acme.example.com"
},
"stores": []
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Find stores carrying a brand
Returns the brand’s identity and the physical stores within radius km of (lat, lon) that carry at least one of the brand’s products as an active in-store offer, sorted by ascending great-circle distance. Public, unauthenticated — designed to be called from the brand’s website via the embeddable widget. CORS is open. Coordinates are WGS 84 / EPSG:4326 (the standard used by browsers’ navigator.geolocation and Google Maps); PostGIS computes distance on the geography type.
curl --request GET \
--url https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locatorimport requests
url = "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/public/brands/{brand_id}/locator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"brand": {
"id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"logo_url": "https://cdn.closient.com/brands/acme/logo.png",
"name": "Acme Beverages",
"website": "https://acme.example.com"
},
"stores": []
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Path Parameters
Brand short id (22-char shortuuid).
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Query Parameters
Latitude of the search centre in decimal degrees, WGS 84 / EPSG:4326. Typically obtained from the browser's navigator.geolocation API or a geocoded user query.
-90 <= x <= 90Longitude of the search centre in decimal degrees, WGS 84 / EPSG:4326.
-180 <= x <= 180Search radius in kilometres. Locations farther than this from (lat, lon) are excluded.
Maximum number of stores to return (1-100). Results are pre-sorted by distance ascending.
1 <= x <= 100Optional product short id to filter stores by. When set, only stores carrying that specific product are returned.
Response
OK
Top-level payload for the brand locator endpoint.
Identity of the brand the widget is rendering. Lets the widget render branding without a second request.
Show child attributes
Show child attributes
{
"id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"logo_url": "https://cdn.closient.com/brands/acme/logo.png",
"name": "Acme Beverages",
"website": "https://acme.example.com"
}
Physical stores within radius km of (lat, lon) that carry at least one of the brand's products, sorted by ascending great-circle distance. Empty list when no stores match.
Show child attributes
Show child attributes