Skip to main content

API

The public Store Locator API provides the location data used by the Stencil widget. Use it for a custom storefront or integration that needs the same enabled locations.

Public endpoint

The endpoint is intentionally unauthenticated for storefront use. Do not put private information in location fields, and validate or sanitise rich-text notes before rendering them.

Get locations

Send a GET request to:

https://storelocator.space48apps.com/store-locator/{storeHash}/{channelId}/{groupId}

The storelocator.space48apps.com hostname is a legacy technical service endpoint retained by the current implementation. It is not a support or marketing URL.

Path parameters

ParameterRequiredDescription
storeHashYesBigCommerce store hash.
channelIdYesNumeric BigCommerce channel ID, often 1 for the original storefront.
groupIdNoNumeric Store Locator group ID. When supplied, only locations in that group are returned.

Omit the final path segment when you do not need a group filter. See Filter locations by group for how groups are managed.

Response

The response envelope contains:

FieldTypeDescription
dataobjectThe main payload of the response.
metaarrayReserved for response metadata. Currently empty.

The data object contains:

FieldTypeDescription
activebooleanWhether the store's Store Locator subscription is active.
locationsarray of Location objectsEnabled locations assigned to the requested channel and, when supplied, group. The array is sorted by name.
allTagsarray of stringsDistinct tags in use by the store.

Location object

FieldTypeDescription
idintegerUnique identifier for the location.
enabledbooleanWhether the location is enabled. Returned locations are enabled for the requested channel.
channelsarray of integersChannel IDs where this location appears.
namestringName of the location.
addressstringFull address, line-separated.
postcodestring or nullPostal code of the location.
country_idinteger or nullInternal BigCommerce country ID.
country_namestring or nullFull country name.
country_isostring or nullTwo-letter country code, such as GB or US.
latitudenumber or nullLatitude coordinate.
longitudenumber or nullLongitude coordinate.
phonestring or nullContact phone number.
emailstring or nullContact email address.
urlstring or nullWebsite URL.
opening_timesobjectObject keyed by capitalised weekday names, or an empty object.
imagesarray of stringsZero or one absolute image URL.
tagsarray of stringsTag names assigned to the location.
map_pin_colorstring or nullCustom pin color (e.g., hex code).
map_pin_image_urlstring or nullAbsolute URL for a custom pin image.
is_pinnedbooleanWhether this location is featured/pinned.
groupsarray of integersStore Locator group IDs assigned to the location.
notesstring (HTML) or nullOptional rich-text notes for the location.

Opening-times object

Each weekday value contains:

FieldTypeDescription
fromstringOpening time in HH:MM format.
tostringClosing time in HH:MM format.
closedbooleanWhether the location is closed on this day.
openTwentyFourHoursbooleanWhether the location is open 24 hours.