API pentru The VDeadlock Protocol
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286978427552769",
"domain": null,
"id": 11792099,
"ip": "180.194.218.43",
"port": 42002,
"query": 42007,
"project_id": null,
"color": 0,
"city": "Zamboanga City",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1781377340,
"last_online": 1781410849,
"icon": null,
"name": "The VDeadlock Protocol",
"connect": "180.194.218.43:42002",
"request": "180.194.218.43:42007",
"map": "VRisingWorld",
"gamemode": "c0424b3d-69fb-46f1-b421-25c92e624066",
"version": "0.0.0.1",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "PH",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1781377340,
"last_update": 1781410849,
"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": 300,
"language": "tl",
"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/11792099");
$data = json_decode($json, true);
var_dump($data);