API dla AVIL MOBILE
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 8574568,
"ip": "45.155.207.161",
"port": 8888,
"query": 8888,
"project_id": null,
"color": 0,
"city": "Yaksatovo",
"description": null,
"game": 9000035,
"owner": 115847,
"boosts": 1,
"last_offline": 1780694604,
"last_online": 1780362028,
"icon": null,
"name": "AVIL MOBILE",
"connect": "45.155.207.161:8888",
"request": "45.155.207.161:8888",
"map": "Russia",
"gamemode": "GMX: 05:07:22",
"version": "0.3.7-R2",
"numplayers": 0,
"maxplayers": 1000,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1744828041,
"last_update": 1780694604,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": true,
"hide_address": false,
"hide_query": false,
"position_game": 1337,
"language": "ru",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": {
"username": "nesquikof",
"avatar": "4d0ec2e1-3e00-4619-97f5-e54e99e499b0.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/8574568");
$data = json_decode($json, true);
var_dump($data);