Skip to main content

Fetch YouTube Playlists

Overview​

The Fetch YouTube Playlists endpoint allows you to retrieve all playlists associated with a specific YouTube account. This is useful for getting the playlist_name and playlist_id needed when scheduling video posts to YouTube with a playlist.

Base URL:

https://www.oneupapp.io

Endpoint​

GET /api/fetchytplaylist

Request Parameters​

ParameterRequiredDescription
apiKeyYesYour personal API key generated from the API Access page.
social_account_idYesThe YouTube channel's social account ID. You can find this from the List Category Accounts endpoint.

Sample Request​

curl --location --request GET \
"https://www.oneupapp.io/api/fetchytplaylist?apiKey=YOUR_API_KEY&social_account_id=UCkXtFwWzrnqSs630cWsl_BQ"

Sample Response​

[
{
"playlist_name": "My Playlist",
"playlist_id": "PLazcz28uOqE4"
}
]

Response Fields​

FieldDescription
playlist_nameThe name of the YouTube playlist.
playlist_idThe unique ID of the YouTube playlist.

Usage Example​

This endpoint is useful when you want to:

  1. Retrieve all available YouTube playlists for a given account.
  2. Get the playlist_name and playlist_id values required for scheduling video posts to a specific playlist.

When scheduling a video post to YouTube, pass the playlist details using the youtube parameter:

youtube={"playlist_name": "My Playlist", "playlist_id": "PLazcz28uOqE4"}

✅ Next Step: Use the playlist_name and playlist_id from the response to schedule a video post to YouTube by passing them in the youtube parameter (along with other optional YouTube settings such as privacy, tags, and made_for_kids) via the Create Video Post endpoint.