API pentru chasejohnstonfactor
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286448923143174",
"domain": null,
"id": 11709351,
"ip": "173.90.31.13",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Wadsworth",
"description": null,
"game": 427410,
"owner": null,
"boosts": 1,
"last_offline": 1780589610,
"last_online": 1780275664,
"icon": null,
"name": "chasejohnstonfactor",
"connect": "173.90.31.13:7777",
"request": "173.90.31.13:27015",
"map": null,
"gamemode": "Abiotic Factor",
"version": "1.0.0.6",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780263015,
"last_update": 1780589610,
"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": 3058,
"language": "en",
"parked": false,
"app": {
"id": 1611062,
"steam_id": 427410,
"name": "Abiotic Factor",
"url": "abiotic-factor"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11709351");
$data = json_decode($json, true);
var_dump($data);