Samp
API für [ENG] WTLS 2
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10233055json
{
"response": {
"steam_id": null,
"domain": "s2.gta-multiplayer.cz",
"id": 10233055,
"ip": "176.31.198.245",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1772401890,
"score": 0,
"last_online": 1776361220,
"icon": null,
"name": "[ENG] WTLS 2",
"connect": "s2.gta-multiplayer.cz:7777",
"request": "176.31.198.245:7777",
"map": "San Andreas",
"gamemode": "Freeroam RP Cops Race Gangs",
"version": "0.3.7-R2",
"numplayers": 223,
"maxplayers": 400,
"bots": 0,
"secured": null,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1756767043,
"last_update": 1776361220,
"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": 42,
"language": "fr",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10233055");
$data = json_decode($json, true);
var_dump($data);