curl --request POST \
--url https://api.importly.io/collection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
}
'{
"success": true,
"data": {
"jobId": "0f8c2a51-6b0e-4c39-9d1f-2b7a4e6c9a10",
"status": "queued",
"message": "Collection request queued. You will receive a webhook when it's complete."
}
}List collection items
List the items of a playlist, channel, profile, album or podcast feed link, a page at a time, without downloading anything.
curl --request POST \
--url https://api.importly.io/collection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
}
'{
"success": true,
"data": {
"jobId": "0f8c2a51-6b0e-4c39-9d1f-2b7a4e6c9a10",
"status": "queued",
"message": "Collection request queued. You will receive a webhook when it's complete."
}
}url you can send to /import, /transcribe or /metadata. Nothing is downloaded. A page costs $0.003 whatever its limit (up to 200 items), and only a page that completes is charged.
For the next page, send the same url with the nextCursor from the previous result. nextCursor is null on the last page. A cursor only works with the url it came from.
A link to one video is rejected with NOT_A_COLLECTION, and a YouTube Mix (list=RD…) with COLLECTION_NOT_SUPPORTED; neither is charged. Which links work, what each item field means and a worked example that imports every item are on Playlists, channels and feeds.
Poll the result with GET /collection/status, or receive it by webhook.Authorizations
Body
The link of a playlist, channel, profile, album or podcast feed, e.g. a YouTube playlist or channel, a
TikTok profile, a SoundCloud set, a Bandcamp album or a podcast's RSS feed. A URL on localhost or a
private or internal address is a 400 INVALID_URL.
"https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
The nextCursor from the previous page's result, unchanged, sent with the same url. Leave it out for
the first page. A cursor for another link, or changed, is a 400 INVALID_CURSOR; one whose snapshot
expired (an hour after its last page) fails the job with INVALID_CURSOR, uncharged. It works with
any limit.