API dla SCUM Server
JSON dla programów, stron i innych
text
json
{
"response": {
"build": 94918,
"extraFlags": 0,
"nameHeaderRaw": "602c17000000",
"statusFlags": 32,
"type": 1,
"unknownStatusFlags": 32,
"steam_id": null,
"domain": null,
"id": 11753382,
"ip": "23.111.240.114",
"port": 7012,
"query": 7012,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 513710,
"owner": null,
"boosts": 1,
"last_offline": 1780519379,
"last_online": 1780548727,
"icon": null,
"name": "SCUM Server",
"connect": "23.111.240.114:7012",
"request": "23.111.240.114:7012",
"map": null,
"gamemode": "community-hosted",
"version": "1.0.0.0.94918",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780519379,
"last_update": 1780548727,
"banned": false,
"wipe": null,
"official": false,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5097,
"language": "nl",
"parked": false,
"app": {
"id": 11540,
"steam_id": 513710,
"name": "SCUM",
"url": "scum"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11753382");
$data = json_decode($json, true);
var_dump($data);