API dla NurseMeat
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286547085794316",
"domain": null,
"id": 11577288,
"ip": "68.170.127.54",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Brainerd",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780499042,
"last_online": 1780592531,
"icon": null,
"name": "NurseMeat",
"connect": "68.170.127.54:7777",
"request": "68.170.127.54:27015",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356869,
"last_update": 1780592531,
"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": 783,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11577288");
$data = json_decode($json, true);
var_dump($data);