Dark and Light
API pentru EU-Knight-64 - (v100.54351)
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/812197json
{
"response": {
"steam_id": "90277980724787209",
"domain": null,
"id": 812197,
"ip": "85.190.148.14",
"port": 17783,
"query": 27021,
"color": 0,
"city": "Frankfurt am Main",
"description": "",
"game": 529180,
"owner": null,
"boosts": 1,
"last_offline": 1769607690,
"score": null,
"last_online": 1776246622,
"icon": null,
"name": "EU-Knight-64 - (v100.54351)",
"connect": "85.190.148.14:17783",
"request": "85.190.148.14:27021",
"map": "DNL_ALL",
"gamemode": "TestGameMode_C",
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1684357697,
"last_update": 1776246622,
"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": 104,
"language": "de",
"parked": false,
"app": {
"id": 180,
"steam_id": 529180,
"name": "Dark and Light",
"url": "dark-and-light"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/812197");
$data = json_decode($json, true);
var_dump($data);