API pentru (PvE) [US East] - "The Sanctuary" - discord.gg/MAINFRAME
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10541772,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Bangor",
"description": null,
"game": 1857950,
"owner": 146670,
"boosts": 1,
"last_offline": 1767938457,
"last_online": 1767070816,
"icon": null,
"name": "(PvE) [US East] - \"The Sanctuary\" - discord.gg/MAINFRAME",
"connect": null,
"request": null,
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": null,
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1762520877,
"last_update": 1767938457,
"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": 1384,
"language": "en",
"parked": true,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": {
"username": "SynfulRabyte",
"avatar": "5ca14400-ee89-4a7e-92ba-ca5e61b78b83.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10541772");
$data = json_decode($json, true);
var_dump($data);