API dla Northen Country Roleplay | HITS!
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11715520,
"ip": "103.253.213.104",
"port": 7777,
"query": 7777,
"project_id": null,
"color": 0,
"city": "Jakarta",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1780499042,
"last_online": 1780713779,
"icon": null,
"name": "Northen Country Roleplay | HITS!",
"connect": "103.253.213.104:7777",
"request": "103.253.213.104:7777",
"map": "NC Xenophile",
"gamemode": "_NC:Build 29.1t.h",
"version": "omp 1.5.8.3079",
"numplayers": 3,
"maxplayers": 204,
"bots": 0,
"secured": null,
"private": false,
"country": "ID",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780301682,
"last_update": 1780713779,
"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": 1014,
"language": "id",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11715520");
$data = json_decode($json, true);
var_dump($data);