API dla Salty Boy Gaming
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286717617385472",
"domain": null,
"id": 10586996,
"ip": "192.169.85.101",
"port": 9133,
"query": 9135,
"project_id": null,
"color": 0,
"city": "Los Angeles",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1779365029,
"last_online": 1780862466,
"icon": null,
"name": "Salty Boy Gaming",
"connect": "192.169.85.101:9133",
"request": "192.169.85.101:9135",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1762851009,
"last_update": 1780862466,
"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": 366,
"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/10586996");
$data = json_decode($json, true);
var_dump($data);