Spotify API for my own website

Hey!

I'd like to show certain stuff on my website. This includes what song I am currently listening to. I would like to create a PHP script to access a certain URL that includes my username and maybe an API key and returns certain stuff, such as whether or not I'm listening to something and, if I listen to something, the name, artist and album of the song and a link to that song, so a website visitor can click on it.

 

Example: Calling something like http://www.spotify.com/api.php?username=1277218830&action=song would return something like this:

 

<song>
	<title>
		Afrika Shox
	</title>
	<artist>
		Leftfield
	</artist>
	<album>
		Rythm and Stealth
	</album>
	<url>
		<http>
			http://open.spotify.com/track/3NjcydwQvpQIBQgfXNIpYw
		</http>
		<spotify>
			spotify:track:3NjcydwQvpQIBQgfXNIpYw
		</spotify>
	</url>
	<cover>
		[URL to Album Art]
	</cover>
	<playlist>
		<name>
			Rythm and Stealth
		</name>
		<url>
			<http>
				http://open.spotify.com/user/1277218830/playlist/139F3dYJ3bi9YNsMSDvHW7
			</http>
			<spotify>
				spotify:user:1277218830:playlist:139F3dYJ3bi9YNsMSDvHW7
			</spotify>
		</url>
	</playlist>
</song>

 

Could you please do this? It would be awesome.

 

Regards,

Rapti

Child Item
Status: Active
Child Item
Child Item
Child Item

Comments

Hey There!

Unfortunately, your idea was initially submitted over a year ago, but hasn't received received the minimum of 10 kudos to stay active. 

If you'd still like to see this implemented, you're welcome to re-submit this idea. You are welcome to change the wording of your title or even add some details to get as many kudos as possible. 

Child Item
Child Item