API dla WannaRust.com EU 2X|Trio|Loot+|Kit|Shop|04.01
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1202444,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "",
"game": 252490,
"owner": 41982,
"boosts": 1,
"last_offline": 1750457066,
"last_online": 1714660848,
"icon": null,
"name": "WannaRust.com EU 2X|Trio|Loot+|Kit|Shop|04.01",
"connect": null,
"request": null,
"map": "Custom Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1691757289,
"last_update": 1750457066,
"banned": false,
"wipe": 1714229227,
"official": null,
"wipe_period": "weekly",
"next_wipe": 1714834027,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12957,
"language": "de",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "wannagotonorway",
"avatar": "327804b2-a083-412a-8f01-ff37cf571e57.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/1202444");
$data = json_decode($json, true);
var_dump($data);