API pentru Shadow Void Crash
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286638132225024",
"domain": null,
"id": 11587395,
"ip": "89.117.72.86",
"port": 7777,
"query": 32015,
"project_id": null,
"color": 0,
"city": "New York",
"description": null,
"game": 1614550,
"owner": null,
"boosts": 1,
"last_offline": 1780470424,
"last_online": 1780833719,
"icon": null,
"name": "Shadow Void Crash",
"connect": "89.117.72.86:7777",
"request": "89.117.72.86:32015",
"map": "YourMapNamecrash",
"gamemode": "Astro Colony",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779357448,
"last_update": 1780833719,
"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": 73,
"language": "en",
"parked": false,
"app": {
"id": 1539923,
"steam_id": 1614550,
"name": "Astro Colony",
"url": "astro-colony"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11587395");
$data = json_decode($json, true);
var_dump($data);