- PARAMETERS
- Our API allows you to retrieve informations from our website via GET request and supports the following query parameters:
Name Meaning Description t (required) Query type. This parameter specify the type of the query, u
is for profile informations,t
is for tracks informations,a
is for tracks live OBS.q (required) Requested username. The t
parameter supports two values:- u = username [returns basic profile informations containing the following]
id
= returns the unique user idartist_name
= returns the artist namefirst_name
= returns the first namelast_name
= returns the last bamewebsite
= returns the websitedescription
= returns the descriptionimage
= returns the profile avatar imagefacebook
= returns the facebooktwitter
= returns the twitterinstagram
= returns the instagramyoutube
= returns the youtubevimeo
= returns the vimeolinkedin
= returns the linkedin- t = track [returns informations about the track id]
id
= returns the unique track idtitle
= returns the track titleartist
= returns the artist namedescription
= returns the description of the trackart
= returns the track artwork imagetag
= returns the tag listsoundcloud
= returns the soundcloud urlbeatport
= returns the beatport urlyoutube
= returns the youtube urlitunes
= returns the itunes urlspotify
= returns the spotify urldeezer
= returns the deezer urlgplay
= returns the gplay urltidal
= returns the tidal urlrecord
= returns the record labelrelease
= returns the release datelicense
= returns the license typetime
= returns the date time when was publishedviews
= returns the number of views (times played)downloads
= returns the number of downloads
- Our API allows you to retrieve informations from our website via GET request and supports the following query parameters:
- EXAMPLES
- For profile information of a user:
https://madafakamusic.com/api.php?t=u&q=USERNAME
For information of id track:
https://madafakamusic.com/api.php?t=t&id=IDTRACK
For information of username live streaming OBS:
https://madafakamusic.com/api.php?t=a&q=USERNAME
An example of json decoding would be the following PHP code for user information:
header('Content-Type: text/plain; charset=utf-8;'); $file = file_get_contents("https://madafakamusic.com/api.php?t=u&q=USERNAME"); print_r(json_decode($file)); ?>
An example of json decoding would be the following PHP code for track information:
header('Content-Type: text/plain; charset=utf-8;'); $file = file_get_contents("https://madafakamusic.com/api.php?t=t&id=IDTRACK"); print_r(json_decode($file)); ?>
An example of json decoding would be the following PHP code for track live OBS information:header('Content-Type: text/plain; charset=utf-8;'); $file = file_get_contents("https://madafakamusic.com/api.php?t=a&q=username"); print_r(json_decode($file)); ?>
- For profile information of a user:
Mettre à niveau
Envoie plus de démos, obtiens une réponse plus rapide et télécharge plus de tracks.