API dla VFallen
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286299787842584",
"domain": null,
"id": 11624216,
"ip": "162.202.47.45",
"port": 9876,
"query": 9877,
"project_id": null,
"color": 0,
"city": "Manhattan",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780835064,
"last_online": 1780822403,
"icon": null,
"name": "VFallen",
"connect": "162.202.47.45:9876",
"request": "162.202.47.45:9877",
"map": "VRisingWorld",
"gamemode": "d4cb232a-91f9-4dca-8023-d14639f94385",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916136,
"last_update": 1780835064,
"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": 4210,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11624216");
$data = json_decode($json, true);
var_dump($data);