Squad
API pentru [DMH] Dead Man's Hand #1 | New Player Friendly | Discord.gg/DMH
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11142737json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142737,
"ip": "212.192.28.26",
"port": 10001,
"query": 10001,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1775021599,
"score": 0,
"last_online": 1776457234,
"icon": null,
"name": "[DMH] Dead Man's Hand #1 | New Player Friendly | Discord.gg/DMH",
"connect": "212.192.28.26:10001",
"request": "212.192.28.26:10001",
"map": "Sumari_Seed_v1",
"gamemode": "Seed",
"version": "v10.3.1.576590.1719",
"numplayers": 15,
"maxplayers": 98,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 43,
"add_date": 1770815407,
"last_update": 1776457234,
"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": 102,
"language": "en",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11142737");
$data = json_decode($json, true);
var_dump($data);