API dla A BisectHosting Server - 1b6c8459
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90283966845696018",
"domain": null,
"id": 11577264,
"ip": "165.217.129.49",
"port": 9075,
"query": 9076,
"color": 0,
"city": "Staten Island",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1779356868,
"last_online": 1780602648,
"icon": null,
"name": "A BisectHosting Server - 1b6c8459",
"connect": "165.217.129.49:9075",
"request": "165.217.129.49:9076",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.023h4",
"numplayers": 2,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1779356868,
"last_update": 1780602648,
"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": 133,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11577264");
$data = json_decode($json, true);
var_dump($data);