Skip to content
Browse all functions

List YouTube Video Categories

youtube/listyoutubevideocategories

listyoutubevideocategories (List YouTube Video Categories) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/listyoutubevideocategories, 2 credits per call. It works in Make, n8n, scripts and AI agents as a plain HTTP call.

This function is deprecated and will be removed in a future release.

Returns a list of categories that can be associated with YouTube videos.

  • This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. More about service providers

Try it in the 1001fx app

Run listyoutubevideocategories in your browser with your API key – fill the form, click Run and get the answer or the file.

listyoutubevideocategories in the 1001fx app: the form with example values
List YouTube Video Categories in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/youtube/listyoutubevideocategories
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • credentialKeystringrequired

    Your 1001fx credential key. See https://1001fx.com/app/credentials/list

    Example:
    yourCredentialKey
  • idsarray<string>optional

    Comma seperated list of category IDs to retrieve.

    Min items:
    1
  • regionCodestringoptional

    The regionCode parameter instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. See https://1001fx.com/functions/listyoutubei18nregions.

    Example:
    US
  • hlstringoptional

    The hl parameter specifies the language that should be used for text values in the API response. The default value is en. See https://1001fx.com/functions/listyoutubei18nlanguages.

    Default:
    en
    Example:
    en

Examples

Categories by ID

Loads the categories with the given ids.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "ids": [
    "20",
    "21"
  ],
  "hl": "en"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/listyoutubevideocategories' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","ids":["20","21"],"hl":"en"}'

Categories of a region

All categories available in regionCode US.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "regionCode": "US",
  "hl": "en"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/listyoutubevideocategories' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","regionCode":"US","hl":"en"}'

Try listyoutubevideocategories now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.019.04.2023created
Ask 1001fx