API pentru A Core, If You Can Keep It
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286473990908952",
"domain": null,
"id": 11577848,
"ip": "136.35.35.100",
"port": 42690,
"query": 42691,
"project_id": null,
"color": 0,
"city": "Kansas City",
"description": null,
"game": 1621690,
"owner": null,
"boosts": 1,
"last_offline": 1780307051,
"last_online": 1780694530,
"icon": null,
"name": "A Core, If You Can Keep It",
"connect": "136.35.35.100:42690",
"request": "136.35.35.100:42691",
"map": null,
"gamemode": "Core Keeper",
"version": "1.1.2.10-bcc6",
"numplayers": 0,
"maxplayers": 3,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356897,
"last_update": 1780694530,
"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": 657,
"language": "en",
"parked": false,
"app": {
"id": 1560042,
"steam_id": 1621690,
"name": "Core Keeper",
"url": "core-keeper"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11577848");
$data = json_decode($json, true);
var_dump($data);