API dla Abiotic Factor Server by G-Portal.com
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286389630500892",
"domain": null,
"id": 11625560,
"ip": "176.57.143.86",
"port": 34600,
"query": 34615,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 427410,
"owner": null,
"boosts": 1,
"last_offline": 1780708395,
"last_online": 1780678358,
"icon": null,
"name": "Abiotic Factor Server by G-Portal.com",
"connect": "176.57.143.86:34600",
"request": "176.57.143.86:34615",
"map": null,
"gamemode": "Abiotic Factor",
"version": "1.0.0.6",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916207,
"last_update": 1780708395,
"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": 2889,
"language": "de",
"parked": false,
"app": {
"id": 1611062,
"steam_id": 427410,
"name": "Abiotic Factor",
"url": "abiotic-factor"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11625560");
$data = json_decode($json, true);
var_dump($data);