Left 4 Dead
Valve Left4Dead Chile Server (srcds1010-scl1.241.7) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1784294json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1784294,
"ip": "155.133.249.205",
"port": 27021,
"query": 27021,
"color": 0,
"city": "Huechuraba",
"description": "",
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1774546920,
"score": null,
"last_online": 1776635460,
"icon": null,
"name": "Valve Left4Dead Chile Server (srcds1010-scl1.241.7)",
"connect": "155.133.249.205:27021",
"request": "155.133.249.205:27021",
"map": "l4d_hospital01_apartment",
"gamemode": "L4D - Co-op - Normal",
"version": "1.0.4.5",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "CL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1699706070,
"last_update": 1776635460,
"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": 751,
"language": "es",
"parked": false,
"app": {
"id": 18,
"steam_id": 500,
"name": "Left 4 Dead",
"url": "left-4-dead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1784294");
$data = json_decode($json, true);
var_dump($data);