API dla [GER] The Chosen Ones | Rust RP
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 87,
"fps_avg": 84,
"entities_count": 90531,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90286675717060614",
"domain": null,
"id": 6150389,
"ip": "164.128.164.4",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Meilen",
"description": "![[GER] The Chosen Ones | Rust RP](https://i.ibb.co/1sQ1fx4/tsomini.png)\nThe Chosen Ones ( Die Auserwählten ). Wir sind eine lustige Familie/Community. Wir spielen hier Roleplay. Jeder der Lust auf Roleplay hat, ist herzlich Willkommen. Wir haben viele custom Plugins. Dein Interesse wurde geweckt? Dann komm in unseren Discord und sei dabei.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780754664,
"last_online": 1780762229,
"icon": null,
"name": "[GER] The Chosen Ones | Rust RP",
"connect": "164.128.164.4:28015",
"request": "164.128.164.4:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 5,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CH",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1728012263,
"last_update": 1780762229,
"banned": false,
"wipe": 1780603435,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1632,
"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/6150389");
$data = json_decode($json, true);
var_dump($data);