API pentru -=={ 伟大航路·新世界 }==- 拍卖行与大船团正在�
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": 90286271875155980,
"domain": null,
"id": 11648707,
"ip": "49.232.191.124",
"port": 16284,
"query": 16784,
"color": 0,
"city": "Beijing",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780382653,
"last_online": 1780570999,
"icon": null,
"name": "-=={ 伟大航路·新世界 }==- 拍卖行与大船团正在�",
"connect": "49.232.191.124:16284",
"request": "49.232.191.124:16784",
"map": "Chernarusplus",
"gamemode": null,
"version": "129",
"numplayers": 0,
"maxplayers": 70,
"bots": 114,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780177634,
"last_update": 1780570999,
"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": 8482,
"language": "zh",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11648707");
$data = json_decode($json, true);
var_dump($data);