Piacevole: Beef Tagliata
API pentru Counter-Strike: Source
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/849156json
{
"response": {
"steam_id": null,
"domain": null,
"id": 849156,
"ip": "94.41.86.122",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Ufa",
"description": "",
"game": 657920,
"owner": null,
"boosts": 1,
"last_offline": 1775993516,
"score": null,
"last_online": 1776240044,
"icon": null,
"name": "Counter-Strike: Source",
"connect": "94.41.86.122:27015",
"request": "94.41.86.122:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike: Source",
"version": "w",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684655940,
"last_update": 1776240044,
"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": 1,
"language": "ru",
"parked": false,
"app": {
"id": 1665345,
"steam_id": 657920,
"name": "Piacevole: Beef Tagliata",
"url": "piacevole-beef-tagliata"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/849156");
$data = json_decode($json, true);
var_dump($data);