Quake Live
API pentru EGB msk Duel#2
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10883736json
{
"response": {
"steam_id": "90283785651335198",
"domain": null,
"id": 10883736,
"ip": "85.239.37.192",
"port": 27961,
"query": 27961,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 282440,
"owner": null,
"boosts": 1,
"last_offline": 1775054535,
"score": 0,
"last_online": 1776252019,
"icon": null,
"name": "EGB msk Duel#2",
"connect": "85.239.37.192:27961",
"request": "85.239.37.192:27961",
"map": "aerowalk",
"gamemode": "Duel",
"version": "1069 linux-x64 Jun 3 2016 20:53:50",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1768321099,
"last_update": 1776252019,
"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": 46,
"language": "ru",
"parked": false,
"app": {
"id": 138,
"steam_id": 282440,
"name": "Quake Live",
"url": "quake-live"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10883736");
$data = json_decode($json, true);
var_dump($data);