Rust
API pentru Thors Hammer 5X loot TPhome MONTHLY
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10699316json
{
"response": {
"fps": 98,
"fps_avg": 101,
"entities_count": 101314,
"world_seed": 39660300,
"world_size": 4000,
"steam_id": "90284611521326093",
"domain": null,
"id": 10699316,
"ip": "135.181.230.157",
"port": 7797,
"query": 7798,
"color": 0,
"city": "Helsinki",
"description": "\nThors Hammer is monthly again - let's goooo! \r\n We have the following: \r\n Raidable bases & Skill tree! \r\n Boosted rates and loots \r\n Awesome QoL plugins (port, auto lock, shared bps, etc.) \r\n Skinbox! \r\n Weekly wipes \r\n n00b friendly \r\n shop n rewards (always being updated)!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776523401,
"score": 0,
"last_online": 1776832823,
"icon": null,
"name": "Thors Hammer 5X loot TPhome MONTHLY",
"connect": "135.181.230.157:7797",
"request": "135.181.230.157:7798",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1765122727,
"last_update": 1776832823,
"banned": false,
"wipe": 1775152574,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3929,
"language": "fi",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10699316");
$data = json_decode($json, true);
var_dump($data);