API pentru Project Scumzoid - Permadeath
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"build": 115523,
"extraFlags": 1,
"nameHeaderRaw": "30341c020302",
"statusFlags": 32,
"type": 1,
"unknownStatusFlags": 32,
"steam_id": null,
"domain": null,
"id": 11738802,
"ip": "64.31.28.187",
"port": 7002,
"query": 7002,
"color": 0,
"city": "New York",
"description": null,
"game": 513710,
"owner": null,
"boosts": 1,
"last_offline": 1780491836,
"last_online": 1780597319,
"icon": null,
"name": "Project Scumzoid - Permadeath",
"connect": "64.31.28.187:7002",
"request": "64.31.28.187:7002",
"map": null,
"gamemode": "community-hosted",
"version": "1.2.3.2.115523",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780412896,
"last_update": 1780597319,
"banned": false,
"wipe": null,
"official": false,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1992,
"language": "en",
"parked": false,
"app": {
"id": 11540,
"steam_id": 513710,
"name": "SCUM",
"url": "scum"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11738802");
$data = json_decode($json, true);
var_dump($data);