---
title: "Get peer"
method: GET
path: "/eth/v1/node/peers/{peer_id}"
tags: ["Node"]
---

# Get peer

`GET /eth/v1/node/peers/{peer_id}`

## Request

- Base URL: `eth2-beacon-mainnet.nodereal.io/v1/api_key` (relative, and the document’s source URL is not known)
- URL: `eth2-beacon-mainnet.nodereal.io/v1/api_key/eth/v1/node/peers/{peer_id}`
- Auth: none declared

Retrieves data about the given peer

## Path parameters

- `peer_id` string, required: Cryptographic hash of a peer’s public key. [Read more](https://docs.libp2p.io/concepts/peer-id/)

## Response `200`

Request successful

- object
  - `data` object
    - `peer_id` string: Cryptographic hash of a peer’s public key. [Read more](https://docs.libp2p.io/concepts/peer-id/)
    - `enr` string, nullable: Ethereum node record. [Read more](https://eips.ethereum.org/EIPS/eip-778)
    - `last_seen_p2p_address` string: Multiaddrs used in last peer connection.
    - `state` 'disconnected' | 'connecting' | 'connected' | 'disconnecting'
    - `direction` 'inbound' | 'outbound'

## Other responses

- `400`: The peer ID supplied could not be parsed
- `404`: Peer not found
- `500`: Beacon node internal error.

---

[API](https://skmtc.dev/nodereal/apis/eth-beacon-node-api.md) - [All operations](https://skmtc.dev/nodereal/apis/eth-beacon-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/eth-beacon-node-api/revisions/1878ea8657a1?raw)
