Python wrapper for Zing MP3 API
Project description
zingmp3-api
Python wrapper for Zing MP3 API.
Installation
pip install zingmp3-api
Quick Start
from zingmp3_api import ZingMp3
result = ZingMp3.search("sontungmtp")
print(result)
Examples
Search
from zingmp3_api import ZingMp3
data = ZingMp3.search("sontungmtp")
print(data)
Get Song Streaming URL
from zingmp3_api import ZingMp3
data = ZingMp3.get_song("Z8U96AD8")
print(data)
Get Song Information
from zingmp3_api import ZingMp3
data = ZingMp3.get_info_song("Z8U96AD8")
print(data)
Get Lyrics
from zingmp3_api import ZingMp3
data = ZingMp3.get_lyric("Z8U96AD8")
print(data)
Get Playlist Details
from zingmp3_api import ZingMp3
data = ZingMp3.get_detail_playlist("Z8U96AD8")
print(data)
Get Artist Information
from zingmp3_api import ZingMp3
data = ZingMp3.get_artist("son-tung-mtp")
print(data)
Get Home Page Data
from zingmp3_api import ZingMp3
data = ZingMp3.get_home()
print(data)
Available Methods
| Method | Description |
|---|---|
get_song(song_id) |
Get streaming link for a song |
get_detail_playlist(playlist_id) |
Get detailed information and songs in a playlist |
get_home() |
Get data for the home page |
get_top100() |
Get Top 100 list |
get_chart_home() |
Get chart home data |
get_new_release_chart() |
Get new release chart |
get_info_song(song_id) |
Get basic information for a song |
get_list_artist_song(artist_id, page, count) |
Get list of songs by an artist |
get_artist(name) |
Get artist information by alias/name |
get_lyric(song_id) |
Get lyrics for a song |
search(name) |
Search for songs, artists, playlists, albums, videos |
get_list_mv(id, page, count) |
Get list of MVs by category/genre |
get_category_mv(id) |
Get info about a video category |
get_video(video_id) |
Get detailed information for a video/MV |
Show Available Methods
from zingmp3_api import ZingMp3
ZingMp3.help()
Output:
Available methods in ZingMp3Api:
- get_song(song_id) : Get streaming link for a song
- get_detail_playlist(playlist_id) : Get detailed information and songs in a playlist
- get_home() : Get data for the home page
- get_top100() : Get Top 100 list
- get_chart_home() : Get chart home data
- get_new_release_chart() : Get new release chart
- get_info_song(song_id) : Get basic information for a song
- get_list_artist_song(artist_id, page, count) : Get list of songs by an artist
- get_artist(name) : Get artist information by alias/name
- get_lyric(song_id) : Get lyrics for a song
- search(name) : Search for songs, artists, playlists, etc
- get_list_mv(id, page, count) : Get list of MVs by category/genre
- get_category_mv(id) : Get info about a video category
- get_video(video_id) : Get detailed information for a video/MV
Requirements
- Python 3.8+
- requests
Install Dependencies
pip install requests
Original code
License
MIT License
Disclaimer
This project is an unofficial wrapper for Zing MP3 APIs and is intended for educational and research purposes only.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zingmp3_api-1.0.0.tar.gz.
File metadata
- Download URL: zingmp3_api-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071c5ebbdd79154194b0e477a3bb71afe95fc3d31202de422ab8383d3287deef
|
|
| MD5 |
57c2420c2801317d6e6df8793450085f
|
|
| BLAKE2b-256 |
460257de501394b82d7ca67c3348459205572bcc2f4d242296e15bbc49ba85d8
|
Provenance
The following attestation bundles were made for zingmp3_api-1.0.0.tar.gz:
Publisher:
publish.yml on ZataMod/zingmp3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zingmp3_api-1.0.0.tar.gz -
Subject digest:
071c5ebbdd79154194b0e477a3bb71afe95fc3d31202de422ab8383d3287deef - Sigstore transparency entry: 2141685689
- Sigstore integration time:
-
Permalink:
ZataMod/zingmp3@2f2dbca08c7cf70e0d0d7a761e7c141f0b1e1ced -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ZataMod
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f2dbca08c7cf70e0d0d7a761e7c141f0b1e1ced -
Trigger Event:
release
-
Statement type:
File details
Details for the file zingmp3_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: zingmp3_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
075972b528ee524b4504349c91da4a3c90651d03cd9da9e4f4c7e148b5e87de1
|
|
| MD5 |
6449c180e9aecf47b9bf799d274a6069
|
|
| BLAKE2b-256 |
cd05c3e7f79616527263314525c8da9da1f03ce271d8908d3bdc84f0680dd3bc
|
Provenance
The following attestation bundles were made for zingmp3_api-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on ZataMod/zingmp3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zingmp3_api-1.0.0-py3-none-any.whl -
Subject digest:
075972b528ee524b4504349c91da4a3c90651d03cd9da9e4f4c7e148b5e87de1 - Sigstore transparency entry: 2141685727
- Sigstore integration time:
-
Permalink:
ZataMod/zingmp3@2f2dbca08c7cf70e0d0d7a761e7c141f0b1e1ced -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ZataMod
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f2dbca08c7cf70e0d0d7a761e7c141f0b1e1ced -
Trigger Event:
release
-
Statement type: