Primitive Rust के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"fps": 98,
"fps_avg": 202,
"entities_count": 44935,
"world_seed": 1337,
"world_size": 4096,
"steam_id": "90286366107499525",
"domain": null,
"id": 9527885,
"ip": "54.39.28.143",
"port": 28025,
"query": 28027,
"project_id": null,
"color": 0,
"city": "Beauharnois",
"description": "\nWelcome to the Shitshow. \r\nSolo/Duo/Trio. Team sizes larger face massive increases in upkeep.\r\nMonthly wipes every first Thursday @ 1 PM CST. T1 BP's automatically learned.\r\nOffline raiding is disabled - bases don't take damage when all owners are offline.\r\n\r\nOur server features:\r\n- 2x gather rates.\r\n- Vanilla sulfur rates.\r\n- Custom Loottables. \r\n- No turret or bag limits.\r\n- No vending or workbench taxes. \r\n- Solo Friendly.\r\n- Custom Class System – pick your class once, live with it all wipe.\r\n\r\nClick VIEW WEBPAGE to join our Discord and be part of the community.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780686813,
"last_online": 1780068179,
"icon": null,
"name": "Primitive Rust",
"connect": "54.39.28.143:28025",
"request": "54.39.28.143:28027",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1750537975,
"last_update": 1780686813,
"banned": false,
"wipe": 1778234681,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9818,
"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/9527885");
$data = json_decode($json, true);
var_dump($data);