Garry's Mod
Schokolade के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/1726264json
{
"response": {
"steam_id": "90259213735884816",
"domain": null,
"id": 1726264,
"ip": "37.120.185.16",
"port": 9001,
"query": 9001,
"color": 0,
"city": "Nuremberg",
"description": "",
"game": 4000,
"owner": null,
"boosts": 1,
"last_offline": 1768554230,
"score": null,
"last_online": 1776639110,
"icon": null,
"name": "Schokolade",
"connect": "37.120.185.16:9001",
"request": "37.120.185.16:9001",
"map": "ttt_lego",
"gamemode": "Trouble in Terrorist Town",
"version": "2020.03.17",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1699270619,
"last_update": 1776639110,
"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": 878,
"language": "de",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/1726264");
$data = json_decode($json, true);
var_dump($data);