API для Simpa Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793990810,
"app": {
"id": 3249,
"name": "BeamNG.drive",
"steam_id": 284160,
"url": "beamngdrive"
},
"color": 0,
"connect": "2.34.166.110:30814",
"country": "IT",
"domain": null,
"game": 284160,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19727664,
"ip": "2.34.166.110",
"language": "it",
"last_update": 1794433653,
"map": "/levels/italy/info.json",
"maxplayers": 20,
"name": "Simpa Server",
"numplayers": 0,
"official": false,
"points": 0,
"port": 30814,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30814,
"request": "2.34.166.110:30814",
"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": "Верона",
"description": "Server Simpa",
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794433653,
"last_online": 1794092845,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 5902,
"wipe_period": null,
"tags": "Freeroam",
"ident": null,
"guests": true,
"modList": "/1771098828982-2004-2011-audi-a6-c6-early-access-0-1--0.1_modland(1)_modland_modland;/audi-rs3-sport-2023;/bmw-m3-e92e93-v1-2-0-38-x_1771101305_392582_Tuning_Version_v2.7_2023_by_TuningGarage (1);/bmw-m3-e92e93-v1-2-0-38-x_1771101305_392582_Tuning_Version_v2.7_2023_by_TuningGarage;/Fiat EVOByLoonzie_modland;/fiat panda 2011_modland_modland;/mercedes-benz-w222;/octavia1u_v2.7;/Volvo XC90 20152019;/Yamaha-motorcycle-mt07-73hp-214kmh-6-speed-manual;",
"partner": false,
"featured": false,
"location": "IT",
"modsTotal": 10,
"clientVersion": "2.7.0",
"modsTotalSize": 2303383735
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19727664");
$data = json_decode($json, true);
var_dump($data);