---
title: "GetNodePeersByPeerId"
method: GET
path: "/{apiKey}/eth/v1/node/peers/{peerId}"
---

# GetNodePeersByPeerId

`GET /{apiKey}/eth/v1/node/peers/{peerId}`

Get peer. Retrieves data about the given peer.

## Path parameters

- `apiKey` string, required — <style> .custom-style { color: #048FF4; } </style> For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.
- `peerId` string, required — Cryptographic hash of a peer’s public key. [Read more](https://docs.libp2p.io/concepts/peer-id/)

## Response `200`

A peer

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

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
