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, m is for messages informations.
|
q (required) | Requested username. |
The t parameter supports two values:
|
Examples of requests:
For profile information from an user:https://www.aiwii.com/api.php?t=u&q=USERNAME
For a list of latest 20 messages from an user:https://www.aiwii.com/api.php?t=m&q=USERNAME
An example of json decoding would be the following PHP code:
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("https://www.aiwii.com/api.php?t=m&q=USERNAME");
print_r(json_decode($file));
?>