Pirate Isle için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"fps": 218,
"fps_avg": 219,
"entities_count": 45335,
"world_seed": 5432189,
"world_size": 3000,
"steam_id": "90286616239176732",
"domain": null,
"id": 11511462,
"ip": "204.186.144.94",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Lehighton",
"description": "Welcome to the land of bandits and pirates, outlaws as you may say! Fridays and Mondays I do server updates/restarts each week around 12am EST. Monthly server. Host-PirateC0de",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780623854,
"last_online": 1780633827,
"icon": null,
"name": "Pirate Isle",
"connect": "204.186.144.94:28015",
"request": "204.186.144.94:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353848,
"last_update": 1780633827,
"banned": false,
"wipe": 1780623932,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4831,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11511462");
$data = json_decode($json, true);
var_dump($data);