API dla Scrapland | PVE | RP
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 100199,
"world_seed": 803262950,
"world_size": 3900,
"steam_id": "90286739115559945",
"domain": null,
"id": 6577330,
"ip": "102.218.213.38",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Cape Town",
"description": "\nWelcome to Scrapland | PVE | RP - For all the server details use /info in game chat. Have some fun...",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780891455,
"last_online": 1780899033,
"icon": null,
"name": "Scrapland | PVE | RP",
"connect": "102.218.213.38:28015",
"request": "102.218.213.38:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1731160062,
"last_update": 1780899033,
"banned": false,
"wipe": 1780597335,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2245,
"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/6577330");
$data = json_decode($json, true);
var_dump($data);