American Truck Simulator
GPTF-ATS के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/10499218json
{
"response": {
"steam_id": "85568392935502156",
"domain": null,
"id": 10499218,
"ip": "142.93.231.169",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 270880,
"owner": null,
"boosts": 1,
"last_offline": 1768642152,
"score": 0,
"last_online": 1776031857,
"icon": null,
"name": "GPTF-ATS",
"connect": "142.93.231.169:27015",
"request": "142.93.231.169:27016",
"map": "usa",
"gamemode": "Serveur ATS Gptf",
"version": null,
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": false,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1761125205,
"last_update": 1776031857,
"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": 235,
"language": "nl",
"parked": false,
"app": {
"id": 2949,
"steam_id": 270880,
"name": "American Truck Simulator",
"url": "american-truck-simulator"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/10499218");
$data = json_decode($json, true);
var_dump($data);