Skip to content

Instantly share code, notes, and snippets.

@MatthewStanciu
Created September 8, 2018 03:39
Show Gist options
  • Save MatthewStanciu/3fec1a92194f6c07657dae84d8d225ff to your computer and use it in GitHub Desktop.
Save MatthewStanciu/3fec1a92194f6c07657dae84d8d225ff to your computer and use it in GitHub Desktop.
get Spotify ID from url
function getIDfromUrl(url) {
var split1 = url.split('/');
var split2 = split1[4].split('?');
return split2[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment