Subsistence
API pentru ***Who let the dogs out PVP***
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11180706json
{
"response": {
"steam_id": "90284357370085397",
"domain": null,
"id": 11180706,
"ip": "109.230.243.45",
"port": 7817,
"query": 7819,
"color": 0,
"city": "Miami",
"description": "Hunter rotations, community base, safe shelters nth and sth lakes, 60day offline decay",
"game": 418030,
"owner": null,
"boosts": 1,
"last_offline": 1774448517,
"score": 0,
"last_online": 1776250814,
"icon": null,
"name": "***Who let the dogs out PVP***",
"connect": "109.230.243.45:7817",
"request": "109.230.243.45:7819",
"map": "coldmap1",
"gamemode": "ColdGame",
"version": "13249",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772229633,
"last_update": 1776250814,
"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": 120,
"language": "en",
"parked": false,
"app": {
"id": 139,
"steam_id": 418030,
"name": "Subsistence",
"url": "subsistence"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11180706");
$data = json_decode($json, true);
var_dump($data);