Rust
के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/11261286json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11261286,
"ip": "51.79.218.246",
"port": 21392,
"query": 21393,
"color": 0,
"city": "Singapore",
"description": "WELCOME TO ZEROHOUR\r\n\r\n[ SERVER INFO ]\r\n- 5X Resources: High-speed looting & crafting\r\n- 1 Minicopter: Every survivor gets a ride (Type /mini)\r\n- Zombie Apocalypse: Survive the endless horde\r\n- Full PvP: No rules, only the strongest survive\r\n\r\n[ RULES ]\r\n- No Cheating / No Toxicity\r\n- Trust no one, survive the Zero Hour!\r\n\r\nENJOY YOUR APOCALYPSE!\r\n[ SPECIAL EVENT: DEMIGOD TRIAL ] - Duration: 4/1 ~ 4/11 (10 Days) - All players can experience the 'Demigod' rank perks! - Try the ultimate power of our top-tier supporter group.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776853358,
"score": 0,
"last_online": 1776261018,
"icon": null,
"name": null,
"connect": null,
"request": "51.79.218.246:21393",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": null,
"private": false,
"country": "SG",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774555232,
"last_update": 1776853358,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9189,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11261286");
$data = json_decode($json, true);
var_dump($data);