API dla RWTH | PRIMATIVE - x3/SkillTree/TP/Kits/Shop
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 62977,
"world_seed": 1000,
"world_size": 3500,
"steam_id": 90286497156518930,
"domain": null,
"id": 11645275,
"ip": "104.143.2.47",
"port": 32015,
"query": 32016,
"color": 0,
"city": "Toronto",
"description": "◈--Long Days, Very Short Nights--\r\n◈--Instant Crafting/Backpacks--\r\n◈--Satchels arent allowed in drones, only beancans--\r\n◈--Kits, Shop, TP, and SkillTree--\r\n◈--/horse command (like mymini but for horses)--\r\n◈--Increased Stack Sizes--",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177458,
"last_online": 1780581033,
"icon": null,
"name": "RWTH | PRIMATIVE - x3/SkillTree/TP/Kits/Shop",
"connect": "104.143.2.47:32015",
"request": "104.143.2.47:32016",
"map": "Procedural Map",
"gamemode": "Primitive",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177458,
"last_update": 1780581033,
"banned": false,
"wipe": 1778194451,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5771,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/11645275");
$data = json_decode($json, true);
var_dump($data);