Rust
API pentru Rustoria.co - US Small
Oferim o gamă largă de metode de integrare. Puteți utiliza oricare dintre ele sau puteți crea propria metodă folosind JSON API. Dacă aveți o propunere pentru adăugarea unei noi metode de integrare, vă rugăm să ne contactați. Contactați-ne
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10571503json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 127767,
"world_seed": null,
"steam_id": "90284182962561047",
"domain": null,
"id": 10571503,
"ip": "208.103.169.114",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "\nWipe Schedule:\r\n\\tMap - Weekly on Thursdays @ 3PM EST, or when force updates occur.\r\n\\tBPs - Monthly @ Force\r\n\r\nVIP: donate.rustoria.co\r\n\r\nRules:\r\n\\t- No hacking / scripting\r\n\\t- No intentional bug abuse\r\n\\t- No EAC / FP banned alts\r\n\\t- No ban evading\r\n\\t- No racism\r\n\r\nGood performance\r\nActive non playing admins\r\nSeeds are carefully picked\r\n\r\nDiscord: rustoria.co/discord\r\nFull rules: rustoria.co/vanilla/rules",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775778122,
"score": 0,
"last_online": 1775898611,
"icon": null,
"name": "Rustoria.co - US Small",
"connect": "208.103.169.114:28010",
"request": "208.103.169.114:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 49,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 78,
"add_date": 1762847089,
"last_update": 1775898611,
"banned": false,
"wipe": 1775761027,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 539,
"language": "en",
"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/10571503");
$data = json_decode($json, true);
var_dump($data);