---
title: "Facet stored Starbucks stores"
method: GET
path: "/datasets/starbucks-stores/facets"
tags: ["Datasets"]
---

# Facet stored Starbucks stores

`GET /datasets/starbucks-stores/facets`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/datasets/starbucks-stores/facets`
- Auth: API key in header `x-api-key`

Returns terms aggregation counts for the Starbucks store directory. Facet enum: `country`, `state`, `market`, `amenities`, `ownership_type_code`. Accepts the same filter parameters as search to scope the aggregation.

## Query parameters

- `facet` 'country' | 'state' | 'market' | 'amenities' | 'ownership_type_code', required
- `q` string
- `country` string
- `state` string
- `city` string
- `market` 'us' | 'ca'
- `amenity` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsStarbucksStoresFacetResponseDoc
  - `code` integer
  - `data` DatasetsStarbucksStoreFacetResponse
    - `dataset` string
    - `facet` string
    - `items` EsStarbucksStoreDatasetFacetItem[]
      - `count` integer
      - `key` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `500`: Internal Server Error

---

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