Insurgency
API pentru KOR Madbots Coop Server #2
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/935347json
{
"response": {
"steam_id": "90284579173140508",
"domain": null,
"id": 935347,
"ip": "1.230.17.226",
"port": 27017,
"query": 27017,
"color": 0,
"city": "Gwanak-gu",
"description": "",
"game": 222880,
"owner": null,
"boosts": 1,
"last_offline": 1776285113,
"score": null,
"last_online": 1776518415,
"icon": null,
"name": "KOR Madbots Coop Server #2",
"connect": "1.230.17.226:27017",
"request": "1.230.17.226:27017",
"map": "nova_prospect",
"gamemode": "Insurgency",
"version": "2.4.2.4",
"numplayers": 12,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "KR",
"status": true,
"votes": 0,
"points": 91,
"add_date": 1684766473,
"last_update": 1776518415,
"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": 7,
"language": "ko",
"parked": false,
"app": {
"id": 13,
"steam_id": 222880,
"name": "Insurgency",
"url": "insurgency"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/935347");
$data = json_decode($json, true);
var_dump($data);