Multi Theft Auto
RCC.D MTA:SA Server #1 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/7343914json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7343914,
"ip": "37.9.13.222",
"port": 22003,
"query": 22126,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 9000039,
"owner": null,
"boosts": 1,
"last_offline": 1775527324,
"score": 0,
"last_online": 1776799839,
"icon": null,
"name": "RCC.D MTA:SA Server #1",
"connect": "37.9.13.222:22003",
"request": "37.9.13.222:22126",
"map": "San Andreas",
"gamemode": "RCCD MTA v2.4",
"version": "2.4",
"numplayers": 35,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1736941383,
"last_update": 1776799839,
"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": 10,
"language": "ru",
"parked": false,
"app": {
"id": 40530,
"steam_id": 9000039,
"name": "Multi Theft Auto",
"url": "multi-theft-auto"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/7343914");
$data = json_decode($json, true);
var_dump($data);