Rust
API für
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11160036json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11160036,
"ip": "129.232.158.130",
"port": 10160,
"query": 10170,
"color": 0,
"city": "Cape Town",
"description": "Welcome to Braai and Die No Pay2Win | Active Admins | Fresh Wipes\r\n\r\n Survive. Raid. Dominate. This is Braai and Die.\r\n\r\n Welcome survivor! Type /info for server rules & commands.\r\n\r\n Fresh wipe Build fast or get wiped",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776883960,
"score": 0,
"last_online": 1776033637,
"icon": null,
"name": null,
"connect": null,
"request": "129.232.158.130:10170",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": null,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772228150,
"last_update": 1776883960,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8826,
"language": "en",
"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/11160036");
$data = json_decode($json, true);
var_dump($data);