---
title: "Search brand locations"
method: POST
path: "/api/search/smart/brands/locations"
tags: ["Search"]
deprecated: true
---

# Search brand locations

`POST /api/search/smart/brands/locations`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/search/smart/brands/locations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/search/smart/brands/locations/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Returns a paginated list of brand locations matching the search criteria. Deprecated: use the Reporting API /brands/locations endpoint instead.

## Request body

- LocationForSmartSearchOnBrandsShowRequest
  - `located_in_market` string: Comma-separated located-in market IDs.
  - `market` string: Comma-separated target market IDs.
  - `league` string: Comma-separated league IDs.
  - `brand` string: Comma-separated brand IDs.
  - `city` string: Comma-separated city IDs.
  - `category` string: Comma-separated category IDs.
  - `subcategory` string: Comma-separated subcategory IDs.
  - `state` string: Comma-separated state IDs.
  - `order_by` 'brand' | 'category' | 'subcategory' | 'street' | 'city' | 'state' | 'country' | 'total_deals_count': Field to order results by.
  - `order_direction` 'asc' | 'desc': Sort direction.
  - `page` integer: Page number.
  - `per_page` integer: Number of items per page.

## Response `200`

A paginated list of brand locations.

- object
  - `data` LocationForSmartSearchOnBrandsShowResource[]
    - `company_id` integer
    - `company_logo` string
    - `company_name` string
    - `subcategory_id` integer
    - `subcategory_name` string
    - `category_id` integer
    - `category_name` string
    - `street` string
    - `is_hq` integer
    - `city_name` string
    - `city_id` integer
    - `state_name` string
    - `state_id` integer
    - `county_name` string
    - `county_id` integer
    - `country_name` string
    - `country_id` integer

## Other responses

- `401`: Unauthenticated.
- `422`: Validation error.

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
