How to Extract The upload dates, Titles, URLs and Durations from Youtube videos in a Playlist with youtube-dl? How to Extract The upload dates, Titles, URLs and Durations from Youtube videos in a Playlist with youtube-dl? json json

How to Extract The upload dates, Titles, URLs and Durations from Youtube videos in a Playlist with youtube-dl?


You need to filter output with a convenient tool, like jq:
Paste this command line:
youtube-dl --skip-download --print-json https://www.youtube.com/playlist?list=PLRqwX-V7Uu6by61pbhdvyEpIeymlmnXzD | jq '{"date": .upload_date,"title": .title,"URL": .url,"duration": .duration}'
You can obtain jq from https://stedolan.github.io/jq/download/

UPDATE:

the key "webpage_url" holds standard YouTube URLs, if they are needed.For full listing of various possible keys, run:
youtube-dl --skip-download --print-json https://www.youtube.com/playlist?list=PLRqwX-V7Uu6by61pbhdvyEpIeymlmnXzD | jq keys
This gives complete key names in original JSON.