API pentru Rust: City of Tarkov [MAIN]
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 245927,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90286661269234692",
"domain": null,
"id": 10661711,
"ip": "15.204.143.189",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Reston",
"description": "![Rust: City of Tarkov [MAIN]](https://i.imgur.com/FvedrW0.png)\nThe Official Rust: City of Tarkov Server!\n\nWipe Schedule: BP and Map wipes every month on Force-Wipe.\n\n- Explore the Open-World City of Tarkov Map.\n- Unique Custom Gamemode and Progression system.\n- Max team size: 5.\n- Be the first to complete a Questline to join the exclusive monthly giveaway!\n\nDiscord: discord.gg/wGM4gZMNuX\nVIP: store.rustarkov.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780725859,
"last_online": 1780800023,
"icon": null,
"name": "Rust: City of Tarkov [MAIN]",
"connect": "15.204.143.189:28015",
"request": "15.204.143.189:28017",
"map": "Tarkov City",
"gamemode": "Survival",
"version": "2627",
"numplayers": 5,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 68,
"add_date": 1764544793,
"last_update": 1780800023,
"banned": false,
"wipe": 1780595125,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 816,
"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/10661711");
$data = json_decode($json, true);
var_dump($data);