API für Server Hosted by CRETSAN-HOST.COM
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11795865,
"ip": "5.175.247.165",
"port": 1137,
"query": 1137,
"project_id": null,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1781378739,
"last_online": 1781441565,
"icon": null,
"name": "Server Hosted by CRETSAN-HOST.COM",
"connect": "5.175.247.165:1137",
"request": "5.175.247.165:1137",
"map": "San Andreas",
"gamemode": "Grand Larceny",
"version": "0.3.7-R2",
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781378739,
"last_update": 1781441565,
"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": 1090,
"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/11795865");
$data = json_decode($json, true);
var_dump($data);