API dla Papa Fry's Snack Shack [HoE +/Custom Maps/Discord]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285483979254787",
"domain": null,
"id": 8535815,
"ip": "160.202.167.27",
"port": 57015,
"query": 57016,
"project_id": null,
"color": 0,
"city": "New York",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1776019939,
"last_online": 1781218278,
"icon": null,
"name": "Papa Fry's Snack Shack [HoE +/Custom Maps/Discord]",
"connect": "160.202.167.27:57015",
"request": "160.202.167.27:57016",
"map": "KF-Arid_Zedlands",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1744463081,
"last_update": 1781218278,
"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": 460,
"language": "en",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/8535815");
$data = json_decode($json, true);
var_dump($data);