API dla ConquerWildPine US
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392936265537",
"domain": null,
"id": 11630830,
"ip": "206.168.173.217",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780542213,
"last_online": 1780159263,
"icon": "https://i.imgur.com/LbD7ytT.png",
"name": "ConquerWildPine US",
"connect": "206.168.173.217:27015",
"request": "206.168.173.217:27015",
"map": "CobaltRussiaChapter-2",
"gamemode": "PvP, Offline Raid Protection, Custom Content!",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916707,
"last_update": 1780542213,
"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": 2267,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11630830");
$data = json_decode($json, true);
var_dump($data);