Euro Truck Simulator 2
API pentru Meows UTS2 Server - Hosted by 352nd
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10788766json
{
"response": {
"steam_id": 90279276717646850,
"domain": null,
"id": 10788766,
"ip": "99.114.177.15",
"port": 27093,
"query": 27092,
"color": 0,
"city": "Navarre",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1773367940,
"score": 0,
"last_online": 1776006059,
"icon": null,
"name": "Meows UTS2 Server - Hosted by 352nd",
"connect": "99.114.177.15:27093",
"request": "99.114.177.15:27092",
"map": "europe",
"gamemode": "Euro Truck Simulator 2",
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766874322,
"last_update": 1776006059,
"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": 625,
"language": "en",
"parked": false,
"app": {
"id": 1980,
"steam_id": 227300,
"name": "Euro Truck Simulator 2",
"url": "euro-truck-simulator-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10788766");
$data = json_decode($json, true);
var_dump($data);