API dla Wastelands Noob Friendly PvE [US]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 131124,
"world_seed": 39708415,
"world_size": 4250,
"steam_id": "90286524010621967",
"domain": null,
"id": 8368970,
"ip": "156.236.84.58",
"port": 28035,
"query": 28036,
"color": 0,
"city": "Dallas",
"description": "![Wastelands Noob Friendly PvE [US]](https://www.dropbox.com/scl/fi/2q38k51yjlka4inrnut0s/WastelandsUS.png?rlkey=cnaj750uubpcihfmovsh5rvba&st=m89oph5q&dl=1)\nWelcome to Wastelands PvE Noob Friendly [US] \r\n\r\nFor all our Server rules and more join our Discord (view webpage) \r\n\r\nInformation \r\nBuilding damage disabled but make sure you add windows and locks to stop the trolls!!! \r\nWipes only when forced [Last wipe: 05/07] \r\nNext wipe: [06/04] \r\nPurge 20hrs leading to Wipe \r\nActive playing admin \r\n\r\nRules \r\nNo raiding, griefing or looting of any sleepers \r\nAnyone found doing so will be dealt with by Admin \r\nNo mic or chat spam, player disrespect, racism or harassment.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778433784,
"last_online": 1780555226,
"icon": null,
"name": "Wastelands Noob Friendly PvE [US]",
"connect": "156.236.84.58:28035",
"request": "156.236.84.58:28036",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 5,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1743631337,
"last_update": 1780555226,
"banned": false,
"wipe": 1778179706,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 913,
"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/8368970");
$data = json_decode($json, true);
var_dump($data);