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

# APIs

1. **Get the name for a specified wallet address**.

**Input:**

Copy

```
const walletAddress = '---Enter Wallet Address---'

const response = fetch(`https://getheminames.me/api/domainSearch?address=${walletAddress}`)
```

`address`: stringTarget wallet address

**Output:**

{% hint style="success" %}
`domain`: stringDomain name
{% endhint %}

2. **Get address for a specified domain name**

**Input:**

Copy

```
const name = '---Enter domain name (semi.hemi)---'

const response = fetch(`https://getheminames.me/api/addressresolver?name=${name}`)
```

`name`: stringTarget wallet address

**Output:**

{% hint style="success" %}
`address`: string Domain name
{% endhint %}

{% hint style="warning" %}
The domain name only return if the user has set any domain as primary domain
{% endhint %}
