API dla [CN]砂糖橘|官方纯净|官图-QQ群:744031051
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286988034030600,
"domain": null,
"id": 11796680,
"ip": "218.11.235.129",
"port": 20009,
"query": 20009,
"project_id": null,
"color": 0,
"city": "Chengde",
"description": null,
"game": 224260,
"owner": null,
"boosts": 1,
"last_offline": 1781378837,
"last_online": 1781418628,
"icon": null,
"name": "[CN]砂糖橘|官方纯净|官图-QQ群:744031051",
"connect": "218.11.235.129:20009",
"request": "218.11.235.129:20009",
"map": "nmo_junction",
"gamemode": "官方纯净",
"version": "1.1.4.2",
"numplayers": 3,
"maxplayers": 9,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1781378837,
"last_update": 1781418628,
"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": 83,
"language": "zh",
"parked": false,
"app": {
"id": 6,
"steam_id": 224260,
"name": "No More Room in Hell",
"url": "no-more-room-in-hell"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11796680");
$data = json_decode($json, true);
var_dump($data);