Team Fortress 2
API pentru gm.link/u170377 OCM TF2 Servert
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11143335json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11143335,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 440,
"owner": 170377,
"boosts": 1,
"last_offline": 1772689903,
"score": 0,
"last_online": 1771770614,
"icon": null,
"name": "gm.link/u170377 OCM TF2 Servert",
"connect": null,
"request": null,
"map": "ctf_2fort",
"gamemode": "Team Fortress",
"version": null,
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": true,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1771697708,
"last_update": 1772689903,
"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": 2204,
"language": "nl",
"parked": true,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": {
"username": "thebimmaster",
"avatar": "82ec4eff-52b1-4b3f-87db-322676886be9.jpg",
"last_online": 1775386688
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11143335");
$data = json_decode($json, true);
var_dump($data);