Samp
API für [ENG] WTLS 2
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/526603json
{
"response": {
"steam_id": null,
"domain": null,
"id": 526603,
"ip": "51.254.21.27",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Strasbourg",
"description": "",
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1772401891,
"score": null,
"last_online": 1776361220,
"icon": null,
"name": "[ENG] WTLS 2",
"connect": "51.254.21.27:7777",
"request": "51.254.21.27: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": 1643531422,
"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": 37,
"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/526603");
$data = json_decode($json, true);
var_dump($data);