Left 4 Dead 2
TunArund|三方战役|尸潮多特 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/6816344json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6816344,
"ip": "82.156.112.164",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Beijing",
"description": null,
"game": 550,
"owner": 126121,
"boosts": 1,
"last_offline": 1775279530,
"score": 0,
"last_online": 1776366628,
"icon": null,
"name": "TunArund|三方战役|尸潮多特",
"connect": "82.156.112.164:27015",
"request": "82.156.112.164:27015",
"map": "c13m1_alpinecreek",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1733478595,
"last_update": 1776366628,
"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": 899,
"language": "zh",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "amicecraig1480",
"avatar": "46bb503d-1144-4f58-841c-14d1b1ca6ddd.jpg",
"last_online": 1755246851
},
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/6816344");
$data = json_decode($json, true);
var_dump($data);