API dla Black Roses
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286680308899845",
"domain": null,
"id": 11498535,
"ip": "88.122.201.225",
"port": 33004,
"query": 33005,
"project_id": null,
"color": 0,
"city": "Poitiers",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781326386,
"last_online": 1780920102,
"icon": null,
"name": "Black Roses",
"connect": "88.122.201.225:33004",
"request": "88.122.201.225:33005",
"map": "Fjordur",
"gamemode": "TestGameMode_C",
"version": "358.24",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207054,
"last_update": 1781326386,
"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": 14257,
"language": "fr",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11498535");
$data = json_decode($json, true);
var_dump($data);