rFactor 2
[CC] StockCar 2007 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11180256json
{
"response": {
"steam_id": "90285150210504707",
"domain": null,
"id": 11180256,
"ip": "45.231.36.102",
"port": 32592,
"query": 32594,
"color": 0,
"city": "Duque de Caxias",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1773525732,
"score": 0,
"last_online": 1777608720,
"icon": null,
"name": "[CC] StockCar 2007",
"connect": "45.231.36.102:32592",
"request": "45.231.36.102:32594",
"map": "Taruma",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 39,
"bots": 0,
"secured": false,
"private": true,
"country": "BR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772229591,
"last_update": 1777608720,
"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": 152,
"language": "pt",
"parked": false,
"app": {
"id": 146,
"steam_id": 365960,
"name": "rFactor 2",
"url": "rfactor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11180256");
$data = json_decode($json, true);
var_dump($data);