Samp
SA-MP 0.3 無人值守伺服器 (open.mp) için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/4785048json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4785048,
"ip": "220.135.101.62",
"port": 7778,
"query": 7778,
"color": 0,
"city": "Keelung",
"description": "",
"game": 9000035,
"owner": 154130,
"boosts": 1,
"last_offline": 1774630346,
"score": 0,
"last_online": 1776819024,
"icon": null,
"name": "SA-MP 0.3 無人值守伺服器 (open.mp)",
"connect": "220.135.101.62:7778",
"request": "220.135.101.62:7778",
"map": "San Andreas",
"gamemode": "¦ЫҐС«° 2.7.1.9 (OPEN.MP)",
"version": "omp 1.5.8.3079",
"numplayers": 0,
"maxplayers": 68,
"bots": 0,
"secured": null,
"private": false,
"country": "TW",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1718269493,
"last_update": 1776819024,
"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": 26,
"language": "zh",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": {
"username": "gfpts_adm",
"avatar": "no.jpg",
"last_online": 1766583502
},
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/4785048");
$data = json_decode($json, true);
var_dump($data);