Natural Selection 2
[CN#6] 陆战队训练PvE Frontiersman BootCamp için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11394484json
{
"response": {
"steam_id": "90284710007498756",
"domain": null,
"id": 11394484,
"ip": "202.189.10.29",
"port": 27012,
"query": 27013,
"color": 0,
"city": "Beijing",
"description": null,
"game": 4920,
"owner": null,
"boosts": 1,
"last_offline": 1776344625,
"score": 0,
"last_online": 1776783646,
"icon": null,
"name": "[CN#6] 陆战队训练PvE Frontiersman BootCamp",
"connect": "202.189.10.29:27012",
"request": "202.189.10.29:27013",
"map": "ns2_metro",
"gamemode": "Natural Selection 2",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774596962,
"last_update": 1776783646,
"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": 31,
"language": "zh",
"parked": false,
"app": {
"id": 91,
"steam_id": 4920,
"name": "Natural Selection 2",
"url": "natural-selection-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11394484");
$data = json_decode($json, true);
var_dump($data);