API dla GayMen Gaming
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90287003057872905",
"domain": null,
"id": 11802958,
"ip": "193.11.164.36",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Skövde",
"description": ":smile:",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781463260,
"last_online": 1781484631,
"icon": null,
"name": "GayMen Gaming",
"connect": "193.11.164.36:16261",
"request": "193.11.164.36:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "SE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1781463260,
"last_update": 1781484631,
"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": 3702,
"language": "sv",
"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/11802958");
$data = json_decode($json, true);
var_dump($data);