API dla [GER] DarkRP || Mid-Core RP || By Fire Gaming ||
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392936365057",
"domain": null,
"id": 11727989,
"ip": "45.145.40.146",
"port": 27012,
"query": 27012,
"color": 0,
"city": "Offenbach Am Main",
"description": null,
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1780416263,
"last_online": 1780554687,
"icon": null,
"name": "[GER] DarkRP || Mid-Core RP || By Fire Gaming ||",
"connect": "45.145.40.146:27012",
"request": "45.145.40.146:27012",
"map": "rp_area14_v3",
"gamemode": "DarkRP",
"version": "2026.04.29",
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780388847,
"last_update": 1780554687,
"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": 4481,
"language": "de",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11727989");
$data = json_decode($json, true);
var_dump($data);