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:
- PayPal: andryerica1@gmail.com
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.
Metadata
Release files for deezer-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deezer_api-1.0.0.tar.gz | 3.4 kB | Without provenance | Details for deezer_api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deezer_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for deezer_api-1.0.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / deezer_api-1.0.0.tar.gz
| Download URL | deezer_api-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9497ec7ddfdb4b54b8d43ee78c5653435f90c511b21b4884d41f86d2a5b63602
|
|
BLAKE2b-256 checksum How to use checksums |
3ee712fe278f8d5233966aea82b13bb7e18b011a86f4c73cdd325dc9e8251d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / deezer_api-1.0.0-py3-none-any.whl
| Download URL | deezer_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
033f633fa4c82cb8c51fff373dd0d6f0394e8965e0d15b2d4606e997bab06c33
|
|
BLAKE2b-256 checksum How to use checksums |
093e5f510883532b8ffb5858325353b968f1c20dac6c405d3ddedf3e674df0c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for deezer-api 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.