---
title: "Facet the YouTube creators dataset"
method: GET
path: "/datasets/youtube-creators/facets"
tags: ["Datasets"]
---

# Facet the YouTube creators dataset

`GET /datasets/youtube-creators/facets`

## Request

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

Returns value counts for the YouTube creators dataset by the required `facet`: `region` or `discovery_source`. The counts honour the search filters, such as subscriber, video and view ranges and join or refresh dates, and cover the top 50 values.

## Query parameters

- `facet` 'region' | 'discovery_source', required
- `q` string
- `channel_id` string
- `region` string
- `discovery_source` string
- `has_bio` boolean
- `has_links` boolean
- `followers_count_available` boolean
- `videos_count_available` boolean
- `views_count_available` boolean
- `min_followers` integer
- `max_followers` integer
- `min_videos` integer
- `max_videos` integer
- `min_views` integer
- `max_views` integer
- `joined_after` string
- `joined_before` string
- `hydrated_after` string
- `hydrated_before` string
- `sort` 'relevance' | 'followers_desc' | 'followers_asc' | 'views_desc' | 'videos_desc' | 'hydrated_at_desc' | 'hydrated_at_asc'

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsYoutubeCreatorsFacetResponseDoc
  - `code` integer
  - `data` DatasetsYoutubeCreatorFacetResponse
    - `dataset` string
    - `facet` string
    - `items` EsYoutubeCreatorDatasetFacetItem[]
      - `count` integer
      - `value` 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/028417aa35bb?raw)
