Call of Duty 4: Modern Warfare
HCL.hr CoD4 Hardcore için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/383907json
{
"response": {
"steam_id": null,
"domain": null,
"id": 383907,
"ip": "185.244.92.89",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Nedelišće",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": null,
"last_online": 1777567873,
"icon": null,
"name": "HCL.hr CoD4 Hardcore",
"connect": "185.244.92.89:28960",
"request": "185.244.92.89:28960",
"map": "mp_crash",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": true,
"country": "HR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1597718159,
"last_update": 1777567873,
"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": 71,
"language": "hr",
"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": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/383907");
$data = json_decode($json, true);
var_dump($data);