Rust
API для Sparked Host Rust Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10622888json
{
"response": {
"steam_id": "90284063740049434",
"domain": null,
"id": 10622888,
"ip": "212.192.29.14",
"port": 28019,
"query": 28020,
"color": 0,
"city": "Dallas",
"description": "Reliable Rust hosting with top performance, DDoS protection, and 4.8⭐ support | Try it here: https://sparkedhost.com/game-server-hosting/rust/",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194330,
"score": 0,
"last_online": 1776210616,
"icon": null,
"name": "Sparked Host Rust Server",
"connect": "212.192.29.14:28019",
"request": "212.192.29.14:28020",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2623",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763330652,
"last_update": 1776210616,
"banned": false,
"wipe": 1775182481,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4016,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10622888");
$data = json_decode($json, true);
var_dump($data);