Project Zomboid
API для Terrible Drame
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11266945json
{
"response": {
"steam_id": "90284103221888004",
"domain": null,
"id": 11266945,
"ip": "148.251.177.248",
"port": 16267,
"query": 16267,
"color": 0,
"city": "Falkenstein",
"description": "Un terrible drame s'est produit. La peste de nurgle est sur nous ! Sortez vos morts avant qu'ils vous sortent !",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1774555488,
"score": 0,
"last_online": 1775689213,
"icon": null,
"name": "Terrible Drame",
"connect": "148.251.177.248:16267",
"request": "148.251.177.248:16267",
"map": "vehicle_interior;Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1774555488,
"last_update": 1775689213,
"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": 143,
"language": "de",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid",
"popular_maps_available": false
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11266945");
$data = json_decode($json, true);
var_dump($data);