Skip to main content

Library for querying the Spotify metadata service

Project description


Spotimeta is a simple library for getting data from Spotify’s metadata API. Available functions is searching for artists, albums and tracks, as well as looking up the same based on Spotify URIs. The data is returned as simple python dictionaries.


This product uses a SPOTIFY API but is not endorsed, certified or otherwise approved in any way by Spotify. Spotify is the registered trade mark of the Spotify Group.

For more information about the metadata API, see


>>> import spotimeta

Search for a track

>>> search = spotimeta.search_track("Trip back to childhood")
>>> search["total_results"]

Print the artist of that track

>>> artist = search["result"][0]["artist"]
>>> artist["name"]
u'St-Petersburg Ska-Jazz Review'

Look up more information about that artist:

>>> lookup = spotimeta.lookup(artist["href"], detail=1)
>>> for album in lookup["result"]["albums"]:
...     album["name"]
u'Too Good To Be True'
u'Too Good To Be True'
u'Live At The Red Club'

It’s also possible to look up metadata using spotify URLs:

>>> track = spotimeta.lookup("")
>>> print track["result"]["artist"]["name"], "-", track["result"]["name"]
Kings Of Leon - Closer


  • Sphinxify docs
  • Implement the caching
  • Deal with expire headers etc.
  • Testcases for search, not just search parser
  • Deal with all the fixmes


See the CHANGELOG file


The author is Rune Halvorsen <>. The project resides at . If you find bugs, or have feature requests, please report them in the project site issue tracker. Patches very welcome.


This software is licensed under the New BSD License. See the LICENCE file in the top distribution directory for the full license text.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotimeta-0.1.tar.gz (6.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page