Day of Defeat: Source
RPG-Mod | BOT updating ... | by mtxserv.com के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/7609422json
{
"response": {
"steam_id": "90284540740825092",
"domain": null,
"id": 7609422,
"ip": "185.206.151.148",
"port": 27140,
"query": 27140,
"color": 0,
"city": "Solihull",
"description": null,
"game": 300,
"owner": null,
"boosts": 1,
"last_offline": 1775437325,
"score": 0,
"last_online": 1776433267,
"icon": null,
"name": "RPG-Mod | BOT updating ... | by mtxserv.com",
"connect": "185.206.151.148:27140",
"request": "185.206.151.148:27140",
"map": "dod_husky",
"gamemode": "Day of Defeat RPG",
"version": "9540945",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739479450,
"last_update": 1776433267,
"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": 76,
"language": "en",
"parked": false,
"app": {
"id": 8,
"steam_id": 300,
"name": "Day of Defeat: Source",
"url": "day-of-defeat-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/7609422");
$data = json_decode($json, true);
var_dump($data);