API dla PaperRust | Trios | Linux | Monthly
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 97540,
"world_seed": 383161655,
"world_size": 4000,
"steam_id": "90286501078055947",
"domain": null,
"id": 11606737,
"ip": "37.27.227.189",
"port": 28010,
"query": 28011,
"color": 0,
"city": "Helsinki",
"description": "Welcome to our community!\r\n\r\nRules:\r\n1. No scripting, hacking or prior VAC bans.\r\n2. No racism, sexism, homophobia or other offensive slurs.\r\n3. No gamebreaking exploits (duping etc).\r\n\r\nPlease enjoy and feel free to provide any feedback or report any issues you encounter!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780661605,
"last_online": 1780420835,
"icon": null,
"name": "PaperRust | Trios | Linux | Monthly",
"connect": "37.27.227.189:28010",
"request": "37.27.227.189:28011",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779915480,
"last_update": 1780661605,
"banned": false,
"wipe": 1778177796,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11714,
"language": "fi",
"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/11606737");
$data = json_decode($json, true);
var_dump($data);