---
title: "Find a brand location | AEO API"
description: "Look up one of a brand's locations by store code or city and use its ID when reading location-level visibility."
url: "https://aeoapi.dev/docs/guides/find-brand-locations"
canonical: "https://aeoapi.dev/docs/guides/find-brand-locations"
last_updated: "2026-11-30"
---

# Find a brand location

When two stores share a city, a city name alone cannot identify which store an answer describes. Use the brand’s location ID for a store-level report.

## Before you start

Set `AEO_API_KEY` to a key with `brands:read` and access to the brand. You can read locations on Analyzer or Optimizer.

## 1. Find the brand

```
curl --fail-with-body --get 'https://api.aeoapi.dev/v2/brands' \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode 'q=Example'
```

Replace `Example` with the brand name. Check its domains before saving the selected brand’s `id` as `BRAND_ID`.

## 2. Match the store

Set `STORE_CODE` to the identifier your organization assigned to the store.

```
curl --fail-with-body --get "https://api.aeoapi.dev/v2/brands/$BRAND_ID" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode 'view=locations' \
  --data-urlencode "store_code=$STORE_CODE"
```

`data.items` contains the matching locations. Check `store_code` and the address, then save the matching `id` as `LOCATION_ID`. If you only know the city, replace the `store_code` query parameter with `city` and check the address for each match.

## 3. Read the location’s results

Use a key that also has `analytics:read`. This example reads October 2026. Substitute the period for which you collected answers.

```
curl --fail-with-body --get 'https://api.aeoapi.dev/v2/analytics/visibility' \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode "brand_id=$BRAND_ID" \
  --data-urlencode "location_id=$LOCATION_ID" \
  --data-urlencode 'start_at=2026-10-01T00:00:00Z' \
  --data-urlencode 'end_at=2026-11-01T00:00:00Z'
```

Check each row’s `coverage.valid_answers` alongside its `mention_rate`. To see whether the result differs by store, [compare the brand’s locations](https://aeoapi.dev/docs/guides/compare-location-visibility).
