API dla Name is not set on server
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2763712,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "\nя-надеюсь-ты_здесь_хорошо_проведешь_время_с_друзьями.Есть_киты_и_тп,донат_китов_пока_нету,но_есть_киты_за_скрап.магазин_rustmalina.gamestores.app",
"game": 252490,
"owner": 76373,
"boosts": 1,
"last_offline": 1753434896,
"last_online": 1750734023,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1706397214,
"last_update": 1753434896,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13102,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "egorp5752",
"avatar": "040cad54-0fcc-4a71-9d37-64dbae9ce2c6.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/2763712");
$data = json_decode($json, true);
var_dump($data);