Samp
[ENG] Aurora RPG (PC/MOBILE) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10909735json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10909735,
"ip": "146.59.83.254",
"port": 8888,
"query": 8888,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1770397859,
"score": 0,
"last_online": 1776852692,
"icon": null,
"name": "[ENG] Aurora RPG (PC/MOBILE)",
"connect": "146.59.83.254:8888",
"request": "146.59.83.254:8888",
"map": "San Andreas",
"gamemode": "RPG V1 (RP/CNR/DM)",
"version": "omp 1.5.8.3079",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": null,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768388484,
"last_update": 1776852692,
"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": 608,
"language": "pl",
"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/10909735");
$data = json_decode($json, true);
var_dump($data);