Counter-Strike
API für [K.lan] PubMansion
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/2020json
{
"response": {
"steam_id": 90071992547409920,
"domain": null,
"id": 2020,
"ip": "94.198.128.44",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Korolyov",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1773840121,
"score": null,
"last_online": 1776202862,
"icon": null,
"name": "[K.lan] PubMansion",
"connect": "94.198.128.44:27018",
"request": "94.198.128.44:27018",
"map": "aim_2mansion",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1501541155,
"last_update": 1776202862,
"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": 4755,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/2020");
$data = json_decode($json, true);
var_dump($data);