Minecraft
Minecraft Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/6796084json
{
"response": {
"steam_id": null,
"domain": "pvm.myserver.gs",
"id": 6796084,
"ip": "217.11.174.88",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Gravelines",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1774297350,
"score": 0,
"last_online": 1776107449,
"icon": null,
"name": "Minecraft Server",
"connect": "pvm.myserver.gs:25565",
"request": "217.11.174.88:25565",
"map": null,
"gamemode": null,
"version": "26w14a",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1733253608,
"last_update": 1776107449,
"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": 2734,
"language": "ka",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/6796084");
$data = json_decode($json, true);
var_dump($data);