> For the complete documentation index, see [llms.txt](https://docs.dapplooker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapplooker.com/api-guides/get-api-key.md).

# 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();
```
