Left 4 Dead
Valve Left4Dead Chile Server (srcds1020-scl1.241.2) için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/1784338json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1784338,
"ip": "155.133.249.206",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Huechuraba",
"description": "",
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1775582007,
"score": null,
"last_online": 1776637213,
"icon": null,
"name": "Valve Left4Dead Chile Server (srcds1020-scl1.241.2)",
"connect": "155.133.249.206:27016",
"request": "155.133.249.206:27016",
"map": "l4d_hospital05_rooftop",
"gamemode": "L4D - Co-op - Normal",
"version": "1.0.4.5",
"numplayers": 4,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "CL",
"status": true,
"votes": 0,
"points": 96,
"add_date": 1699706008,
"last_update": 1776637213,
"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": 5,
"language": "es",
"parked": false,
"app": {
"id": 18,
"steam_id": 500,
"name": "Left 4 Dead",
"url": "left-4-dead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/1784338");
$data = json_decode($json, true);
var_dump($data);