Samp
Advance RolePlay | Chocolate Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9650416json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9650416,
"ip": "185.169.134.157",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Lewes",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1773545567,
"score": 0,
"last_online": 1776366045,
"icon": null,
"name": "Advance RolePlay | Chocolate Server",
"connect": "185.169.134.157:7777",
"request": "185.169.134.157:7777",
"map": "Advance Country",
"gamemode": "Advance RP",
"version": "omp 1.5.8.3079",
"numplayers": 31,
"maxplayers": 1000,
"bots": 0,
"secured": null,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1751371826,
"last_update": 1776366045,
"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": 182,
"language": "en",
"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/9650416");
$data = json_decode($json, true);
var_dump($data);