Wanted!
GoldSrcSaturdays.com/discord - Wanted! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7481233json
{
"response": {
"steam_id": "90284310186766336",
"domain": null,
"id": 7481233,
"ip": "91.191.213.98",
"port": 27023,
"query": 27023,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 9000030,
"owner": null,
"boosts": 1,
"last_offline": 1772125894,
"score": 0,
"last_online": 1776261634,
"icon": null,
"name": "GoldSrcSaturdays.com/discord - Wanted!",
"connect": "91.191.213.98:27023",
"request": "91.191.213.98:27023",
"map": "ctc3",
"gamemode": "Half-Life",
"version": "1.1.2.2",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739269271,
"last_update": 1776261634,
"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": 1,
"language": "en",
"parked": false,
"app": {
"id": 128,
"steam_id": 9000030,
"name": "Wanted!",
"url": "wanted"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7481233");
$data = json_decode($json, true);
var_dump($data);