API dla Counter-Strike Nostalgia (CSN) Global Offensive Server
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11780652,
"ip": "31.206.226.28",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Tuzla",
"description": null,
"game": 4465480,
"owner": null,
"boosts": 1,
"last_offline": 1781376703,
"last_online": 1781470276,
"icon": null,
"name": "Counter-Strike Nostalgia (CSN) Global Offensive Server",
"connect": "31.206.226.28:27016",
"request": "31.206.226.28:27016",
"map": "workshop/2479264763/cs_insertion2_dawn",
"gamemode": "Counter-Strike: Global Offensive",
"version": "1.38.8.1",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "TR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781376703,
"last_update": 1781470276,
"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": 1384,
"language": "tr",
"parked": false,
"app": {
"id": 1629104,
"steam_id": 4465480,
"name": "Counter-Strike: Global Offensive",
"url": "counter-strike-global-offensive"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11780652");
$data = json_decode($json, true);
var_dump($data);