# Get API Key

### Get started

To start using the DappLooker SDK, follow these steps:

**1. Install the SDK:**

```
npm install dapplooker-sdk
```

**2. Generate an API Key:**

* Begin by sign in to [DappLooker](https://dapplooker.com/user/signup)  either through Metamask or email.
* Proceed to the Products section and locate the [API SDK](https://dapplooker.com/user/api). Click on it to proceed.

<img src="/files/Yl7kVWzum85deoljKuO9" alt="" data-size="original">

* Within the API SDK interface, select the option labeled "+API Key"&#x20;

<img src="/files/gIwMtoSduUB7r2wdCz89" alt="" data-size="original">

and designate a name for your API key. Subsequently, click on "Generate Key" to generate the key.&#x20;

<img src="/files/ZsrHnHN1qKelEBZr6abU" alt="" data-size="original">

3. **Import the SDK**

Once you have installed the SDK, import it into your project. With the imported SDK, create an instance of the DappLookerChartsAPI and make API calls using the API key

### Example

Here's an example of how you can use the DappLooker SDK using API key and Chart UUID

```javascript
const DappLookerChartsAPI = require("dapplooker-sdk");

async function getChartData() => {
  let chartUUID = "dc9b69d8-7ca1-45d4-8ad0-a17f915f3f0"; // Replace it with chart UUID you are working with
  let apiKey = "qzusb5p3q246ip246ab6g0p8ppzb7u"; // Replace it with your API key
  let outputFormat = 'json' // This is a optional argument, valid value is `json`.
  let filterParameter = {}; // Add Parameter if required

  let response = await DappLookerChartsAPI.getChartData(chartUUID, apiKey, outputFormat);
  console.log("API Response Data: ", JSON.stringify(response));
};

getChartData();
```


---

# 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://docs.dapplooker.com/api-guides/get-api-key.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.
