Samp
API для RAGE RUSSIA
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10198169json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10198169,
"ip": "46.174.49.143",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Moscow",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1776630798,
"score": 5,
"last_online": 1776832929,
"icon": null,
"name": "RAGE RUSSIA",
"connect": "46.174.49.143:7777",
"request": "46.174.49.143:7777",
"map": "San Andreas",
"gamemode": "Unknown",
"version": "omp 1.5.8.0",
"numplayers": 0,
"maxplayers": 800,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1756394925,
"last_update": 1776832929,
"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": 462,
"language": "ru",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10198169");
$data = json_decode($json, true);
var_dump($data);