Survive the Nights
API pentru Shmyakos
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11015780json
{
"response": {
"steam_id": "90284408895942676",
"domain": null,
"id": 11015780,
"ip": "176.57.171.81",
"port": 28100,
"query": 28115,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1775345529,
"score": 0,
"last_online": 1776316243,
"icon": null,
"name": "Shmyakos",
"connect": "176.57.171.81:28100",
"request": "176.57.171.81:28115",
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769943197,
"last_update": 1776316243,
"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": "de",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11015780");
$data = json_decode($json, true);
var_dump($data);