rFactor 2
API для SOSAD FVR SMP
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10752649json
{
"response": {
"steam_id": "90281970991664131",
"domain": null,
"id": 10752649,
"ip": "124.177.213.71",
"port": 27010,
"query": 27012,
"color": 0,
"city": "Gold Coast",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1775167332,
"score": 0,
"last_online": 1777604499,
"icon": null,
"name": "SOSAD FVR SMP",
"connect": "124.177.213.71:27010",
"request": "124.177.213.71:27012",
"map": "Gardner (Grand Prix) Circuit",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 21,
"bots": 0,
"secured": false,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766253890,
"last_update": 1777604499,
"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": 107,
"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/10752649");
$data = json_decode($json, true);
var_dump($data);