Available

Is Subname Available

get

Checks if a username is available for a given ENS domain

Query parameters
subnamestringRequired

The subname

Example: user.justan.id
chainIdnumberRequired

Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)

Example: 1
Responses
200
Subname was fetched successfully.
application/json
Responseall of
get
GET /ens/v1/subname/available HTTP/1.1
Host: api.justaname.id
Accept: */*
200

Subname was fetched successfully.

{
  "statusCode": 200,
  "result": {
    "data": {
      "isAvailable": false
    },
    "error": "text"
  }
}

Was this helpful?