API dla Sendroth
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286865255498783",
"domain": null,
"id": 11430554,
"ip": "31.214.207.9",
"port": 8677,
"query": 8678,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781298782,
"last_online": 1781164890,
"icon": null,
"name": "Sendroth",
"connect": "31.214.207.9:8677",
"request": "31.214.207.9:8678",
"map": "Fjordur",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774976590,
"last_update": 1781298782,
"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": 13861,
"language": "de",
"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/11430554");
$data = json_decode($json, true);
var_dump($data);