Rust
API pentru [US] Stevious 2x Main | Vanilla | 4/23
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10661936json
{
"response": {
"steam_id": "90285029420870676",
"domain": null,
"id": 10661936,
"ip": "168.100.163.72",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "![[US] Stevious 2x Main | Vanilla | 4/23](https://cdn.rustlegends.com/Stevious_2x_header.png)\nWeekly wipes and the following modifications: \r\n\r\n2x Gather Rates (2.5x for Sulfur and Wood) \r\nHalf smelt and crafting speeds (Vanilla for raiding items) \r\nBuilding and Level 1 Workbench blueprints unlocked \r\nComponent System loot tables (Junk items removed) \r\n\r\nVisit https://stevious.io for VIP (Queue Skip) and Rules / Discord information.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194329,
"score": 0,
"last_online": 1777309825,
"icon": null,
"name": "[US] Stevious 2x Main | Vanilla | 4/23",
"connect": "168.100.163.72:28010",
"request": "168.100.163.72:28015",
"map": "stevious.io/discord",
"gamemode": "Rust",
"version": "2623",
"numplayers": 21,
"maxplayers": 240,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1764544842,
"last_update": 1777309825,
"banned": false,
"wipe": 1776974309,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1124,
"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/10661936");
$data = json_decode($json, true);
var_dump($data);