API pentru Taco Bell's Bathroom Palace
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 129,
"fps_avg": 122,
"entities_count": 73938,
"world_seed": 982482359,
"world_size": 3500,
"steam_id": "90285554305530881",
"domain": null,
"id": 11502176,
"ip": "51.79.81.203",
"port": 17160,
"query": 17161,
"color": 0,
"city": "Montreal",
"description": "Ever be at Taco Bell. Enjoying a nice Cheesy Gordita Crunch, then BAM!!!! GOTTA poo.... Well here is where you poo. Welcome to The bathroom of Taco Bell",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780548818,
"last_online": 1779916830,
"icon": null,
"name": "Taco Bell's Bathroom Palace",
"connect": "51.79.81.203:17160",
"request": "51.79.81.203:17161",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207193,
"last_update": 1780548818,
"banned": false,
"wipe": 1778191445,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11516,
"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/11502176");
$data = json_decode($json, true);
var_dump($data);