Rust
API für PvP|Prvt|RustServer_4991
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11435957json
{
"response": {
"fps": 103,
"fps_avg": 101,
"entities_count": 50735,
"world_seed": 8762,
"world_size": 3000,
"steam_id": "90285497690631174",
"domain": null,
"id": 11435957,
"ip": "133.117.73.235",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Chiyoda City",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778227985,
"score": 0,
"last_online": 1778604035,
"icon": null,
"name": "PvP|Prvt|RustServer_4991",
"connect": "133.117.73.235:28015",
"request": "133.117.73.235:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1774977214,
"last_update": 1778604035,
"banned": false,
"wipe": 1778227828,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4832,
"language": "ja",
"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/11435957");
$data = json_decode($json, true);
var_dump($data);