Skip to main content
POST
/
api
/
v1
/
analytics
/
social
/
youtube
/
channels
List YouTube channels cited in scope
curl --request POST \
  --url https://api.mentionlab.io/api/v1/analytics/social/youtube/channels \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "startDate": "2025-01-01",
  "endDate": "2025-02-01",
  "countries": [
    "BE",
    "FR"
  ],
  "languages": [
    "en",
    "fr"
  ],
  "models": [
    "gpt-4o",
    "claude-3-5-sonnet"
  ],
  "queryIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "queryTagIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "execTagIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "queryTagMode": "or",
  "execTagMode": "or",
  "timezone": "Europe/Brussels",
  "page": 1,
  "pageSize": 50,
  "search": "MrBeast",
  "channelCountry": "US",
  "sort": [
    {
      "field": "citationCount",
      "direction": "desc"
    }
  ]
}
'
{
  "globalYoutubeCitations": 733,
  "totalResponses": 2140,
  "results": [
    {
      "channelId": "UCsXVk37bltHxD1rDPwtNM8Q",
      "name": "Kurzgesagt – In a Nutshell",
      "country": "DE",
      "thumbnailUrl": "https://yt3.ggpht.com/abc123/mqdefault.jpg",
      "subscriberCount": "23400000",
      "videoCount": 215,
      "citedVideoCount": 4,
      "citationCount": 57,
      "citationShare": 7.78,
      "citationRate": 3.42,
      "uniqueQueryCount": 11,
      "firstCitedAt": "2026-04-01T09:12:34.000Z",
      "lastCitedAt": "2026-04-24T18:45:12.000Z",
      "lastSnapshotId": "01924f6a-7b90-7c11-9b8a-123456789abc"
    }
  ],
  "page": {
    "totalRecords": 123,
    "limit": 123,
    "currentPage": 123,
    "totalPages": 123,
    "nextPage": 123,
    "prevPage": 123
  }
}

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
startDate
string

Start date (inclusive)

Example:

"2025-01-01"

endDate
string

End date (exclusive)

Example:

"2025-02-01"

countries
string[]

Filter by country codes

Example:
["BE", "FR"]
languages
string[]

Filter by language codes

Example:
["en", "fr"]
models
string[]

Filter by AI models

Example:
["gpt-4o", "claude-3-5-sonnet"]
queryIds
string[]

Filter by query IDs

Example:
["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
hasSources
enum<string>

Filter by source presence: "sources" (only with sources), "no_sources" (only without), "all" (no filter). Legacy true/false values are still accepted.

Available options:
all,
sources,
no_sources
hasShopping
enum<string>

Filter by shopping presence: "shopping" (only with shopping), "no_shopping" (only without), "all" (no filter). Legacy true/false values are still accepted.

Available options:
all,
shopping,
no_shopping
queryTagIds
string[]

Filter by query tag IDs

Example:
["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
execTagIds
string[]

Filter by execution tag IDs

Example:
["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
queryTagMode
enum<string>
default:or

Query tag matching mode: "or" matches ANY tag (default), "and" matches ALL tags.

Available options:
and,
or
execTagMode
enum<string>
default:or

Execution tag matching mode: "or" matches ANY tag (default), "and" matches ALL tags.

Available options:
and,
or
timezone
string
default:UTC

IANA timezone for date bucketing and filtering (e.g. "Europe/Brussels"). Defaults to UTC.

Example:

"Europe/Brussels"

page
number
default:1

Page number (1-based) of the result set to return.

Example:

1

pageSize
number
default:50

Number of items to return per page (maximum 200).

Example:

50

Case-insensitive substring filter on the latest channel name, used to narrow results to a specific channel (e.g. the audited brand). SQL wildcards ('%', '_') and backslashes are escaped and treated literally.

Maximum string length: 200
Example:

"MrBeast"

channelCountry
string

Drill-down filter that restricts results to channels whose home country (from the latest snapshot) matches this ISO code, powering the per-country sheet. Distinct from the country scope filter, which represents the query/market country.

Example:

"US"

sort
object[]

Ordering rules applied to the result set. Each entry pairs a sortable field (name, country, subscriberCount, videoCount, citedVideoCount, citationCount, citationShare, citationRate, uniqueQueryCount, firstCitedAt, lastCitedAt) with a sort direction.

Example:
[
{
"field": "citationCount",
"direction": "desc"
}
]

Response

globalYoutubeCitations
number
required

Total distinct AI responses in scope that cited any YouTube video. Denominator for citationShare.

Example:

733

totalResponses
number
required

Total number of AI responses in the filtered scope. Used as the denominator for citationRate.

Example:

2140

results
object[]
required

Per-channel rows for the current page.

page
object
required

Pagination metadata.