Operation: Harsh Doorstop
API pentru [TP]Tantrums Progeny Server
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/8858271json
{
"response": {
"steam_id": "90285030462255110",
"domain": null,
"id": 8858271,
"ip": "45.45.238.51",
"port": 7777,
"query": 27005,
"color": 0,
"city": "Chicago",
"description": "[AdvancedMap](https://steamcommunity.com/sharedfiles/filedetails/?id=2951068492)\r\n[District](https://steamcommunity.com/sharedfiles/filedetails/?id=3148841738)\r\n[European_town](https://steamcommunity.com/sharedfiles/filedetails/?id=3178450381)\r\n[null](https://steamcommunity.com/sharedfiles/filedetails/?id=null)\r\n[Stalingrad](https://steamcommunity.com/sharedfiles/filedetails/?id=3401640887)\r\n[Vao](https://steamcommunity.com/sharedfiles/filedetails/?id=3285049160)",
"game": 736590,
"owner": null,
"boosts": 1,
"last_offline": 1776013935,
"score": 0,
"last_online": 1777530022,
"icon": null,
"name": "[TP]Tantrums Progeny Server",
"connect": "45.45.238.51:7777",
"request": "45.45.238.51:27005",
"map": "Test Map (AAS)",
"gamemode": "Advance and Secure",
"version": "85",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1746304514,
"last_update": 1777530022,
"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": 6,
"language": "en",
"parked": false,
"app": {
"id": 52393,
"steam_id": 736590,
"name": "Operation: Harsh Doorstop",
"url": "operation-harsh-doorstop"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/8858271");
$data = json_decode($json, true);
var_dump($data);