Subsistence
API pentru
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11488352json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488352,
"ip": "209.145.49.167",
"port": 34900,
"query": 34915,
"color": 0,
"city": "St Louis",
"description": "this Server is hosted by G-Portal.com",
"game": 418030,
"owner": null,
"boosts": 1,
"last_offline": 1776253871,
"score": 0,
"last_online": 1776169816,
"icon": null,
"name": null,
"connect": null,
"request": "209.145.49.167:34915",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1775482343,
"last_update": 1776253871,
"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": 210,
"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/11488352");
$data = json_decode($json, true);
var_dump($data);