Cocksucker için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "90286974981514268",
"domain": null,
"id": 11798307,
"ip": "93.125.6.78",
"port": 42805,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Minsk",
"description": null,
"game": 219990,
"owner": null,
"boosts": 1,
"last_offline": 1781390040,
"last_online": 1781380829,
"icon": null,
"name": "Cocksucker",
"connect": "93.125.6.78:42805",
"request": "93.125.6.78:27016",
"map": "levels/world001.map",
"gamemode": "Grim Dawn",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 3,
"bots": 0,
"secured": false,
"private": false,
"country": "BY",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1781378904,
"last_update": 1781390040,
"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": 320,
"language": "be",
"parked": false,
"app": {
"id": 101,
"steam_id": 219990,
"name": "Grim Dawn",
"url": "grim-dawn"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11798307");
$data = json_decode($json, true);
var_dump($data);