API dla Paradiset Large Map
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 177,
"fps_avg": 171,
"entities_count": 203737,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90286684377063443",
"domain": null,
"id": 11759235,
"ip": "185.62.206.135",
"port": 28244,
"query": 28245,
"project_id": null,
"color": 0,
"city": "Karlskrona",
"description": "\nWelcome to Paradiset\r\nFull wipe with bp 260606\r\nNext wipe 260618\r\nNo offensive language in chat\r\nPlayers with internet connection from Russia are not welcome on the server.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780931704,
"last_online": 1780959031,
"icon": null,
"name": "Paradiset Large Map",
"connect": "185.62.206.135:28244",
"request": "185.62.206.135:28245",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780931704,
"last_update": 1780959031,
"banned": false,
"wipe": 1780762085,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6019,
"language": "sv",
"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/11759235");
$data = json_decode($json, true);
var_dump($data);