API dla AltherPride | altherpride.my.id
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10694824,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Singapore",
"description": null,
"game": 9000035,
"owner": 120329,
"boosts": 1,
"last_offline": 1765692053,
"last_online": 1764813015,
"icon": null,
"name": "AltherPride | altherpride.my.id",
"connect": null,
"request": null,
"map": "San Andreas",
"gamemode": "ATR Framework v1.2.1-h3",
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "SG",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1764773292,
"last_update": 1765692053,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1348,
"language": "en",
"parked": true,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": {
"username": "melovart",
"avatar": "8197ff4e-a75c-4aa7-a08b-b285ec7c86fc.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10694824");
$data = json_decode($json, true);
var_dump($data);