Insurgency: Sandstorm
API pentru -=312th=- TD's Tough Tavern Dallas I [HC]
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/813823json
{
"response": {
"steam_id": "85568392923097782",
"domain": null,
"id": 813823,
"ip": "23.236.180.83",
"port": 27102,
"query": 27111,
"color": 0,
"city": "Dallas",
"description": "",
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1776393221,
"score": null,
"last_online": 1776441131,
"icon": null,
"name": "-=312th=- TD's Tough Tavern Dallas I [HC]",
"connect": "23.236.180.83:27102",
"request": "23.236.180.83:27111",
"map": "Prison",
"gamemode": "Hardcore Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684359969,
"last_update": 1776441131,
"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": 58,
"language": "en",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/813823");
$data = json_decode($json, true);
var_dump($data);