API dla FR TERRES INCONNUES DEBUTANT SOLO/DUO/TRIO SOFTPVP
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 92,
"fps_avg": 92,
"entities_count": 122679,
"world_seed": 1052025,
"world_size": 4096,
"steam_id": "90286581358878734",
"domain": null,
"id": 3850772,
"ip": "54.36.126.28",
"port": 28020,
"query": 28022,
"color": 0,
"city": "Roubaix",
"description": "\nBienvenue sur notre serveur d�butant SOFTPVP , passez sur le discord ou sur le site internet pour avoir toutes les informations sur nos 2 serveurs. Bon jeu !",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780587869,
"last_online": 1780584037,
"icon": null,
"name": "FR TERRES INCONNUES DEBUTANT SOLO/DUO/TRIO SOFTPVP",
"connect": "54.36.126.28:28020",
"request": "54.36.126.28:28022",
"map": "Procedural Map",
"gamemode": "Softcore",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1713217574,
"last_update": 1780587869,
"banned": false,
"wipe": 1778176665,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10353,
"language": "fr",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/3850772");
$data = json_decode($json, true);
var_dump($data);