API dla The Rusty Scorp ~ A Little like Vanilla; but with Perks..And Z
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 59,
"fps_avg": 59,
"entities_count": 62730,
"world_seed": 981601736,
"world_size": 3200,
"steam_id": 90286569289439250,
"domain": null,
"id": 10948392,
"ip": "66.51.98.59",
"port": 28000,
"query": 28001,
"color": 0,
"city": "Los Angeles",
"description": "\nDeep Sea Open 24/7 w/ Events * Modified Tug Boats* Tree Houses* No Decay* Raidable Bases (with over 250 Base Profiles and 4 Difficulty levels)* Crate Stacking* Server Point Reward System* RP Shop* New BoomBox Radio Stations* Town* XP/Rewards* No Durability Loss* T1/T2 BluePrints Known* BackPacks PTD* InstaCraft* Events* Teleportation* Homes* Kits* (24 Hour Purge) *Zombies*",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779980626,
"last_online": 1780587035,
"icon": null,
"name": "The Rusty Scorp ~ A Little like Vanilla; but with Perks..And Z",
"connect": "66.51.98.59:28000",
"request": "66.51.98.59:28001",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768511311,
"last_update": 1780587035,
"banned": false,
"wipe": 1778211531,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4108,
"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/10948392");
$data = json_decode($json, true);
var_dump($data);