API dla 43q
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90285411969907730,
"domain": null,
"id": 10704246,
"ip": "104.153.109.43",
"port": 2502,
"query": 2503,
"project_id": null,
"color": 0,
"city": "Лос-Анджелес",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780390473,
"last_online": 1780807262,
"icon": null,
"name": "43q",
"connect": "104.153.109.43:2502",
"request": "104.153.109.43:2503",
"map": null,
"gamemode": "Waiting",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1765123841,
"last_update": 1780807262,
"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": 1517,
"language": "en",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10704246");
$data = json_decode($json, true);
var_dump($data);