Sven Co-op
Name is not set on server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7794799json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7794799,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"0_6sTY8UFf\",\"type\":\"paragraph\",\"data\":{\"text\":\"Moved to 51.81.20.75\"}}]",
"game": 225840,
"owner": 108193,
"boosts": 1,
"last_offline": 1754645642,
"score": 0,
"last_online": 1751735431,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "hl_c01_a1",
"gamemode": "Sven Co-op 5.26",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1739963674,
"last_update": 1754645642,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": true,
"hide_address": true,
"hide_query": false,
"position_game": 223,
"language": "en",
"parked": true,
"app": {
"id": 65,
"steam_id": 225840,
"name": "Sven Co-op",
"url": "sven-co-op"
},
"server_owner": {
"username": "Aperture",
"avatar": "90be8ff3-3561-4192-a7c0-b4e04cc05a43.jpg",
"last_online": 1751951831
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7794799");
$data = json_decode($json, true);
var_dump($data);