Skip to main content

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

phamhiep2506

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


Download files

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

Source Distribution

zingmp3_api-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zingmp3_api-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for zingmp3_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 071c5ebbdd79154194b0e477a3bb71afe95fc3d31202de422ab8383d3287deef
MD5 57c2420c2801317d6e6df8793450085f
BLAKE2b-256 460257de501394b82d7ca67c3348459205572bcc2f4d242296e15bbc49ba85d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for zingmp3_api-1.0.0.tar.gz:

Publisher: publish.yml on ZataMod/zingmp3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for zingmp3_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 075972b528ee524b4504349c91da4a3c90651d03cd9da9e4f4c7e148b5e87de1
MD5 6449c180e9aecf47b9bf799d274a6069
BLAKE2b-256 cd05c3e7f79616527263314525c8da9da1f03ce271d8908d3bdc84f0680dd3bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zingmp3_api-1.0.0-py3-none-any.whl:

Publisher: publish.yml on ZataMod/zingmp3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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