API für 独角兽|6.14号|18:00清档|独狼|萌新
JSON für Programme, Websites und mehr
text
json
{
"response": {
"fps": 58,
"fps_avg": 56,
"entities_count": 91456,
"world_seed": 1337,
"world_size": 3800,
"steam_id": "90287001792729089",
"domain": null,
"id": 11800889,
"ip": "202.189.11.122",
"port": 20821,
"query": 20823,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781463036,
"last_online": 1781491833,
"icon": null,
"name": "独角兽|6.14号|18:00清档|独狼|萌新",
"connect": "202.189.11.122:20821",
"request": "202.189.11.122:20823",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 96,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 52,
"add_date": 1781463036,
"last_update": 1781491833,
"banned": false,
"wipe": 1781430684,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6298,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11800889");
$data = json_decode($json, true);
var_dump($data);