API для panchuke con papas2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790193422,
"app": {
"id": 24,
"name": "Team Fortress 2",
"steam_id": 440,
"url": "team-fortress-2"
},
"color": 0,
"connect": "186.79.152.93:27017",
"country": "CL",
"domain": null,
"game": 440,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17006117,
"ip": "186.79.152.93",
"language": "es",
"last_update": 1790262734,
"map": "plr_hightower",
"maxplayers": 24,
"name": "panchuke con papas2",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27017,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27017,
"request": "186.79.152.93:27017",
"secured": true,
"status": false,
"steam_id": "90293305059266573",
"version": "10828683",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Лос-Анд",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790262734,
"last_online": 1790194496,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 15760,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "tf",
"gametype": "payload",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17006117");
$data = json_decode($json, true);
var_dump($data);