Left 4 Dead 2
PotatoServer.Live | L4D2 Modded 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11142977json
{
"response": {
"steam_id": "90283948617401348",
"domain": "play.potatoserver.live",
"id": 11142977,
"ip": "144.202.49.95",
"port": 27050,
"query": 27050,
"color": 0,
"city": "Elk Grove Village",
"description": null,
"game": 550,
"owner": 158179,
"boosts": 1,
"last_offline": 1775712123,
"score": 0,
"last_online": 1775808616,
"icon": null,
"name": "PotatoServer.Live | L4D2 Modded",
"connect": "play.potatoserver.live:27050",
"request": "144.202.49.95:27050",
"map": "c1m1_hotel",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1771023392,
"last_update": 1775808616,
"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": 547,
"language": "en",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "potatoserver",
"avatar": "0aa338d8-4f05-4205-bb4d-ccec2dadc8be.png",
"last_online": 1775459945
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11142977");
$data = json_decode($json, true);
var_dump($data);