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
| Parameter | Required | Description |
|---|---|---|
apiKey | Yes | Your personal API key generated from the API Access page. |
social_account_id | Yes | The 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=UC2tfTuFO9diTgaaeozmDLKg"
Sample Response
[
{
"playlist_name": "ijhwofejifow",
"playlist_id": "PLsmRfwpAUptdmOY0mHWCZaS-466bvZQcZ"
}
]
Response Fields
| Field | Description |
|---|---|
playlist_name | The name of the YouTube playlist. |
playlist_id | The unique ID of the YouTube playlist. |
Usage Example
This endpoint is useful when you want to:
- Retrieve all available YouTube playlists for a given account.
- Get the
playlist_nameandplaylist_idvalues 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": "ijhwofejifow", "playlist_id": "PLsmRfwpAUptdmOY0mHWCZaS-466bvZQcZ"}
✅ 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 via the Create Video Post endpoint.