API dla Psycho Island One Grid PVP Loot+ XP Monthly
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 235,
"fps_avg": 234,
"entities_count": 16199,
"world_seed": 55531,
"world_size": 2000,
"steam_id": "90286592382154761",
"domain": null,
"id": 11704411,
"ip": "71.86.189.205",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Escanaba",
"description": "Welcome! You washed up on an island that was once a military base, but since the cold war ended they have left. Murderous psychopaths have taken over everything and they come after you at night. Good Luck. This server is 18+.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780488238,
"last_online": 1780585831,
"icon": null,
"name": "Psycho Island One Grid PVP Loot+ XP Monthly",
"connect": "71.86.189.205:28015",
"request": "71.86.189.205:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780262418,
"last_update": 1780585831,
"banned": false,
"wipe": 1780077237,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5966,
"language": "en",
"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/11704411");
$data = json_decode($json, true);
var_dump($data);