# Accessing the Dx.fun API

Welcome to the documentation for accessing the Dx.fun API! This guide will help you get started with our early version API, which already offers a wide range of functionalities. More features are being built on, so stay tuned for updates.

### **API Overview**

Our API provides access to various endpoints that allow you to interact with the Dx.fun platform. The specific link to access the API documentation is [here](https://scan.dx.app/#/Fun%20Sales) under the "Fun Sales" section.&#x20;

<figure><img src="https://4235687909-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJ9XEkjjlTNrg1snRcNI%2Fuploads%2FA6rtRm9VwJAvcZOskYfi%2FScreenshot%202024-06-08%20at%208.11.54%E2%80%AFPM.png?alt=media&#x26;token=d883f730-e055-4b22-b362-f0dc85e3f91d" alt=""><figcaption><p>Dx.Fun API</p></figcaption></figure>

### Getting Started

1. **Visit the API Documentation**: Go to link to access the API documentation.
2. **Explore the Endpoints**: Browse through the available endpoints to understand the functionalities provided. The documentation includes detailed information about each endpoint, including request parameters and response formats.

### Example Usage

Here's an example of how you can use one of the API endpoints to retrieve information about Fun Sales.

#### **Fetching Fun Sales Data**

To fetch the Fun Sales data, you can make a GET request to the relevant endpoint. Here’s a sample code snippet in JavaScript using `fetch`:

```javascript
const fetch = require('node-fetch');

const url = 'https://scan.dx.app/api/fun-sales';

fetch(url)
  .then(response => response.json())
  .then(data => {
    console.log('Fun Sales Data:', data);
  })
  .catch(error => {
    console.error('Error fetching Fun Sales data:', error);
  });
```

Replace the URL with the specific endpoint you want to access. The API documentation will provide the exact URL and parameters needed for different endpoints.

### Future Enhancements

We are continually working to improve and expand the functionalities of our API. Stay tuned for updates and new features that will make interacting with Dx.fun even more powerful and convenient.
