Counter-Strike
API for AtroCity.cz | PUB
JSON for programs, websites and more
text
https://api.gamemonitoring.net/servers/10012267json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10012267,
"ip": "185.180.2.49",
"port": 27349,
"query": 27349,
"color": 0,
"city": "Prague",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775001132,
"score": 0,
"last_online": 1776213621,
"icon": null,
"name": "AtroCity.cz | PUB",
"connect": "185.180.2.49:27349",
"request": "185.180.2.49:27349",
"map": "de_dust2_long_2012",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 1,
"maxplayers": 16,
"bots": 8,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1754994802,
"last_update": 1776213621,
"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": 3081,
"language": "cs",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Code examples
php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/10012267");
$data = json_decode($json, true);
var_dump($data);