Skip to content
Browse all functions

List YouTube Playlists

youtube/listyoutubeplaylists

listyoutubeplaylists (List YouTube Playlists) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/listyoutubeplaylists, 3 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 collection of playlists that match the API request parameters.

  • 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 listyoutubeplaylists in your browser with your API key – fill the form, click Run and get the answer or the file.

listyoutubeplaylists in the 1001fx app: the form with example values
List YouTube Playlists in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/youtube/listyoutubeplaylists
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 playlist IDs.

    Min items:
    1
  • channelIdstringoptional

    This value indicates that the API should only return the specified channels playlists.

    Example:
    UCFV937jVrmyxiR5NhILQlTQ
  • minebooleanoptional

    Set this parameters value to true to instruct the API to only return playlists owned by the authenticated user.

    Example:
    true
  • maxResultsnumberoptional

    Defines how many comment threads to retrieve. Defaults to 5.

    Default:
    5
    Min:
    1
    Max:
    50
    Example:
    5
  • pageTokenstringoptional

    The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

  • 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

Playlists of a channel

Public playlists of the channel in channelId.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "channelId": "UCFV937jVrmyxiR5NhILQlTQ",
  "mine": false,
  "maxResults": 5,
  "hl": "en"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/listyoutubeplaylists' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","channelId":"UCFV937jVrmyxiR5NhILQlTQ","mine":false,"maxResults":5,"hl":"en"}'

My playlists

mine: true lists the playlists of the connected account.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "mine": true,
  "maxResults": 5,
  "hl": "en"
}

Output · HTTP 200

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

Playlists by ID

Loads the playlists with the given ids.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "ids": [
    "PLSN41gj3iqOCRBt-ColNW3jWOPZwQMDqR"
  ],
  "mine": false,
  "maxResults": 5,
  "hl": "en"
}

Output · HTTP 200

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

Try listyoutubeplaylists now

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

Changelog

  • 1.0.026.04.2023created
Ask 1001fx