Chivalry: Medieval Warfare
API pentru The Best Server [RU] (Test)
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/267842json
{
"response": {
"steam_id": "90284544036077579",
"domain": null,
"id": 267842,
"ip": "213.141.128.208",
"port": 7000,
"query": 7010,
"color": 0,
"city": "Moscow",
"description": "",
"game": 219640,
"owner": null,
"boosts": 1,
"last_offline": 1776435751,
"score": null,
"last_online": 1776401548,
"icon": null,
"name": "The Best Server [RU] (Test)",
"connect": "213.141.128.208:7000",
"request": "213.141.128.208:7010",
"map": "aocffa-arena3_p",
"gamemode": "Chivalry: Medieval Warfare",
"version": "1.0.0.1",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1584280879,
"last_update": 1776435751,
"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": 22,
"language": "ru",
"parked": false,
"app": {
"id": 79,
"steam_id": 219640,
"name": "Chivalry: Medieval Warfare",
"url": "chivalry-medieval-warfare"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/267842");
$data = json_decode($json, true);
var_dump($data);