Unturned
API pentru [JPN] taktie's PvP Server <OPkits|Tpa|Home>
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11386599json
{
"response": {
"steam_id": "85568392935999254",
"domain": null,
"id": 11386599,
"ip": "162.43.27.157",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Chiyoda City",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1774596278,
"score": 0,
"last_online": 1776800481,
"icon": "https://imgur.com/8wJccql.png",
"name": "[JPN] taktie's PvP Server <OPkits|Tpa|Home>",
"connect": "162.43.27.157:27015",
"request": "162.43.27.157:27015",
"map": "Washington",
"gamemode": "Main dish is Vehicle!! WW2 BattleField",
"version": "3.26.1.1",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774596278,
"last_update": 1776800481,
"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": 637,
"language": "ja",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11386599");
$data = json_decode($json, true);
var_dump($data);