Left 4 Dead 2
※17※【战役の仙行录】 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11257907json
{
"response": {
"steam_id": "90284536553537553",
"domain": null,
"id": 11257907,
"ip": "210.16.163.7",
"port": 3017,
"query": 3017,
"color": 0,
"city": "Beijing",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1775533926,
"score": 0,
"last_online": 1776382355,
"icon": null,
"name": "※17※【战役の仙行录】",
"connect": "210.16.163.7:3017",
"request": "210.16.163.7:3017",
"map": "c12m1_hilltop",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774555060,
"last_update": 1776382355,
"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": 12632,
"language": "zh",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11257907");
$data = json_decode($json, true);
var_dump($data);