American Truck Simulator
API pentru [RU] MoroZ & Co #HONDURAS
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/9500868json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9500868,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 270880,
"owner": 98165,
"boosts": 1,
"last_offline": 1760680413,
"score": 0,
"last_online": 1758025401,
"icon": null,
"name": "[RU] MoroZ & Co #HONDURAS",
"connect": null,
"request": null,
"map": "/map/copan.mbd",
"gamemode": "TRUCKERSMOROZ.RU",
"version": null,
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1750069600,
"last_update": 1760680413,
"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": 652,
"language": "nl",
"parked": true,
"app": {
"id": 2949,
"steam_id": 270880,
"name": "American Truck Simulator",
"url": "american-truck-simulator"
},
"server_owner": {
"username": "Denis96RUS",
"avatar": "aac099df-311d-4c18-a011-2399a1b137e5.jpg",
"last_online": 1773248376
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/9500868");
$data = json_decode($json, true);
var_dump($data);