rFactor 2
API для CMS VMSC Long Beach
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10884257json
{
"response": {
"steam_id": "90284368277236748",
"domain": null,
"id": 10884257,
"ip": "47.184.73.111",
"port": 34501,
"query": 34503,
"color": 0,
"city": "Denton",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1776191474,
"score": 0,
"last_online": 1776324666,
"icon": null,
"name": "CMS VMSC Long Beach",
"connect": "47.184.73.111:34501",
"request": "47.184.73.111:34503",
"map": "Long Beach GP Street Circuit",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 1,
"maxplayers": 62,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1768321261,
"last_update": 1776324666,
"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": 40,
"language": "en",
"parked": false,
"app": {
"id": 146,
"steam_id": 365960,
"name": "rFactor 2",
"url": "rfactor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10884257");
$data = json_decode($json, true);
var_dump($data);