Samp
API für [BS] Balkan School | Downtown | balkan-school.com
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/7480677json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7480677,
"ip": "145.239.150.108",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Saarbrücken",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1774796531,
"score": 0,
"last_online": 1776367222,
"icon": null,
"name": "[BS] Balkan School | Downtown | balkan-school.com",
"connect": "145.239.150.108:7777",
"request": "145.239.150.108:7777",
"map": "BS Republic",
"gamemode": "[BS:RP] V2.8 by Infinity",
"version": "0.3.7-R2",
"numplayers": 22,
"maxplayers": 30,
"bots": 0,
"secured": null,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1739268991,
"last_update": 1776367222,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 33,
"language": "de",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/7480677");
$data = json_decode($json, true);
var_dump($data);