Project Zomboid
API pentru
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10872556json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10872556,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "Welcome to Project Phoenix RP!",
"game": 108600,
"owner": 151399,
"boosts": 1,
"last_offline": 1776124874,
"score": 0,
"last_online": 1775245811,
"icon": null,
"name": null,
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 7,
"points": 0,
"add_date": 1768318762,
"last_update": 1776124874,
"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": 6705,
"language": "ru",
"parked": true,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": {
"username": "dedys_123",
"avatar": "no.jpg",
"last_online": 1774542316
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10872556");
$data = json_decode($json, true);
var_dump($data);