API для Spice Island | 2x Monthly
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286603985740809",
"domain": null,
"id": 762490,
"ip": "104.129.132.51",
"port": 28028,
"query": 28025,
"color": 0,
"city": "Dallas",
"description": "\nNoob Friendly\r\nNo Pay to Win\r\nNo BP Wipes\r\nMonthly Map Wipe\r\nActive Admins\r\n\r\nRULES:\r\n1. No Cheating.\r\n2. No Racism, Discrimination, Bullying, Stalking, Sexual Harassment or Other Toxic Behavior.\r\n3. No Age-Restricted or Obscene Content. This includes but is not limited to Text, Images, Video, VOIP, or Links.\r\n4. No Spam or Self-Promotion (Server Invites, Advertisements, etc)\r\n\r\nClick 'View Webpage' to Join Discord",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780607427,
"icon": null,
"name": "Spice Island | 2x Monthly",
"connect": "104.129.132.51:28028",
"request": "104.129.132.51:28025",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2627",
"numplayers": 17,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 67,
"add_date": 1680789653,
"last_update": 1780607427,
"banned": false,
"wipe": 1780596305,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1017,
"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/762490");
$data = json_decode($json, true);
var_dump($data);