API dla just a random 1.5x noob friendly TS
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 135514,
"world_seed": 1583136569,
"world_size": 5000,
"steam_id": "90286743204880387",
"domain": null,
"id": 6126065,
"ip": "89.28.237.41",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": "\nHosted By Pine Hosting \r\n Just a sever for me and my friends \r\n 2x gather\r\n 3x smelt speed\r\n 1.5x loot\r\n pvp at monuments\r\n NO INSIDING\r\n NO RULES ON RAIDING\r\n server is not really pve its just that no one play the server\r\n it is YOUR job to know the rules\r\n For legal reasons this is a test server\r\n and also i do not make any money off of this server",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780906460,
"last_online": 1780939240,
"icon": null,
"name": "just a random 1.5x noob friendly TS",
"connect": "89.28.237.41:28015",
"request": "89.28.237.41:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1727883623,
"last_update": 1780939240,
"banned": false,
"wipe": 1780855541,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3648,
"language": "en",
"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/6126065");
$data = json_decode($json, true);
var_dump($data);