API dla 今日新开|海贼王||拍卖行|Q群1003062325
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286271870668815",
"domain": null,
"id": 11611766,
"ip": "82.157.181.229",
"port": 38636,
"query": 39136,
"color": 0,
"city": "Beijing",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780470425,
"last_online": 1780573425,
"icon": null,
"name": "今日新开|海贼王||拍卖行|Q群1003062325",
"connect": "82.157.181.229:38636",
"request": "82.157.181.229:39136",
"map": "Chernarusplus",
"gamemode": null,
"version": "129",
"numplayers": 0,
"maxplayers": 70,
"bots": 132,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779915689,
"last_update": 1780573425,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7622,
"language": "zh",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11611766");
$data = json_decode($json, true);
var_dump($data);