API dla The eternal crusade.
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285390127438857",
"domain": null,
"id": 9561380,
"ip": "45.141.122.195",
"port": 34600,
"query": 34615,
"project_id": null,
"color": 0,
"city": "Portsmouth",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781259782,
"last_online": 1781192529,
"icon": null,
"name": "The eternal crusade.",
"connect": "45.141.122.195:34600",
"request": "45.141.122.195:34615",
"map": "LostIsland",
"gamemode": "TestGameMode_C",
"version": "358.24",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1750586324,
"last_update": 1781259782,
"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": 13319,
"language": "en",
"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/9561380");
$data = json_decode($json, true);
var_dump($data);