Counter-Strike
API pentru #FREESERVEROK : [GUNGAME]
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/1926json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1926,
"ip": "82.140.67.197",
"port": 27019,
"query": 27019,
"color": 0,
"city": "St Petersburg",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1768914115,
"score": null,
"last_online": 1776207665,
"icon": null,
"name": "#FREESERVEROK : [GUNGAME]",
"connect": "82.140.67.197:27019",
"request": "82.140.67.197:27019",
"map": "fy_pool_day",
"gamemode": "[LEADER: N/A]",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1501541153,
"last_update": 1776207665,
"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": 4479,
"language": "ru",
"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/1926");
$data = json_decode($json, true);
var_dump($data);