> For the complete documentation index, see [llms.txt](https://nownodes.gitbook.io/xmr-monero/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nownodes.gitbook.io/xmr-monero/monero-xmr/get-bans.md).

# Get bans

## Get list of banned IPs

> Retrieve the list of currently banned nodes by host or IP.

```json
{"openapi":"3.0.3","info":{"title":"Monero Daemon RPC API","version":"1.0.0"},"servers":[{"url":"https://xmr.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/json_rpc":{"post":{"tags":["get bans"],"summary":"Get list of banned IPs","description":"Retrieve the list of currently banned nodes by host or IP.","operationId":"getBans","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"string"},"method":{"type":"string"}}}}}},"responses":{"200":{"description":"List of banned nodes","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"jsonrpc":{"type":"string"},"result":{"type":"object","properties":{"bans":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"ip":{"type":"integer"},"seconds":{"type":"integer"}}}},"status":{"type":"string"},"untrusted":{"type":"boolean"}}}}}}}},"400":{"description":"Bad Request - missing or invalid parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}
```
