一起来瞎搞-金色浮沙 için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "90286034439339014",
"domain": null,
"id": 11574856,
"ip": "103.6.220.238",
"port": 50003,
"query": 50007,
"color": 0,
"city": "Pengpu",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1779371629,
"last_online": 1779567036,
"icon": null,
"name": "一起来瞎搞-金色浮沙",
"connect": "103.6.220.238:50003",
"request": "103.6.220.238:50007",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1779356776,
"last_update": 1779567036,
"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": 174,
"language": "zh",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11574856");
$data = json_decode($json, true);
var_dump($data);