Counter-Strike: Source
API pentru [ Vanilla-Surf ] DM|FastDL|100Tick|Rank ~ GFGM8.#
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/1520926json
{
"response": {
"steam_id": "90285015048414215",
"domain": null,
"id": 1520926,
"ip": "161.97.130.144",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Lauterbourg",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1777509202,
"score": null,
"last_online": 1777597876,
"icon": null,
"name": "[ Vanilla-Surf ] DM|FastDL|100Tick|Rank ~ GFGM8.#",
"connect": "161.97.130.144:27016",
"request": "161.97.130.144:27016",
"map": "surf_fruits",
"gamemode": "SURF:Deathmatch ~ gfgm8.xyz",
"version": "9540945",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1697550511,
"last_update": 1777597876,
"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": 869,
"language": "fr",
"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/1520926");
$data = json_decode($json, true);
var_dump($data);