Skip to main content

Get a Mapbox API key

Store Locator needs a Mapbox public access token to display maps and provide address search.

Before you begin

info

Mapbox is a separate service with usage-based pricing. Review Mapbox costs and the free tier before publishing Store Locator.

You need access to both the Mapbox account and Store Locator's Settings page.

Connect Mapbox

  1. Create a Mapbox account or sign in.

  2. Open the Mapbox access tokens page.

    Mapbox account dashboard showing access tokens

  3. Copy the default public token, or create a public token with the scopes needed for maps and address search.

    Public access token on the Mapbox account page

  4. In Store Locator, open Settings.

  5. Paste the token into Mapbox > API key and save.

    Mapbox API key field in Store Locator settings

Address search should now return suggestions, and the Store Locator map should render on the storefront.

Keep the token public

Store Locator runs maps and search in the browser, so use a Mapbox public token. Do not paste a secret token into the app.