Samp
Lithuanian Freeroam [www.freeroam.lt] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4785414json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4785414,
"ip": "185.80.128.213",
"port": 8888,
"query": 8888,
"color": 0,
"city": "Vilnius",
"description": "",
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1776308512,
"score": 0,
"last_online": 1776381705,
"icon": null,
"name": "Lithuanian Freeroam [www.freeroam.lt]",
"connect": "185.80.128.213:8888",
"request": "185.80.128.213:8888",
"map": "San Fierro",
"gamemode": "LT-FR v6.4 RaceDragStuntTDM",
"version": "omp 1.5.8.3079",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": false,
"country": "LT",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1718269625,
"last_update": 1776381705,
"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": 365,
"language": "lt",
"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/4785414");
$data = json_decode($json, true);
var_dump($data);