Counter-Strike: Source
API pentru [CSSv34] l Позитивный Паблик l [18+]
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10454658json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10454658,
"ip": "37.230.210.173",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1771148464,
"score": 0,
"last_online": 1776217843,
"icon": null,
"name": "[CSSv34] l Позитивный Паблик l [18+]",
"connect": "37.230.210.173:27015",
"request": "37.230.210.173:27015",
"map": "aim_deagle7k",
"gamemode": "★Пушки CS:GO★",
"version": "1.0.0.34",
"numplayers": 0,
"maxplayers": 37,
"bots": 1,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1760087405,
"last_update": 1776217843,
"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": 1310,
"language": "ru",
"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/10454658");
$data = json_decode($json, true);
var_dump($data);