API dla Distorted - PVE 3X - Events and Raidable Bases - Biweekly
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 232,
"fps_avg": 232,
"entities_count": 96197,
"world_seed": 38231639,
"world_size": 4250,
"steam_id": 90286608411891740,
"domain": null,
"id": 11502699,
"ip": "61.93.123.62",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Discovery Bay",
"description": "\nWelcome to the Distorted PVE Events and Raidable Bases Server.\r\nThis is a friendly server, cheaters will be banned.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780599268,
"last_online": 1780608635,
"icon": null,
"name": "Distorted - PVE 3X - Events and Raidable Bases - Biweekly",
"connect": "61.93.123.62:28015",
"request": "61.93.123.62:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "HK",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207212,
"last_update": 1780608635,
"banned": false,
"wipe": 1780599664,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4824,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11502699");
$data = json_decode($json, true);
var_dump($data);