API dla cactus' corpse castle cohort
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90282363971324955",
"domain": null,
"id": 11735826,
"ip": "76.156.143.205",
"port": 9876,
"query": 9877,
"color": 0,
"city": "Minneapolis",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780411640,
"last_online": 1780525373,
"icon": null,
"name": "cactus' corpse castle cohort",
"connect": "76.156.143.205:9876",
"request": "76.156.143.205:9877",
"map": "VRisingWorld",
"gamemode": "86c09843-2ed0-4fb0-a143-6a0749fd036f",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 42,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780411640,
"last_update": 1780525373,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3930,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11735826");
$data = json_decode($json, true);
var_dump($data);