Skip to content

Likes and Dislikes

This query provides analytics data for likes and dislikes on your YouTube channel over a specified time period. Data can be aggregated by day or month.

Example Output

Open

Parameters

Dimension

Specifies how to aggregate the data:

  • Day: Daily aggregation
  • Month: Monthly aggregation
  • Creator Content Type: Aggregation by content type

Start Date

The beginning date for fetching analytics data in format YYYY-MM-DD (e.g., 2024-01-01).

  • Cannot be in the future

End Date

The end date for fetching analytics data in format YYYY-MM-DD (e.g., 2024-09-30).

  • Cannot be in the future
  • Must be after Start Date

Tip: For scheduled requests, you may need to update the date daily. Instead of specifying the date manually, you can use 'today' or 'yesterday' as the parameter. When the request runs, the date will automatically adjust to the desired day.

IDs

Specifies the channel for which to retrieve data.

  • Options:
    • "channel==MINE": Fetches data for your own channel
    • "channel==CHANNEL_ID": Retrieves data for a specific channel you own

Sort (Optional)

Determines the order of results.

  • Can sort by likes or dislikes

Filters (Optional)

Defines specific data criteria:

  • Examples:
    • "country==US" to filter by country
    • Other standard YouTube Analytics API filters

Columns

  • Dimension: The selected time period (day/month) or content type

  • Likes: The change in total likes (='likes added' - 'likes removed'). Before 2012/09/01, 'likes removed' were not subtracted

  • Dislikes: The change in total dislikes (='dislikes added' - 'dislikes removed'). Before 2012/09/01, 'dislikes removed' were not subtracted

Notes

  • Historical data before September 2012 may calculate likes/dislikes differently

-