Samp
API pentru ••••••••• LAS VENTURAS GANG WARS •••••••••
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/4785035json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4785035,
"ip": "51.79.71.138",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Beauharnois",
"description": "",
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1776507805,
"score": 0,
"last_online": 1776823253,
"icon": null,
"name": "••••••••• LAS VENTURAS GANG WARS •••••••••",
"connect": "51.79.71.138:7777",
"request": "51.79.71.138:7777",
"map": "San Andreas",
"gamemode": "TDM/GANGS/DEATHMATCH",
"version": "omp 1.5.8.3124",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": null,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1718269491,
"last_update": 1776823253,
"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": 316,
"language": "en",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/4785035");
$data = json_decode($json, true);
var_dump($data);