Day of Dragons
API pentru [广州] New Dawn #6
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11015548json
{
"response": {
"steam_id": "90284368836737025",
"domain": null,
"id": 11015548,
"ip": "159.75.134.121",
"port": 30006,
"query": 40006,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 1088090,
"owner": null,
"boosts": 1,
"last_offline": 1774712537,
"score": 0,
"last_online": 1776203440,
"icon": null,
"name": "[广州] New Dawn #6",
"connect": "159.75.134.121:30006",
"request": "159.75.134.121:40006",
"map": null,
"gamemode": "Day of Dragons",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769943165,
"last_update": 1776203440,
"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": 61,
"language": "zh",
"parked": false,
"app": {
"id": 45862,
"steam_id": 1088090,
"name": "Day of Dragons",
"url": "day-of-dragons"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11015548");
$data = json_decode($json, true);
var_dump($data);