API для Method Games Solo/Duo Weekly/Vanilla
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 40,
"fps_avg": 40,
"entities_count": 66727,
"world_seed": 1696329491,
"world_size": 3500,
"steam_id": "90286588674698259",
"domain": null,
"id": 6741521,
"ip": "167.114.158.147",
"port": 28017,
"query": 28018,
"color": 0,
"city": "Montreal",
"description": "Welcome!\r\nThis community has been created to facilitate respectful gameplay.\r\n\r\nMap wipes weekly on Thursdays. BP wipes every month.\r\n\r\nBe respectful. Gameplay banter is allowed, toxicity will not be tolerated.\r\nNo racism, homophobia or sexism.\r\nNo websites in usernames.\r\n\r\nMax of 2 players:\r\n- Per team and base\r\n- Authed on TCs and codes\r\n- Roaming / raiding\r\n\r\nSwapping:\r\n- Remove all bags, remove and change codes, clear TC auth.\r\n- The player that is being swapped should not return to the team for the remainder of the wipe.\r\n- A player that returns to a team will be temporarily banned for 48 hours.\r\n- The player who reinvites an old teammate will be temporarily banned for 1 week.\r\n- To avoid complications, you can create a ticket through discord to notify us of swapped players.\r\n\r\nGameplay:\r\n- No working with other groups\r\n- Neutrality is allowed but alliances are not\r\n- No giving away or receiving bases\r\n- You may abandon a base by removing all locks and clearing TC auth\r\n\r\nJoin our community discord at discord.gg/methodgames.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780563869,
"last_online": 1780585234,
"icon": null,
"name": "Method Games Solo/Duo Weekly/Vanilla",
"connect": "167.114.158.147:28017",
"request": "167.114.158.147:28018",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732630280,
"last_update": 1780585234,
"banned": false,
"wipe": 1780045906,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3022,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/6741521");
$data = json_decode($json, true);
var_dump($data);