[FIN/ENG] Persaukisten Hardcore PvP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"build": 118271,
"extraFlags": 1,
"nameHeaderRaw": "f0df1c010003",
"statusFlags": 40,
"type": 0,
"unknownStatusFlags": 40,
"steam_id": null,
"domain": null,
"id": 11752958,
"ip": "82.181.50.1",
"port": 7045,
"query": 7045,
"project_id": null,
"color": 0,
"city": "Helsinki",
"description": null,
"game": 513710,
"owner": null,
"boosts": 1,
"last_offline": 1780519377,
"last_online": 1780788110,
"icon": null,
"name": "[FIN/ENG] Persaukisten Hardcore PvP",
"connect": "82.181.50.1:7045",
"request": "82.181.50.1:7045",
"map": null,
"gamemode": "community-direct",
"version": "1.3.0.1.118271",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": null,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780519377,
"last_update": 1780788110,
"banned": false,
"wipe": null,
"official": false,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4630,
"language": "fi",
"parked": false,
"app": {
"id": 11540,
"steam_id": 513710,
"name": "SCUM",
"url": "scum"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11752958");
$data = json_decode($json, true);
var_dump($data);