API dla Rust Serveur FWSG
JSON dla programów, stron i innych
text
json
{
"response": {
"modded": true,
"fps": 43,
"fps_avg": 42,
"entities_count": 193435,
"world_seed": 51948,
"world_size": 6000,
"steam_id": 90286799252385810,
"domain": null,
"id": 11759301,
"ip": "91.197.6.221",
"port": 22338,
"query": 22339,
"project_id": null,
"color": 0,
"city": "Toulouse",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781358180,
"last_online": 1781018031,
"icon": null,
"name": "Rust Serveur FWSG",
"connect": "91.197.6.221:22338",
"request": "91.197.6.221:22339",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780931707,
"last_update": 1781358180,
"banned": false,
"wipe": 1780841723,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12211,
"language": "fr",
"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/11759301");
$data = json_decode($json, true);
var_dump($data);