Team Fortress 2
API pentru Panda-Community.com #13 | Freak Fortress 2 | Dic Soupcan
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/6074030json
{
"response": {
"steam_id": "85568392920041080",
"domain": null,
"id": 6074030,
"ip": "193.38.251.81",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1775194331,
"score": 0,
"last_online": 1776181221,
"icon": null,
"name": "Panda-Community.com #13 | Freak Fortress 2 | Dic Soupcan",
"connect": "193.38.251.81:27015",
"request": "193.38.251.81:27015",
"map": "vsh_foreststation_c1",
"gamemode": "Freak Fortress 2: Rewrite (1.2.custom)",
"version": "10515055",
"numplayers": 14,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 45,
"add_date": 1727695536,
"last_update": 1776181221,
"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": 141,
"language": "de",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/6074030");
$data = json_decode($json, true);
var_dump($data);