API dla Gringers Solo Only | Noob Friendly June 4
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 76,
"fps_avg": 74,
"entities_count": 78501,
"world_seed": 1,
"world_size": 3700,
"steam_id": "90286604010158087",
"domain": null,
"id": 1832573,
"ip": "168.100.163.27",
"port": 29015,
"query": 29016,
"color": 0,
"city": "Dallas",
"description": "\nGringers Solo Only June 4th\r\nNext wipe is Saturday June 20th 10AM EDT\r\n\r\n Wipe Schedule \r\n • Biweekly: 2 times per month. Full wipe first Thursday on force 2PM EST, and Map wipe on the 3rd Saturday 10AM EST\r\n\r\nJoin our Discord by clicking the VIEW WEBPAGE button below \r\n\r\n Rules \r\n • Type !rules in game chat to get the full rules \r\n • Solo only game play. No teaming of bagging players \r\n • No base griefing. After raiding a base leave it unlocked and playable \r\n • No free item or base giveaways",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780070626,
"last_online": 1780600226,
"icon": null,
"name": "Gringers Solo Only | Noob Friendly June 4",
"connect": "168.100.163.27:29015",
"request": "168.100.163.27:29016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 22,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 69,
"add_date": 1700086917,
"last_update": 1780600226,
"banned": false,
"wipe": 1780596180,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 772,
"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/1832573");
$data = json_decode($json, true);
var_dump($data);