Counter-Strike: Source
API pentru █ KuroNeko [5vs5 | Mitad 1/2: 4.22 (1 - 2) ✿ A] by-rchit
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/7966874json
{
"response": {
"steam_id": "85568392935679112",
"domain": null,
"id": 7966874,
"ip": "45.235.98.241",
"port": 27060,
"query": 27060,
"color": 0,
"city": "Córdoba",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1772246497,
"score": 0,
"last_online": 1776140413,
"icon": null,
"name": "█ KuroNeko [5vs5 | Mitad 1/2: 4.22 (1 - 2) ✿ A] by-rchit",
"connect": "45.235.98.241:27060",
"request": "45.235.98.241:27060",
"map": "de_dust2",
"gamemode": "█★Match Making★█",
"version": "9540945",
"numplayers": 10,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 79,
"add_date": 1741008904,
"last_update": 1776140413,
"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": 144,
"language": "es",
"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/7966874");
$data = json_decode($json, true);
var_dump($data);