Prythian के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": "90286137157325836",
"domain": null,
"id": 11660620,
"ip": "157.85.91.79",
"port": 20004,
"query": 20005,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780178467,
"last_online": 1780851161,
"icon": null,
"name": "Prythian",
"connect": "157.85.91.79:20004",
"request": "157.85.91.79:20005",
"map": "VRisingWorld",
"gamemode": "e21ac460-d3cd-423b-a226-95a2159c00b4",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780178467,
"last_update": 1780851161,
"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": 3386,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11660620");
$data = json_decode($json, true);
var_dump($data);