Testing server, not purpose için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "90286547914936331",
"domain": null,
"id": 11579355,
"ip": "46.13.86.9",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Žatec",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1779825204,
"last_online": 1780539741,
"icon": null,
"name": "Testing server, not purpose",
"connect": "46.13.86.9:27018",
"request": "46.13.86.9:27018",
"map": "contamination",
"gamemode": "Half-Life",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356971,
"last_update": 1780539741,
"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": 320,
"language": "cs",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11579355");
$data = json_decode($json, true);
var_dump($data);