How to get current YouTube video url using JavaScript?

How do you get the "long" url for a Youtube video now?

  • You used to be able to click share and then choose a long url option. Now it just offers embed, share, etc, but no way to get the long url, which is necessary for embedding into some blog formats, like Wordpress.

  • Answer:

    You can copy the URL from the Address bar. It's in the long URL format which is what you require.

Anonymous at Quora Visit the source

Was this solution helpful to you?

Other answers

Okay, it's extremely annoying to have that option of "long url" removed from under share, but as it turns out... My problem was that I accessed a video through a link someone else had posted, embedded, in another site. When I followed the video link, it started off embedded. Even when I clicked out of it and got to the "normal" page view, the url itself still had an embed text in it. So to get to the original video link itself, I had to click share, get the "shortened" url text, paste that into the address bar, then hit enter, THEN it became the "normal" long url text that CAN be used in various wordpress blogs internal embed options. I get that it's nice that a short url will automatically become a long url now - BUT - since it doesn't happen automatically when you click from external links and embeds, it seems to be a little laborious to try and figure out how to get there from the embed link without having to either hit share and get the "new" url (minus embed) or search for the damn video again through Youtube to get the "normal" url. Note to Youtube: Sure wish you'd left the "long url" link option there in Share. I don't see how it would have hurt, and it surely makes my life easier. Glad there is an answer, roundabout as it is though, so I can continue with this assignment!

Anonymous

Chris Desadoy

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.