API pentru Friend Not Foe / PvE Community / Australasia
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 53,
"fps_avg": 52,
"entities_count": 85138,
"world_seed": 1573,
"world_size": 3600,
"steam_id": "90286566773820416",
"domain": null,
"id": 763203,
"ip": "103.62.51.209",
"port": 49105,
"query": 49106,
"color": 0,
"city": "Sydney",
"description": "\nEasy going & newman friendly PvE server with a focus on environmental survival, roleplaying, events & community. This lightly modded server features murderous bots, more animals, slightly increased gather rates & reduced upkeep cost.\n\n - This is an English speaking server based in Australia, everyone welcome.\n - No raiding or killing - if you see trouble use '/admin please' in chat.\n - We wipe biweekly, with a Purge the night before.\n\nView webpage for more details.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780509838,
"last_online": 1780557626,
"icon": null,
"name": "Friend Not Foe / PvE Community / Australasia",
"connect": "103.62.51.209:49105",
"request": "103.62.51.209:49106",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 3,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1680789936,
"last_update": 1780557626,
"banned": false,
"wipe": 1779396304,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 920,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/763203");
$data = json_decode($json, true);
var_dump($data);