Potat ATS 2 için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "85568392935765007",
"domain": null,
"id": 10883662,
"ip": "107.210.194.38",
"port": 27065,
"query": 27066,
"project_id": null,
"color": 0,
"city": "Louisville",
"description": null,
"game": 270880,
"owner": null,
"boosts": 1,
"last_offline": 1781135654,
"last_online": 1781634687,
"icon": null,
"name": "Potat ATS 2",
"connect": "107.210.194.38:27065",
"request": "107.210.194.38:27066",
"map": "usa",
"gamemode": "Super Spud Service",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768321084,
"last_update": 1781634687,
"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": 289,
"language": "en",
"parked": false,
"app": {
"id": 2949,
"steam_id": 270880,
"name": "American Truck Simulator",
"url": "american-truck-simulator"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/10883662");
$data = json_decode($json, true);
var_dump($data);