API dla OldSchool Rust vanilla
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 188,
"fps_avg": 202,
"entities_count": 80317,
"world_seed": 1475164994,
"world_size": 3750,
"steam_id": "90286098896031761",
"domain": null,
"id": 10260883,
"ip": "202.36.95.203",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": "\n[EU] OLDSCHOOL RUST solo/duo/trio/quad team MAX 4 map size 3800 Vanilla\r\nWelcome everyone to this new Rust server!\r\nLast Wipe 05/03 Next Wipe 02/04\r\nFairplay is required \r\nRULES: Team Solo / Duo / Trio / Quad / RAID ON encouraged\r\nNo raid abuse\r\nGRIEF allowed for the duration of a RAID ON \r\nAny TOXIC behavior will be punished.\r\nCHEATERS Permanent Ban.\r\nENJOY !",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780905809,
"last_online": 1780462227,
"icon": null,
"name": "OldSchool Rust vanilla",
"connect": "202.36.95.203:28015",
"request": "202.36.95.203:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1757057662,
"last_update": 1780905809,
"banned": false,
"wipe": 1778211466,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9668,
"language": "de",
"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/10260883");
$data = json_decode($json, true);
var_dump($data);