Linked Questions

Popular Questions

Get imgur ID from URL

Asked by At

How would I get the ID from a given imgur URL. Here are some examples of the different types of URLs:

https://imgur.com/gallery/arP2Otg
https://i.imgur.com/ycArzxR.jpg
http://imgur.com/SyuKFYj

As far as I know, the length of the IDs vary.

A similar question was previously asked here on SE, but it's not flawless.

For example, the URL https://imgur.com/SyuKFYj& does not work with the answer given to that question. Notice the & appended to the end of the URL.

Related Questions