API dla Rusty Nails | Weekly Vanilla
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 57,
"fps_avg": 56,
"entities_count": 114259,
"world_seed": 218342897,
"world_size": 4500,
"steam_id": "90286584356913174",
"domain": null,
"id": 10534294,
"ip": "143.223.117.115",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Martinsville",
"description": "\nWelcome to Rusty Nails\r\n Weekly Vanilla\r\n Active Admins\r\n No Pay2Win\r\n Fair Play\r\n Vanilla Rust Experience\r\n Map Wipes Weekly\r\n Blueprint Wipes on Force Only\r\n Discord https://discord.gg/Hcq6DpvS7\r\n Build, raid, survive, and dominate until the next wipe.\r\n Rusty Nails: Simple. Brutal. Rust",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780556669,
"last_online": 1780587634,
"icon": null,
"name": "Rusty Nails | Weekly Vanilla",
"connect": "143.223.117.115:28015",
"request": "143.223.117.115:28016",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1762518667,
"last_update": 1780587634,
"banned": false,
"wipe": 1779991080,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3744,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10534294");
$data = json_decode($json, true);
var_dump($data);