API dla [RU-10] KAA Wettspiel x5 [Genesis 2]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286946316980242",
"domain": null,
"id": 1152875,
"ip": "85.175.6.1",
"port": 8925,
"query": 30925,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "",
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781231631,
"last_online": 1781329366,
"icon": null,
"name": "[RU-10] KAA Wettspiel x5 [Genesis 2]",
"connect": "85.175.6.1:8925",
"request": "85.175.6.1:30925",
"map": "Gen2",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1689083645,
"last_update": 1781329366,
"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": 2309,
"language": "ru",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/1152875");
$data = json_decode($json, true);
var_dump($data);