Counter-Strike
API pentru -=[-T--]=- Paintball | by terrorkom-clan.de
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/378451json
{
"response": {
"steam_id": "90284330002500618",
"domain": null,
"id": 378451,
"ip": "45.129.181.166",
"port": 28035,
"query": 28035,
"color": 0,
"city": "Nuremberg",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775227933,
"score": null,
"last_online": 1776233446,
"icon": null,
"name": "-=[-T--]=- Paintball | by terrorkom-clan.de",
"connect": "45.129.181.166:28035",
"request": "45.129.181.166:28035",
"map": "gg_fy_inferno",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1597713031,
"last_update": 1776233446,
"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": 4890,
"language": "de",
"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/378451");
$data = json_decode($json, true);
var_dump($data);