Rust
API pentru CYBERSHOKE | #2 Vanilla (x2, Small Map)
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11488839json
{
"response": {
"fps": 199,
"fps_avg": 195,
"entities_count": 70501,
"world_seed": 1337,
"world_size": 3500,
"steam_id": "90284567548567581",
"domain": null,
"id": 11488839,
"ip": "62.122.215.125",
"port": 28020,
"query": 28022,
"color": 0,
"city": "Moscow",
"description": "\nMap Wipe: Every Friday at 18:00 GMT+3\r\nRecipe Wipe: Twice a month\r\n24/7 Moderation: Press F7 to report a player\r\n\r\nServer Features:\r\nNo lag and no pay-to-win | Full classic | Team limit: None\r\n\r\nInformation:\r\nOur Site: cybershoke.net/rust",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776437551,
"score": 0,
"last_online": 1776456616,
"icon": null,
"name": "CYBERSHOKE | #2 Vanilla (x2, Small Map)",
"connect": "62.122.215.125:28020",
"request": "62.122.215.125:28022",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 70,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 77,
"add_date": 1775854907,
"last_update": 1776456616,
"banned": false,
"wipe": 1776437989,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 668,
"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/11488839");
$data = json_decode($json, true);
var_dump($data);