Ssocialgraph.dev
API reference / YouTube API / Video categories list

YouTube video categories API: category IDs and names by region

Read-only YouTube Data API v3 videoCategories list endpoint.

1 credit per successful call Errors are never charged No login or OAuth needed

About the Video categories list endpoint

The YouTube video categories API returns the categories available in a region, with each category's numeric ID and title, for example 10 for Music, 20 for Gaming, 27 for Education and 28 for Science & Technology. Use it to decode the categoryId found in video data and in the Audience demographics API, or to filter searches and charts by category. It mirrors YouTube Data API v3's videoCategories.list.

What you can build with it

  • Decoding categoryId values in video responses into category names
  • Category filters for search and most-popular charts
  • Content classification reports by category

Request

GET https://socialgraph.dev/api/v1/youtube/videoCategories

Send your API key as Authorization: Bearer YOUR_API_KEY. Parameters go in the query string.

Parameters

NameTypeDescription
part
required
string Required. Use snippet.
regionCode
optional
string Categories available in this country (provide regionCode or id). For example: US
id
optional
string Comma-separated category IDs (provide regionCode or id). For example: 28
hl
optional
string Language for the category titles. For example: es

Code examples


Example response

{
    "etag": "QteLrrS_X7rM7rlcU_e7qa0embQ",
    "kind": "youtube#videoCategoryListResponse",
    "items": [
        {
            "id": "1",
            "etag": "grPOPYEUUZN3ltuDUGEWlrTR90U",
            "kind": "youtube#videoCategory",
            "snippet": {
                "title": "Film & Animation",
                "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
                "assignable": true
            }
        },
        {
            "id": "2",
            "etag": "Q0xgUf8BFM8rW3W0R9wNq809xyA",
            "kind": "youtube#videoCategory",
            "snippet": {
                "title": "Autos & Vehicles",
                "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
                "assignable": true
            }
        },
        {
            "id": "10",
            "etag": "qnpwjh5QlWM5hrnZCvHisquztC4",
            "kind": "youtube#videoCategory",
            "snippet": {
                "title": "Music",
                "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
                "assignable": true
            }
        },
        {
            "id": "15",
            "etag": "HyFIixS5BZaoBdkQdLzPdoXWipg",
            "kind": "youtube#videoCategory",
            "snippet": {
                "title": "Pets & Animals",
                "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
                "assignable": true
            }
        },
        {
            "id": "17",
            "etag": "PNU8SwXhjsF90fmkilVohofOi4I",
            "kind": "youtube#videoCategory",
            "snippet": {
                "title": "Sports",
                "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
                "assignable": true
            }
        }
    ]
}

Errors

StatusMeaningCharged?
401Missing, invalid or revoked API keyNo
402Not enough credits (insufficient_credits)No
404The account or post doesn't existNo
422Missing or invalid parametersNo
502 / 503The data source is temporarily unavailableNo

All error codes →

Video categories list API: frequently asked questions

What is YouTube category ID 10, 20 or 22?

10 is Music, 20 is Gaming and 22 is People & Blogs. This endpoint returns the full list with names for your region.

Do categories differ by country?

Slightly: some categories are only assignable in certain regions, so pass regionCode for the country you work with.

Can I get category names in another language?

Yes, with the hl parameter.

Which categories can videos be assigned to?

The response includes an assignable flag for each category; some, like Movies or Trailers, exist but can't be assigned by uploaders.

How much does the Video categories list endpoint cost?

1 credit per successful call (0.002 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.

Can I try the Video categories list API without signing up?

Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.

Try it live: Video categories list GET

🔒 Preset demo input. Live demos use the Google for Developers channel, youtube.com/@GoogleDevelopers. Sign up free to use your own.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account →