Rust
API pentru R2 - Aim training / Matchmaking / Facechecks - RU Main
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10870666json
{
"response": {
"fps": 28,
"fps_avg": 28,
"entities_count": 7580,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90284543248288791",
"domain": null,
"id": 10870666,
"ip": "46.174.53.96",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Moscow",
"description": "\nWe have the following modes:\r\n - Matchmaking\r\n - FaceChecks\r\n - Aim Bots\r\n - Aim Flow\r\n - GunGame\r\n - FFA: Small/Large/Primitive\r\n \r\nAnd events:\r\n - LastLife\r\n - PCR (Private Clan Roams)\r\n \r\nServer location: Russia, Moscow\r\nDiscord link: discord.gg/r2aim\r\nWebsite and VIP's: r2rust.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775617403,
"score": 0,
"last_online": 1776430813,
"icon": null,
"name": "R2 - Aim training / Matchmaking / Facechecks - RU Main",
"connect": "46.174.53.96:28015",
"request": "46.174.53.96:28016",
"map": "discord.gg/r2aim",
"gamemode": "Survival",
"version": "2623",
"numplayers": 124,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1768318453,
"last_update": 1776430813,
"banned": false,
"wipe": 1775184382,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 325,
"language": "ru",
"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/10870666");
$data = json_decode($json, true);
var_dump($data);