API dla Drifters Mod Testing - PVPVE!
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 204,
"fps_avg": 204,
"entities_count": 89995,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90286603694358544",
"domain": null,
"id": 11511531,
"ip": "169.255.198.94",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Centurion",
"description": "\nDrifters ZA\r\n\r\nI create my own mods - feel free to join and give some feedback!\r\nPlease dont complain when you die or lose gear, get yourself some more!. Included is premium mods like Zombie hunter, Cargo Convoy, plane crash events, Convoy Reforged etc.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780594998,
"last_online": 1780596636,
"icon": null,
"name": "Drifters Mod Testing - PVPVE!",
"connect": "169.255.198.94:28025",
"request": "169.255.198.94:28026",
"map": "Custom Map",
"gamemode": "Softcore",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353852,
"last_update": 1780596636,
"banned": false,
"wipe": 1780595482,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3813,
"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/11511531");
$data = json_decode($json, true);
var_dump($data);