# Get Contract Name

## getContractName

<mark style="color:green;">`POST`</mark> `https://api.harpie.io/v2/getContractName`

Get insight into who owns a specific contract. Returns "NO\_DATA" if the contract is not a known contract in Harpie's database.

#### Request Body

| Name                                     | Type   | Description                                        |
| ---------------------------------------- | ------ | -------------------------------------------------- |
| apiKey<mark style="color:red;">\*</mark> | String | Your API key. You can find this in your dashboard. |
| address                                  | String | The address that is being analyzed                 |

{% tabs %}
{% tab title="200: OK A description of the protocol the contract is associated with." %}

```typescript
{
    contractOwner: String // Returns protocol name or "NO_DATA"
}
```

{% endtab %}
{% endtabs %}

**Example Requests**

```typescript
fetch("https://api.harpie.io/v2/getcontractname", {
    method: "POST",
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        apiKey: "{YOUR API KEY HERE}",
        address: "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490"
    })
})
```

#### Example Responses

```typescript
{
    contractOwner: "Curvefi: threepool"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://harpie.gitbook.io/welcome-to-the-harpie-docs/~/changes/T8YMsU3xPtqI6mFgVEdC/harpie-for-developers/background-check-api/get-contract-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
