API dla Feces Factor
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90277505670767619",
"domain": null,
"id": 8303075,
"ip": "208.75.182.189",
"port": 26990,
"query": 26991,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": null,
"game": 427410,
"owner": null,
"boosts": 1,
"last_offline": 1768642114,
"last_online": 1780675872,
"icon": null,
"name": "Feces Factor",
"connect": "208.75.182.189:26990",
"request": "208.75.182.189:26991",
"map": null,
"gamemode": "Abiotic Factor",
"version": "1.0.0.6",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1743321938,
"last_update": 1780675872,
"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": 98,
"language": "en",
"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/8303075");
$data = json_decode($json, true);
var_dump($data);