Valheim
के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/11190262json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11190262,
"ip": "216.201.78.60",
"port": 25565,
"query": 25566,
"color": 0,
"city": "The Hague",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776432756,
"score": 0,
"last_online": 1776161467,
"icon": null,
"name": null,
"connect": null,
"request": "216.201.78.60:25566",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": true,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772699108,
"last_update": 1776432756,
"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": 9119,
"language": "nl",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11190262");
$data = json_decode($json, true);
var_dump($data);