Call of Duty 4: Modern Warfare
API für C4S SoftCore TDM | cod4-server.com
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/240772json
{
"response": {
"steam_id": null,
"domain": null,
"id": 240772,
"ip": "178.33.157.21",
"port": 28958,
"query": 28958,
"color": 0,
"city": "Paris",
"description": "",
"game": 7940,
"owner": null,
"boosts": 1,
"last_offline": 1773545564,
"score": null,
"last_online": 1775949013,
"icon": null,
"name": "C4S SoftCore TDM | cod4-server.com",
"connect": "178.33.157.21:28958",
"request": "178.33.157.21:28958",
"map": "mp_backlot",
"gamemode": "Call of Duty 4 - Modern Warfare",
"version": "CoD4 X - linux-i386-custom build 0 Aug 7 2023",
"numplayers": 12,
"maxplayers": 50,
"bots": 6,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 68,
"add_date": 1583081798,
"last_update": 1775949013,
"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": 4,
"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": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/240772");
$data = json_decode($json, true);
var_dump($data);