API dla [ESP/LATAM][PVE][B42] TIERRA DE LOBOS | Nivel Desafío |
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286930563898370,
"domain": null,
"id": 11787152,
"ip": "172.240.18.199",
"port": 27270,
"query": 27270,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": "Servidor PVE en español. Loot escaso, mundo persistente. Modo desafío. Aquí cada decisión cuenta. RV Interior. Mods Custom.",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781377023,
"last_online": 1781392223,
"icon": null,
"name": "[ESP/LATAM][PVE][B42] TIERRA DE LOBOS | Nivel Desafío |",
"connect": "172.240.18.199:27270",
"request": "172.240.18.199:27270",
"map": "map_distanciado;DawnTown;HavenF",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 4,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 70,
"add_date": 1781377023,
"last_update": 1781392223,
"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": 136,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11787152");
$data = json_decode($json, true);
var_dump($data);