API Documentation
Our API allows you to retrieve informations from our website via GET request and supports the following query parameters:
For profile information of a user:
For a list of latest 20 tracks uploaded by a user:
An example of json decoding would be the following PHP code:
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. |
q (required) | Requested username. | The t parameter supports two values:
release = returns the release datelicense = returns the license typetime = returns the date time when was publishedlikes = returns the number of likesviews = returns the number of views (times played) |
Examples of requests:
For profile information of a user:
https://mp3.africanbaze.com/api.php?t=u&q=USERNAME
For a list of latest 20 tracks uploaded by a user:
https://mp3.africanbaze.com/api.php?t=t&q=USERNAME
An example of json decoding would be the following PHP code:
<?php
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("https://mp3.africanbaze.com/api.php?t=t&q=USERNAME");
print_r(json_decode($file));
?>