API dla .:MEXICO-TEAM[RU]:. | SOCCER | [NO-STEAM]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286617152234510,
"domain": null,
"id": 6106020,
"ip": "46.174.49.50",
"port": 27213,
"query": 27213,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1780312404,
"last_online": 1780685566,
"icon": null,
"name": ".:MEXICO-TEAM[RU]:. | SOCCER | [NO-STEAM]",
"connect": "46.174.49.50:27213",
"request": "46.174.49.50:27213",
"map": "ka_csl_stadium",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1727830966,
"last_update": 1780685566,
"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": 2169,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/6106020");
$data = json_decode($json, true);
var_dump($data);