Skip to main content
GET
/
v1
/
users
/
{userId}
Get user by ID
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const user = await api.getUser("AeAOtR8TqKWyzG5apA1R")
{
  "id": "<string>",
  "walletAddress": "<string>",
  "avatarUrl": "<string>",
  "publicationId": "<string>",
  "name": "<string>",
  "bio": "<string>",
  "farcaster": {
    "username": "<string>",
    "displayName": "<string>",
    "fid": 123
  }
}

Path Parameters

userId
string
required

Unique identifier of the user

Response

User details retrieved successfully

id
string
required

Unique identifier for the user

publicationId
string
required

ID of the publication this user belongs to

walletAddress
string

Wallet address of the user

avatarUrl
string<uri>

URL to the user's avatar image

name
string

Display name of the user

bio
string

Brief biography of the user (max 500 characters)

Maximum length: 500
farcaster
object

Farcaster profile information, if linked

I