Call of Duty 4: Modern Warfare
API pentru IceOps Hardcore HighXP - www.iceops.co
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/231388json
{
"response": {
"steam_id": null,
"domain": null,
"id": 231388,
"ip": "176.31.25.80",
"port": 28963,
"query": 28963,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": null,
"last_online": 1777565453,
"icon": null,
"name": "IceOps Hardcore HighXP - www.iceops.co",
"connect": "176.31.25.80:28963",
"request": "176.31.25.80:28963",
"map": "mp_cargoship",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 0,
"maxplayers": 34,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1583081796,
"last_update": 1777565453,
"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": 40,
"language": "fr",
"parked": false,
"app": {
"id": 1629111,
"steam_id": 7940,
"name": "Call of Duty 4: Modern Warfare",
"url": "call-of-duty-4-modern-warfare"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/231388");
$data = json_decode($json, true);
var_dump($data);