Minecraft
API pentru - Minecraft Crew SMP - Apply at discord.gg/EjWXnwfYRj
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/7427050json
{
"response": {
"steam_id": null,
"domain": "mccsmp.myserver.gs",
"id": 7427050,
"ip": "216.183.120.176",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Montreal",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1773960123,
"score": 0,
"last_online": 1776844838,
"icon": null,
"name": "- Minecraft Crew SMP - Apply at discord.gg/EjWXnwfYRj",
"connect": "mccsmp.myserver.gs:25565",
"request": "216.183.120.176:25565",
"map": null,
"gamemode": null,
"version": "Paper 1.21.11",
"numplayers": 2,
"maxplayers": 15,
"bots": 0,
"secured": null,
"private": null,
"country": "CA",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1739203414,
"last_update": 1776844838,
"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": 986,
"language": "en",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/7427050");
$data = json_decode($json, true);
var_dump($data);