API dla The Office - Hardcore Carebears USA east
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 146,
"fps_avg": 151,
"entities_count": 111811,
"world_seed": 0,
"world_size": 4500,
"steam_id": "90286584366480392",
"domain": null,
"id": 6691305,
"ip": "108.35.101.102",
"port": 28021,
"query": 28023,
"color": 0,
"city": "Clifton",
"description": "\nHardcore: Wipes every other Thursday at 2 EST. No raiding 1st 48 hours after wipe; absolutely no griefing! Blueprints wipe on the 1st and 3rd Thursday of each month. No raiding allowed on Thursdays or Fridays — giving everyone time to settle in. No Griefing! Relaxed rules, active admins, and a focus on fun and fair play. Join the grind, make allies (or enemies), and enjoy the chaos!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779990822,
"last_online": 1780559434,
"icon": null,
"name": "The Office - Hardcore Carebears USA east",
"connect": "108.35.101.102:28021",
"request": "108.35.101.102:28023",
"map": "Procedural Map",
"gamemode": "Hardcore",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732060668,
"last_update": 1780559434,
"banned": false,
"wipe": 1779990977,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2611,
"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/6691305");
$data = json_decode($json, true);
var_dump($data);