LoyLoy için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "90286893149523968",
"domain": null,
"id": 11695838,
"ip": "194.233.70.175",
"port": 28000,
"query": 28001,
"project_id": null,
"color": 0,
"city": "Singapore",
"description": null,
"game": 1419850,
"owner": null,
"boosts": 1,
"last_offline": 1780402454,
"last_online": 1781207462,
"icon": null,
"name": "LoyLoy",
"connect": "194.233.70.175:28000",
"request": "194.233.70.175:28001",
"map": "The Island",
"gamemode": "Saleblazers",
"version": "0.21.0.4",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780226020,
"last_update": 1781207462,
"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": 25,
"language": "en",
"parked": false,
"app": {
"id": 1578268,
"steam_id": 1419850,
"name": "Saleblazers",
"url": "saleblazers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11695838");
$data = json_decode($json, true);
var_dump($data);