API dla [TR] ANTALYA VERSUS !
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 85568392936305660,
"domain": null,
"id": 11753731,
"ip": "185.233.164.2",
"port": 25575,
"query": 25575,
"project_id": null,
"color": 0,
"city": "Bursa",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780519426,
"last_online": 1780695148,
"icon": "https://i.ytimg.com/vi/m6x5o0cqwi0/oardefault.jpg?sqp=-oaymwEYCJUDENAFSFqQAgHyq4qpAwcIARUAAIhC",
"name": "[TR] ANTALYA VERSUS !",
"connect": "185.233.164.2:25575",
"request": "185.233.164.2:25575",
"map": "FaulT VersusTR",
"gamemode": "versus",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "TR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780519426,
"last_update": 1780695148,
"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": 1774,
"language": "tr",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11753731");
$data = json_decode($json, true);
var_dump($data);