API dla [Happy Trails] Blood Trails (TEST)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286725553430536",
"domain": null,
"id": 11660626,
"ip": "208.87.88.142",
"port": 25601,
"query": 25602,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780178467,
"last_online": 1780875101,
"icon": null,
"name": "[Happy Trails] Blood Trails (TEST)",
"connect": "208.87.88.142:25601",
"request": "208.87.88.142:25602",
"map": "VRisingWorld",
"gamemode": "4b91d86f-7574-4ef8-b467-19659d42131f",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780178467,
"last_update": 1780875101,
"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": 3534,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11660626");
$data = json_decode($json, true);
var_dump($data);