API dla 2 Ho's in Da Desert
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286537293345821",
"domain": null,
"id": 11575933,
"ip": "195.60.167.249",
"port": 27051,
"query": 27052,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1780890791,
"last_online": 1780864246,
"icon": null,
"name": "2 Ho's in Da Desert",
"connect": "195.60.167.249:27051",
"request": "195.60.167.249:27052",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356802,
"last_update": 1780890791,
"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": 6055,
"language": "en",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11575933");
$data = json_decode($json, true);
var_dump($data);