Call of Duty 4: Modern Warfare
COD4 TDM için API
Geniş bir entegrasyon yöntemleri yelpazesi sunuyoruz. Bunlardan herhangi birini kullanabilir veya JSON API'sini kullanarak kendinizinkini oluşturabilirsiniz. Yeni bir entegrasyon yöntemi ekleme öneriniz varsa, lütfen bizimle iletişime geçin. Bizimle iletişime geçin
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/244920json
{
"response": {
"steam_id": null,
"domain": null,
"id": 244920,
"ip": "89.234.183.99",
"port": 28960,
"query": 28960,
"color": 0,
"city": "Nanterre",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1774818132,
"score": 5,
"last_online": 1775934022,
"icon": null,
"name": "COD4 TDM",
"connect": "89.234.183.99:28960",
"request": "89.234.183.99:28960",
"map": "mp_strike",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386 build 1154 May 1 2022",
"numplayers": 8,
"maxplayers": 50,
"bots": 4,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1583081796,
"last_update": 1775934022,
"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": 19,
"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": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/244920");
$data = json_decode($json, true);
var_dump($data);