Call Of Duty 7 Resurrection V7 PTP Mode 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10882850,
"ip": "152.228.156.128",
"port": 7827,
"query": 7827,
"project_id": null,
"color": 0,
"city": "Strasbourg",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1768641880,
"last_online": 1780780973,
"icon": null,
"name": "Call Of Duty 7 Resurrection V7 PTP Mode",
"connect": "152.228.156.128:7827",
"request": "152.228.156.128:7827",
"map": "San Andreas",
"gamemode": "COD7 RR V3 TDM|DM|War|ptp",
"version": "0.3.7-R2",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": null,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768320805,
"last_update": 1780780973,
"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": 585,
"language": "fr",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10882850");
$data = json_decode($json, true);
var_dump($data);