Skip to content
Advertisement

Easy way to get Vimeo id from a vimeo url

I’m trying to get just the id from a vimeo URL. Is there a simpler way than this? All the vimeo video urls I see are always:

https://vimeo.com/29474908

https://vimeo.com/38648446

JavaScript

Advertisement

Answer

I think using parse_url() is the best option:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement