Samp
API for Horizon Roleplay [hzgaming.net]
JSON for programs, websites and more
text
https://api.gamemonitoring.net/servers/526554json
{
"response": {
"steam_id": null,
"domain": null,
"id": 526554,
"ip": "213.32.6.232",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1770106636,
"score": null,
"last_online": 1776290419,
"icon": null,
"name": "Horizon Roleplay [hzgaming.net]",
"connect": "213.32.6.232:7777",
"request": "213.32.6.232:7777",
"map": "hzgaming.net",
"gamemode": "HZ:RP v2.4.47(o)",
"version": "0.3.7-R2",
"numplayers": 116,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 46,
"add_date": 1643531404,
"last_update": 1776290419,
"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": 72,
"language": "fr",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Code examples
php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/526554");
$data = json_decode($json, true);
var_dump($data);