V Rising
API pentru wayhaven
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11116952json
{
"response": {
"steam_id": "90285318258731033",
"domain": null,
"id": 11116952,
"ip": "173.201.36.138",
"port": 20370,
"query": 20371,
"color": 0,
"city": "St Louis",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1777845140,
"score": 0,
"last_online": 1778628031,
"icon": null,
"name": "wayhaven",
"connect": "173.201.36.138:20370",
"request": "173.201.36.138:20371",
"map": "VRisingWorld",
"gamemode": "37c8aba8-6430-4b3d-b7f8-7ba208fe3475",
"version": "0.0.0.1",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 36,
"add_date": 1770112952,
"last_update": 1778628031,
"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": 51,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11116952");
$data = json_decode($json, true);
var_dump($data);