API pentru rusthurts.com - 3x Max8 (Wipe in ~1h)
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 40,
"fps_avg": 40,
"entities_count": 48128,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90286583299099667",
"domain": null,
"id": 763103,
"ip": "168.100.161.71",
"port": 28010,
"query": 28015,
"color": 0,
"city": "London",
"description": "\nWelcome to rusthurts!\nModded Rust servers, built from the ground up.\n\n⚠ We're a brand new community, come check us out!\n\nSome features of our 3x Max8 server:\n- Team limit: 8\n- Dynamic server slots up to 175\n- Custom maps, rotating every wipe\n- Shorter nights, longer days\n- Full base workbench\n- Cars spawn ready to drive\n- Free skins\n- Custom events\n- Instant crafting, smelting, researching, recycling, cooking, and mixing\n- And many more exclusive features and QoL improvements",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780553072,
"last_online": 1780590036,
"icon": null,
"name": "rusthurts.com - 3x Max8 (Wipe in ~1h)",
"connect": "168.100.161.71:28010",
"request": "168.100.161.71:28015",
"map": "rusthurts.com/discord",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1680789908,
"last_update": 1780590036,
"banned": false,
"wipe": 1780232233,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2588,
"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/763103");
$data = json_decode($json, true);
var_dump($data);