API dla [EUR]LDA GAMES - STN
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90287023776913415",
"domain": null,
"id": 11810721,
"ip": "149.232.210.10",
"port": 7950,
"query": 7951,
"project_id": null,
"color": 0,
"city": "Marseille",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1781479388,
"last_online": 1781493646,
"icon": null,
"name": "[EUR]LDA GAMES - STN",
"connect": "149.232.210.10:7950",
"request": "149.232.210.10:7951",
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 1,
"points": 31,
"add_date": 1781479388,
"last_update": 1781493646,
"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": 2,
"language": "fr",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11810721");
$data = json_decode($json, true);
var_dump($data);