Rust
API pentru Name is not set on server
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/8086989json
{
"response": {
"steam_id": null,
"domain": null,
"id": 8086989,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "![[EU] TRUE JARS | NOOB FRIENDLY | REBALANCED VANILLA](https://jars.sytes.net:7999/argemia.jpg)\nJARS - Just Another Rust Server\r\n\r\nPeacefull place for beginners, where they can learn how to play\r\nLow online around 4-10 players\r\n\r\nRebalanced vanilla with different(x3-x10) drop of resouces\r\nDefault stack sizes\r\nMinicopters spawns on road\r\nNo Wipe BP's\r\nFeel free on using you're time without grind every wipe, YAY!",
"game": 252490,
"owner": 117431,
"boosts": 1,
"last_offline": 1754065480,
"score": 0,
"last_online": 1751287819,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1741599849,
"last_update": 1754065480,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": true,
"hide_address": false,
"hide_query": false,
"position_game": 9538,
"language": "pl",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Deathvvish",
"avatar": "b96b5a2b-97c7-4e69-af57-bc7fe37116ed.jpg",
"last_online": 1751746327
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/8086989");
$data = json_decode($json, true);
var_dump($data);