Swords 'n Magic and Stuff
The Game Chicken için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11487987json
{
"response": {
"steam_id": "90285206614507549",
"domain": null,
"id": 11487987,
"ip": "71.143.157.67",
"port": 7783,
"query": 27018,
"color": 0,
"city": "Atlanta",
"description": null,
"game": 810040,
"owner": null,
"boosts": 1,
"last_offline": 1777388606,
"score": 0,
"last_online": 1777687325,
"icon": null,
"name": "The Game Chicken",
"connect": "71.143.157.67:7783",
"request": "71.143.157.67:27018",
"map": "Tirawyn",
"gamemode": "Unreal Test!",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774979901,
"last_update": 1777687325,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 14,
"language": "en",
"parked": false,
"app": {
"id": 47126,
"steam_id": 810040,
"name": "Swords 'n Magic and Stuff",
"url": "swords-n-magic-and-stuff"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11487987");
$data = json_decode($json, true);
var_dump($data);