Rust
API pentru
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11488946json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488946,
"ip": "92.38.92.203",
"port": 28015,
"query": 28014,
"color": 0,
"city": "Kopeysk",
"description": "Bro, did you oversleep? No worries тАУ the wipe happened JUST NOW!\r\n The map is clean, x2 loot тАУ we're farming for fun, no grind. \r\n Stacks are increased тАУ building without the headache. \r\n Hop in within 5 minutes тАУ no need to catch up, everyone's equal. \r\n The pop is already growing. We're waiting for YOU!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776286272,
"score": 0,
"last_online": 1776055817,
"icon": null,
"name": null,
"connect": null,
"request": "92.38.92.203:28014",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1775936757,
"last_update": 1776286272,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10264,
"language": "ru",
"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/11488946");
$data = json_decode($json, true);
var_dump($data);