API dla [SPECTRE TASK FORCE] - Mic Required discord.gg/stf
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286614250225684",
"domain": null,
"id": 11668021,
"ip": "31.97.147.28",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Boston",
"description": null,
"game": 16900,
"owner": null,
"boosts": 1,
"last_offline": 1780548809,
"last_online": 1780935651,
"icon": null,
"name": "[SPECTRE TASK FORCE] - Mic Required discord.gg/stf",
"connect": "31.97.147.28:7777",
"request": "31.97.147.28:27015",
"map": "nv103518891,sp",
"gamemode": "Ground Branch",
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1780179569,
"last_update": 1780935651,
"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": 8,
"language": "en",
"parked": false,
"app": {
"id": 49744,
"steam_id": 16900,
"name": "GROUND BRANCH",
"url": "ground-branch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11668021");
$data = json_decode($json, true);
var_dump($data);