Rust
API pentru Reddit.com/r/PlayRust - AU Softcore
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/754497json
{
"response": {
"fps": 29,
"fps_avg": 29,
"entities_count": 178774,
"world_seed": 1337,
"world_size": 3600,
"steam_id": "90285632987879443",
"domain": null,
"id": 754497,
"ip": "51.161.198.57",
"port": 28015,
"query": 8401,
"color": 0,
"city": "North Sydney",
"description": "\nWelcome to Reddit's official /r/PlayRust AU Softcore server! \r\n - No cheating or exploiting. No impersonation of staff members. \r\n - No spam, racism/slurs, discrimination. \r\n \r\n VIP: vip.redditplayrust.com \r\n Rules & Support: redditplayrust.com \r\n Discord: discord.gg/playrust \r\n Monthly Map Wipe @ Force / BP Wipe @ Forced",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778266989,
"score": null,
"last_online": 1778548214,
"icon": null,
"name": "Reddit.com/r/PlayRust - AU Softcore",
"connect": "51.161.198.57:28015",
"request": "51.161.198.57:8401",
"map": "Reddit Maps",
"gamemode": "Softcore",
"version": "2625",
"numplayers": 67,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 79,
"add_date": 1676380862,
"last_update": 1778548214,
"banned": false,
"wipe": 1778176970,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 457,
"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/754497");
$data = json_decode($json, true);
var_dump($data);