API dla Rusty Old Gamers
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 106189,
"world_seed": 304866847,
"world_size": 4500,
"steam_id": 90286747391883280,
"domain": null,
"id": 11412781,
"ip": "194.140.197.58",
"port": 28400,
"query": 28415,
"project_id": null,
"color": 0,
"city": "Orangeburg",
"description": "\nWelcome to Rusty Old Gamers! Monthly 2x PvE PvP Roleplay *Convoy *Armored Train *Caravan *Custom Server Vendors And More!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780913656,
"last_online": 1780939238,
"icon": null,
"name": "Rusty Old Gamers",
"connect": "194.140.197.58:28400",
"request": "194.140.197.58:28415",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774599015,
"last_update": 1780939238,
"banned": false,
"wipe": 1780596867,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4831,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11412781");
$data = json_decode($json, true);
var_dump($data);