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.
Metadata
Release files for zingmp3-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 |
|---|---|---|---|---|
| zingmp3_api-1.0.0.tar.gz | 4.0 kB | With provenance | Details for zingmp3_api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zingmp3_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for zingmp3_api-1.0.0-py3-none-any.whl |
Total release size: 8.2 kB
Release files / zingmp3_api-1.0.0.tar.gz
| Download URL | zingmp3_api-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
071c5ebbdd79154194b0e477a3bb71afe95fc3d31202de422ab8383d3287deef
|
|
BLAKE2b-256 checksum How to use checksums |
460257de501394b82d7ca67c3348459205572bcc2f4d242296e15bbc49ba85d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.
Transparency logRelease files / zingmp3_api-1.0.0-py3-none-any.whl
| Download URL | zingmp3_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
075972b528ee524b4504349c91da4a3c90651d03cd9da9e4f4c7e148b5e87de1
|
|
BLAKE2b-256 checksum How to use checksums |
cd05c3e7f79616527263314525c8da9da1f03ce271d8908d3bdc84f0680dd3bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.
Transparency logSecurity for zingmp3-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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zingmp3_api-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.
Transparency logA 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.