API pentru Mythical gaming
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": 90286592313103380,
"domain": null,
"id": 11209509,
"ip": "209.145.54.18",
"port": 30300,
"query": 30315,
"color": 0,
"city": "St Louis",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780460051,
"last_online": 1780588970,
"icon": null,
"name": "Mythical gaming",
"connect": "209.145.54.18:30300",
"request": "209.145.54.18:30315",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772700720,
"last_update": 1780588970,
"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": 581,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11209509");
$data = json_decode($json, true);
var_dump($data);