---
title: "Facet Apple Podcasts shows dataset"
method: GET
path: "/datasets/apple-podcasts-shows/facets"
tags: ["Datasets"]
---

# Facet Apple Podcasts shows dataset

`GET /datasets/apple-podcasts-shows/facets`

## Request

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

Returns value counts for one field of the Apple Podcasts shows dataset, chosen by the required `facet`: `genre`, `genre_id`, `country`, `content_advisory_rating` or `run_id`. The counts honour the search filters (`q`, `genre`, `country`, `min_track_count` and others) and cover the top 50 values.

## Query parameters

- `facet` 'genre' | 'genre_id' | 'country' | 'content_advisory_rating' | 'run_id', required
- `q` string
- `genre` string
- `genre_id` string
- `country` string
- `explicitness` string
- `run_id` string
- `min_track_count` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsApplePodcastsShowsFacetResponseDoc
  - `code` integer
  - `data` DatasetsApplePodcastsShowsFacetResponse
    - `dataset` string: Identifier of the dataset queried (`apple-podcasts-shows`).
    - `facet` string: Facet that was aggregated.
    - `items` EsApplePodcastsShowsDatasetFacetItem[]: Facet values with the number of matching records for each.
      - `count` integer: Number of shows with this value.
      - `value` string: Facet value being counted.
  - `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/afac9b012a27?raw)
