Samp
API für
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10481824json
{
"response": {
"steam_id": null,
"domain": "one.monser.ru",
"id": 10481824,
"ip": "185.71.66.13",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Moscow",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1776304912,
"score": 2.3,
"last_online": 1776304271,
"icon": null,
"name": null,
"connect": null,
"request": "185.71.66.13:7777",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 360,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 32,
"add_date": 1760961601,
"last_update": 1776304912,
"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": 159,
"language": "ru",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10481824");
$data = json_decode($json, true);
var_dump($data);