API для _Macau | International🌏24/7 | —— Macau Grand Prix
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794477441,
"app": {
"id": 3249,
"name": "BeamNG.drive",
"steam_id": 284160,
"url": "beamngdrive"
},
"color": 0,
"connect": "27.109.134.146:30817",
"country": "MO",
"domain": null,
"game": 284160,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20033106,
"ip": "27.109.134.146",
"language": "zh",
"last_update": 1794690265,
"map": "/levels/Macau/info.json",
"maxplayers": 18,
"name": "_Macau | International🌏24/7 | —— Macau Grand Prix",
"numplayers": 0,
"official": false,
"points": 0,
"port": 30817,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30817,
"request": "27.109.134.146:30817",
"secured": null,
"status": false,
"steam_id": null,
"version": "3.9.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Zhuojiacun",
"description": "The only BeamMP Server in Macau, accepts players from around the world🌏",
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794690265,
"last_online": 1794509774,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 6609,
"wipe_period": null,
"tags": "Freeroam",
"ident": null,
"guests": true,
"modList": "/commdef's Macau;/enhanced_backfire;/ellexium_SpinBlur;",
"partner": false,
"featured": false,
"location": "MO",
"modsTotal": 3,
"clientVersion": "2.7.0",
"modsTotalSize": 539129680
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20033106");
$data = json_decode($json, true);
var_dump($data);