Contagion
Official Contagion - Seattle PvP 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10796425json
{
"response": {
"steam_id": "90278672982608922",
"domain": null,
"id": 10796425,
"ip": "104.249.62.58",
"port": 13643,
"query": 13643,
"color": 0,
"city": "Bend",
"description": null,
"game": 238430,
"owner": null,
"boosts": 1,
"last_offline": 1777738343,
"score": 0,
"last_online": 1777696843,
"icon": null,
"name": "Official Contagion - Seattle PvP",
"connect": "104.249.62.58:13643",
"request": "104.249.62.58:13643",
"map": "ch_biotec",
"gamemode": "Contagion 2.3.0.1.7",
"version": "2.3.0.1.7",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1766877173,
"last_update": 1777738343,
"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": 16,
"language": "en",
"parked": false,
"app": {
"id": 68,
"steam_id": 238430,
"name": "Contagion",
"url": "contagion"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10796425");
$data = json_decode($json, true);
var_dump($data);