rFactor 2
API pentru SimRacing-GP.net_WTS-GT3
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10998788json
{
"response": {
"steam_id": "90284395793072141",
"domain": null,
"id": 10998788,
"ip": "188.165.193.80",
"port": 64297,
"query": 64299,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1776259915,
"score": 0,
"last_online": 1776311438,
"icon": null,
"name": "SimRacing-GP.net_WTS-GT3",
"connect": "188.165.193.80:64297",
"request": "188.165.193.80:64299",
"map": "Shanghai International Circuit",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 21,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769906566,
"last_update": 1776311438,
"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": 157,
"language": "fr",
"parked": false,
"app": {
"id": 146,
"steam_id": 365960,
"name": "rFactor 2",
"url": "rfactor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10998788");
$data = json_decode($json, true);
var_dump($data);