API dla |SEA| MALAYSIA X INDONESIA |SOLO|DUO|TRIO|
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 152,
"fps_avg": 151,
"entities_count": 105026,
"world_seed": 1462796836,
"world_size": 4250,
"steam_id": "90286907718728728",
"domain": null,
"id": 10605762,
"ip": "139.99.37.83",
"port": 19800,
"query": 19803,
"project_id": null,
"color": 0,
"city": "Singapore",
"description": "\nWelcome to the Server \r\n Pure Vanilla \r\n Weekly Map Wipe \r\n Blueprints Wipe Monthly \r\n Active Admins (silent and always watching) \r\n No Cheaters \r\n Toxic Free Community (teamwork or betrayal, your choice!) \r\n SURVIVE,HUNT,BUILD,DOMINATE \r\n No allies,No peace,Only RUST",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781240033,
"last_online": 1781355026,
"icon": null,
"name": "|SEA| MALAYSIA X INDONESIA |SOLO|DUO|TRIO|",
"connect": "139.99.37.83:19800",
"request": "139.99.37.83:19803",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 4,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1763321692,
"last_update": 1781355026,
"banned": false,
"wipe": 1781240245,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1891,
"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/10605762");
$data = json_decode($json, true);
var_dump($data);