Natural Selection
Natural Selection v3.3 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11486882json
{
"response": {
"steam_id": "90285160324666379",
"domain": null,
"id": 11486882,
"ip": "208.115.197.242",
"port": 27074,
"query": 27074,
"color": 0,
"city": "Singapore",
"description": null,
"game": 90002,
"owner": null,
"boosts": 1,
"last_offline": 1774979577,
"score": 0,
"last_online": 1777546266,
"icon": null,
"name": "Natural Selection v3.3",
"connect": "208.115.197.242:27074",
"request": "208.115.197.242:27074",
"map": "ns_lucid",
"gamemode": "NS v3.3b9",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 14,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774979577,
"last_update": 1777546266,
"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": 14,
"language": "en",
"parked": false,
"app": {
"id": 102,
"steam_id": 90002,
"name": "Natural Selection",
"url": "natural-selection"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11486882");
$data = json_decode($json, true);
var_dump($data);