Counter-Strike
API pentru Katujemy.eu [COD 301 LVL | RESET 6 MARCA - 19:00]
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/2706314json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2706314,
"ip": "54.38.48.3",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Warsaw",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1772819547,
"score": null,
"last_online": 1776213617,
"icon": null,
"name": "Katujemy.eu [COD 301 LVL | RESET 6 MARCA - 19:00]",
"connect": "54.38.48.3:27015",
"request": "54.38.48.3:27015",
"map": "de_dust2_long",
"gamemode": "× COD 301LVL ×",
"version": "1.1.2.7/Stdio",
"numplayers": 12,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 57,
"add_date": 1706197570,
"last_update": 1776213617,
"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": 2072,
"language": "pl",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/2706314");
$data = json_decode($json, true);
var_dump($data);