Counter-Strike 2
API für Name is not set on server
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/5249060json
{
"response": {
"steam_id": null,
"domain": null,
"id": 5249060,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"ocTUYOs0Ik\",\"type\":\"paragraph\",\"data\":{\"text\":\"BIG-GAMING\\nНаши сайт https://big-gaming.ru/\\nMirage | 0+ - 5.178.87.65:27415\\nsendstoyn - 5.178.87.65:27515 \\n\\n\"}}]",
"game": 730,
"owner": 60085,
"boosts": 1,
"last_offline": 1754065480,
"score": 5,
"last_online": 1750954227,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1721315167,
"last_update": 1754065480,
"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": 11533,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "youtubecobra",
"avatar": "18e39cc4-979c-4708-9e2d-b15baf7a7623.jpg",
"last_online": 1761333422
},
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/5249060");
$data = json_decode($json, true);
var_dump($data);