Rust
API für [SEA] Facepunch 2
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/8479930json
{
"response": {
"steam_id": "90285656886520858",
"domain": null,
"id": 8479930,
"ip": "15.235.180.211",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Singapore",
"description": "![[SEA] Facepunch 2](https://files.facepunch.com/Alistair/124/07/2025/9593/fpos.png)\nThis is an official server owned and operated by Facepunch.\r\n\r\nPeople are free to speak whatever language they like. Don't be surprised if you get banned for being abusive.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778402578,
"score": 0,
"last_online": 1778589614,
"icon": null,
"name": "[SEA] Facepunch 2",
"connect": "15.235.180.211:28015",
"request": "15.235.180.211:28016",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2625",
"numplayers": 122,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 87,
"add_date": 1743926389,
"last_update": 1778589614,
"banned": false,
"wipe": 1778175360,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 407,
"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/8479930");
$data = json_decode($json, true);
var_dump($data);