Skip to main content
GET
Get YouTube demographics

Request contract

  • Method and path: GET /apis/v1/social/analytics/youtube/demographics
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/analytics/youtube/demographics
  • accountId: query; required
  • videoId: query; optional
  • breakdown: query; optional
  • fromDate: query; optional
  • toDate: query; optional
  • startDate: query; optional
  • endDate: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.001 USD per successful request. Failed or unknown outcomes are not charged. Identical requests served from cache within 6 hours are free. A forced refresh is charged. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

accountId
string
required

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
videoId
string

YouTube video ID. When provided, demographics are scoped to this single video (must belong to the connected channel; otherwise 404 video_not_found).

breakdown
string

Comma-separated list of demographic dimensions: age, gender, country. Defaults to all three if omitted.

fromDate
string<date>

Start date in YYYY-MM-DD format. Defaults to 90 days ago, or to the video's publish date (lifetime) when videoId is provided.

toDate
string<date>

End date (YYYY-MM-DD). Defaults to 3 days ago, the newest fully finalized day (YouTube finalizes analytics with a ~3-day delay). An explicit toDate is honored up to today: days inside the delay window are provisional and may still be revised by YouTube (see provisionalSince in the response).

startDate
string<date>

Alias of fromDate, kept for existing callers

endDate
string<date>

Alias of toDate, kept for existing callers

Response

Demographic insights data

accountId
string

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
dateRange
object
demographics
object

Object keyed by breakdown dimension (age, gender, country)

note
string
platform
string
provisionalSince
string<date>

Present only when the range reaches into YouTube's ~3-day processing window: the first date whose numbers are provisional and may still be revised by YouTube.

publishedAt
string<date-time> | null

Video publish date (video mode only)

success
boolean
title
string | null

Video title (video mode only)

videoId
string

Present only when demographics are scoped to a single video