Synergy
API pentru C8H10 For Synergy
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11492279json
{
"response": {
"steam_id": "90285619493892106",
"domain": null,
"id": 11492279,
"ip": "111.228.1.208",
"port": 21060,
"query": 21060,
"color": 0,
"city": "Beijing",
"description": null,
"game": 17520,
"owner": 193758,
"boosts": 1,
"last_offline": 1778402867,
"score": 0,
"last_online": 1778515946,
"icon": null,
"name": "C8H10 For Synergy",
"connect": "111.228.1.208:21060",
"request": "111.228.1.208:21060",
"map": "d1_trainstation_05",
"gamemode": "Synergy 25.3",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1778402867,
"last_update": 1778515946,
"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": 5,
"language": "zh",
"parked": false,
"app": {
"id": 34,
"steam_id": 17520,
"name": "Synergy",
"url": "synergy"
},
"server_owner": {
"username": "cici8705",
"avatar": "no.jpg",
"last_online": 1778476548
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11492279");
$data = json_decode($json, true);
var_dump($data);