API pentru 24h Dust2 Only Server by g-factory.de | no AWP | Rank |
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90285146902823952",
"domain": null,
"id": 6846061,
"ip": "88.198.55.231",
"port": 27240,
"query": 27240,
"project_id": null,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1780470422,
"last_online": 1780785747,
"icon": null,
"name": "24h Dust2 Only Server by g-factory.de | no AWP | Rank |",
"connect": "88.198.55.231:27240",
"request": "88.198.55.231:27240",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 64,
"bots": 10,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1733679800,
"last_update": 1780785747,
"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": 2131,
"language": "de",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/6846061");
$data = json_decode($json, true);
var_dump($data);