Counter-Strike 2
API pentru ███ ➥ CS2LAND.NET [CS2] DM Deathmatch #7🔥"
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10399019json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10399019,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"HR_0C__MG9\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/0abb1e46-b1c5-466a-8c71-654b0c136e08.png\"}}},{\"id\":\"o_4UhmKDBA\",\"type\":\"paragraph\",\"data\":{\"text\":\"connect 45.95.31.2:27315\"}}]",
"game": 730,
"owner": 86208,
"boosts": 1,
"last_offline": 1765414864,
"score": 5,
"last_online": 1764523210,
"icon": null,
"name": "███ ➥ CS2LAND.NET [CS2] DM Deathmatch #7🔥\"",
"connect": null,
"request": null,
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1759053920,
"last_update": 1765414864,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12426,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "imarafon",
"avatar": "055fd301-6aa2-4cbe-8a4f-8ce0cd51f901.jpg",
"last_online": 1774024877
},
"mods": [
{
"id": 5,
"name": "Admin System"
},
{
"id": 34,
"name": "Bhop"
}
],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10399019");
$data = json_decode($json, true);
var_dump($data);