Languages
[Edit]
EN

Youtube - print all video ids in browser console using JavaScript in channel video view (without saved time query parameter)

4 points
Created by:
Dragontry
731

In this article we will see how to get youtube video id using JavaScript and browser console.

Quick solution:

Or:

Or:

 

Youtube - all video ids in browser console using JavaScript
Youtube - all video ids in browser console using JavaScript

 

Youtube video url analysis:

Steps

Edit

Below in couple of steps we will see how to get video ids.

Step 1

Edit

Go to youtube channel and enter videos, for example Dirask youtube channel - videos:

Step 2

Edit

Open browser console (for this tutorial we've used Chrome Browser and Chrome DevTools)

Shortcuts:

  • Press F12 - it will open DevTools
  • Press Escape - it will open console

Step 3 - Print all links with time query parameter:

Edit

Output:

Step 4 - Print all video ids (with time query parameter)

Edit

Output:

Step 5 - Print all video ids (without time query parameter)

Edit

Output:

See also

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join