API pentru TIMEX
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 762331,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "![$WORLDRUST [X2|MAX5|TP|KITS|SKINS] (PVP)](https://pic.survivalhost.org/images/2023/09/19/2023-09-19_12-48-21.png)\nДобро пожаловать на сервер WORLDRUST\nХочешь весело провести время с друзьями, тогда тебе к нам.\nНа нашем сервере присутствуют:\n- Рейты Х2\n- Команды NoLim\n- Топы\n- Скины которые доступны всем\n- Киты\n- Ночная защита от рейда\n- Система телепортации\n- Трейд\n- Реферальная система\n- Дуэли \n- Турели без ограничений \nWelcome to the WORLDRUST server\nIf you want to have fun with your friends, then you should come to us.\nOn our server there are:\n- Rates X2\n- NoLim commands\n- Tops\n- Skins that are available to everyone\n- Whales\n- Night raid protection\n- Teleportation system\n- Trade\n- Referral system\n- Duels \n- Individual adjustment of the hit marker",
"game": 252490,
"owner": 43262,
"boosts": 1,
"last_offline": 1762877508,
"last_online": 1761981011,
"icon": null,
"name": "TIMEX",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": null,
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1680785810,
"last_update": 1762877508,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13099,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "WORLDRUST",
"avatar": "d5de8ac8-25cf-441b-adef-69370badf38a.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/762331");
$data = json_decode($json, true);
var_dump($data);