Counter-Strike
API für CS.TEAMGAME.RO --> Friends & More
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10521109json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10521109,
"ip": "217.156.22.78",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Berceni",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1774553516,
"score": 0,
"last_online": 1776208212,
"icon": null,
"name": "CS.TEAMGAME.RO --> Friends & More",
"connect": "217.156.22.78:27015",
"request": "217.156.22.78:27015",
"map": "de_dust",
"gamemode": "Friends and More!",
"version": "1.1.2.7/Stdio",
"numplayers": 29,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RO",
"status": true,
"votes": 0,
"points": 94,
"add_date": 1761428965,
"last_update": 1776208212,
"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": 1580,
"language": "ro",
"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/10521109");
$data = json_decode($json, true);
var_dump($data);