Skip to main content

A simple Python wrapper for the Deezer API

Project description

DeezerAPI

A simple Python wrapper for the Deezer API, allowing easy access to a variety of Deezer's endpoints to fetch data about artists, albums, tracks, playlists, and more.

Table of Contents

Introduction

DeezerAPI is a simple yet powerful Python wrapper for the Deezer API. It allows developers to easily access a wide range of endpoints provided by Deezer, enabling the retrieval of detailed information about artists, albums, tracks, playlists, and more. Whether you're building a music discovery app, analyzing musical trends, or just experimenting with the Deezer API, this module provides a convenient way to interact with Deezer's vast music database.

Installation

To install the DeezerAPI module, simply use pip:

pip install deezer_api

Usage

Below are examples of how to use the DeezerAPI module to access different types of data from Deezer.

Importing and Initializing

from deezer_api.deezer import DeezerAPI

Initialize the API

deezer = DeezerAPI()

Search for an Artist

Search for an artist by name. For example, to search for "Eminem":

results = deezer.search("eminem")
print(results)

Get Album Information

Get information about a specific album by its ID. For example, to get the album with ID "302127":

album_info = deezer.get_album("302127")
print(album_info)

Get Editorial Information

Fetch the editorial information:

editorial_info = deezer.get_editorial()
print(editorial_info)

Get Chart Information

Fetch the chart information:

chart_info = deezer.get_chart()
print(chart_info)

Get Artist Information

Get information about a specific artist by their ID. For example, to get information about the artist with ID "27":

artist_info = deezer.get_artist("27")
print(artist_info)

Get Track Information

Get information about a specific track by its ID. For example, to get the track with ID "3135556":

track_info = deezer.get_track("3135556")
print(track_info)

Get Radio Stations

Fetch information about radio stations:

radio_info = deezer.get_radio()
print(radio_info)

Get Playlist Information

Get information about a specific playlist by its ID. For example, to get the playlist with ID "908622995":

playlist_info = deezer.get_playlist("908622995")
print(playlist_info)

Get Deezer Information

Fetch general information about Deezer:

deezer_info = deezer.get_infos()
print(deezer_info)

Get Genres

Fetch information about genres:

genres_info = deezer.get_genre()
print(genres_info)

Get User Information

Get information about a specific user by their ID. For example, to get information about the user with ID "5557228304":

user_info = deezer.get_user("5557228304")
print(user_info)

Author and Contact Information

Name and Author: Åndry RL
Username: andryerics
Website: andryerics.com
WhatsApp: +261347262824

Support the Project

If you find this project useful and would like to support its development, you can buy me a coffee:

Thank you for your support!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

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

deezer_api-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

deezer_api-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file deezer_api-1.0.0.tar.gz.

File metadata

  • Download URL: deezer_api-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for deezer_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9497ec7ddfdb4b54b8d43ee78c5653435f90c511b21b4884d41f86d2a5b63602
MD5 abf2a9400184324bb9a182d2e8bfa957
BLAKE2b-256 3ee712fe278f8d5233966aea82b13bb7e18b011a86f4c73cdd325dc9e8251d60

See more details on using hashes here.

File details

Details for the file deezer_api-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: deezer_api-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for deezer_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 033f633fa4c82cb8c51fff373dd0d6f0394e8965e0d15b2d4606e997bab06c33
MD5 1f205861e315bcf7aa9b25553cd885e4
BLAKE2b-256 093e5f510883532b8ffb5858325353b968f1c20dac6c405d3ddedf3e674df0c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page