YOUTUBE API
Playlist
Retrieve playlist from YouTube with a single API request.
GET
/api/data/v1/youtube/playlist1credit base cost
Request parameters
Up to 1 creditThe ID of the YouTube playlist. In the YouTube URL it will be the 'list' parameter.
Token from the previous response to get the next page. Omit for the first page. Stop when the returned continuationToken is null.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/youtube/playlist?playlist_id=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"title": "Songs with Lyrics 2025 - New Songs 2025 - Music 2025 New Songs",
"owner": {
"id": "UC0-wiBH12UgtWqLjo-EvpOw",
"name": "Lovely Tunes",
"url": "https://www.youtube.com/@lovelytunes7622",
"handle": "lovelytunes7622"
},
"totalVideos": 98,
"videos": [
{
"id": "AdBzzpq3xV4",
"title": "Lady Gaga, Bruno Mars - Die With A Smile",
"thumbnail": "https://i.ytimg.com/vi/AdBzzpq3xV4/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLABnTkQJmfW0s1BMl_qa0FGqIGGqw",
"url": "https://www.youtube.com/watch?v=AdBzzpq3xV4",
"lengthText": "4:15",
"lengthSeconds": 255,
"channel": {
"title": "LatinHype",
"url": "https://www.youtube.com/@LatinHype."
}
}
],
"continuationToken": null,
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"title": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
}
}
},
"totalVideos": {
"type": "integer"
},
"videos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"url": {
"type": "string"
},
"lengthText": {
"type": "string"
},
"lengthSeconds": {
"type": "integer"
},
"channel": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
}
}
},
"continuationToken": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}