# API Authentication & Rate Limit

## Base URL

All API requests are made to the following base URL:

> <mark style="color:$primary;">`https://api.dapplooker.com/v1`</mark>

## **Authentication**

This endpoint supports **two authentication methods**:

<table data-header-hidden><thead><tr><th width="254.30078125"></th><th></th></tr></thead><tbody><tr><td><strong>Method</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>x402 Payment Protocol</strong></td><td>If <mark style="color:$primary;"><code>api_key</code></mark> is not provided, the request automatically uses the <a href="https://x402.gitbook.io/x402">x402 protocol</a> for on-chain payment verification.</td></tr><tr><td><strong>API Key</strong></td><td>Provide your Loky API key using the <mark style="color:$primary;"><code>api_key</code></mark> parameter for authenticated access.</td></tr></tbody></table>

> #### 💡 **Tips**&#x20;
>
> * To get access to your API key, please send a request to <help@dapplooker.com> or contact us via [Discord](https://discord.gg/EW9eDXTS) for faster assistance.
> * For seamless integration, user can follow the [x402 Quickstart Guide for Buyers](https://x402.gitbook.io/x402/getting-started/quickstart-for-buyers).

## Status Codes

| Code                    | Description                                                                          |
| ----------------------- | ------------------------------------------------------------------------------------ |
| 200 (Successful)        | Returned when the request is successful                                              |
| 400 (Bad Request)       | Invalid request and the server could not process the user's request                  |
| 401 (Unauthorized)      | Invalid API key for the requested resource by the user                               |
| 402 (Payment Required)  | Uses the [x402 protocol](https://x402.gitbook.io/x402) for on-chain payment required |
| 423 (Too many requests) | Likely indicating that the rate limit has reached                                    |

## Rate Limit

* Default Rate Limit: 100 calls per minute.
* Can be configured based on subscription tier you chose


---

# 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/get-started/api-authentication-and-rate-limit.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.
