API dla !! Truckergrube 24/7 (GERMAN only!)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "85568392935874224",
"domain": null,
"id": 10613395,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Düsseldorf",
"description": null,
"game": 270880,
"owner": 105374,
"boosts": 1,
"last_offline": 1777355559,
"last_online": 1776483024,
"icon": null,
"name": "!! Truckergrube 24/7 (GERMAN only!)",
"connect": null,
"request": null,
"map": "usa",
"gamemode": "American Truck Simulator",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1763324554,
"last_update": 1777355559,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": 3,
"list_hidden": true,
"hide_address": true,
"hide_query": false,
"position_game": 855,
"language": "de",
"parked": true,
"app": {
"id": 2949,
"steam_id": 270880,
"name": "American Truck Simulator",
"url": "american-truck-simulator"
},
"server_owner": {
"username": "RW",
"avatar": "4b6407a1-ca7e-4bb5-a0bd-9327a2079e02.jpg"
},
"mods": [
{
"id": 5,
"name": "Admin System"
},
{
"id": 48,
"name": "Check Cheats"
},
{
"id": 4,
"name": "Admin List"
},
{
"id": 362,
"name": "Tag"
},
{
"id": 49,
"name": "CheckCheats"
},
{
"id": 1357,
"name": "Skip Night"
},
{
"id": 1911,
"name": "Bannlist"
}
],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10613395");
$data = json_decode($json, true);
var_dump($data);