API dla [US] Scrap Kings 2x | BiWeekly | Quad
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 235,
"fps_avg": 236,
"entities_count": 29882,
"world_seed": 1,
"world_size": 2500,
"steam_id": "90286581204690945",
"domain": null,
"id": 9555737,
"ip": "135.148.150.139",
"port": 60403,
"query": 60405,
"color": 0,
"city": "Warrenton",
"description": "\nThe perfect server for you! Relax and farm, or pvp and snowball to the top! Whatever you choose to do, you’ll have active admins ready to help, kits waiting to be redeemed, and fun waiting to be had!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780661002,
"last_online": 1780631431,
"icon": null,
"name": "[US] Scrap Kings 2x | BiWeekly | Quad",
"connect": "135.148.150.139:60403",
"request": "135.148.150.139:60405",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1750553481,
"last_update": 1780661002,
"banned": false,
"wipe": 1778300017,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9796,
"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/9555737");
$data = json_decode($json, true);
var_dump($data);