Counter-Strike
API pentru > SECTOR > GUNGAME International [Combos] 18+
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/330261json
{
"response": {
"steam_id": null,
"domain": null,
"id": 330261,
"ip": "149.202.80.215",
"port": 27022,
"query": 27022,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775713323,
"score": null,
"last_online": 1776430837,
"icon": null,
"name": "> SECTOR > GUNGAME International [Combos] 18+",
"connect": "149.202.80.215:27022",
"request": "149.202.80.215:27022",
"map": "fy_snow_boom",
"gamemode": "INT.SECTOR.BG",
"version": "1.1.2.7/Stdio",
"numplayers": 3,
"maxplayers": 32,
"bots": 23,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1592168638,
"last_update": 1776430837,
"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": 3428,
"language": "fr",
"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/330261");
$data = json_decode($json, true);
var_dump($data);