API для Task Force Timberwolf
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783806103,
"app": {
"id": 71,
"name": "Project Zomboid",
"steam_id": 108600,
"url": "project-zomboid"
},
"color": 0,
"connect": "31.214.134.180:10190",
"country": "US",
"domain": null,
"game": 108600,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12150970,
"ip": "31.214.134.180",
"language": "en",
"last_update": 1790478327,
"map": "vehicle_interior_arcadia75;Tiki",
"maxplayers": 12,
"name": "Task Force Timberwolf",
"numplayers": 0,
"official": null,
"points": 60,
"port": 10190,
"private": true,
"project_id": null,
"pve": null,
"pvp": 1,
"query": 10190,
"request": "31.214.134.180:10190",
"secured": true,
"status": true,
"steam_id": "90293520006811652",
"version": "42.20",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Майами",
"description": "Glory be to the Timberwolf!",
"disabled_modules": [],
"gamemode": "Project Zomboid",
"hidden": false,
"last_offline": 1790431384,
"last_online": 1790478327,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1721,
"wipe_period": null,
"open": "1",
"public": "1",
"modCount": "347",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"description:1/3": "Glory be to the Timberwolf! This server is regularly maintained - there are ALOT of mods. This is a completely unique zomboid e",
"description:2/3": "xperience. Plently of space to loot and survive. Base defenses-High Zombie count-High Loot-No Loot Respawn-No Zombie Respawn-We",
"description:3/3": "apons-Medical-RP and Hardcore Style Gameplay. Work together, fight together, survive",
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12150970");
$data = json_decode($json, true);
var_dump($data);