# Quickstart

Welcome to the APRO AI Oracle API. We provide a wide range of oracle data, including market data and news. All data undergoes distributed consensus to ensure its trustworthiness and immutability.

## Getting Started

1. **Contact Our BD Team** Apply for API access through our Business Development team. We offer basic plans and higher-rate paid plans.
2. **Test with Your API Key** Use the code samples below to test your key and make API requests.
3. **Integrate with Your Application** After verifying your API key, explore this documentation to start building.

> ⚠️ **Important**: Always route your API calls through your own backend server to protect your API key.

### 🔐 API Authentication & Credit System

* **V1**: No API key required.
* **V2**: Requires `X-API-KEY` and `X-API-SECRET` headers.

All API requests are subject to credit-based rate limiting. Each endpoint will indicate how many credits it consumes.

## Base URL

**TestNet**: <https://api-ai-oracle-test.apro.com\\>
**MainNet**：<https://api-ai-oracle.apro.com>

## **Making an API Request**

To call the API, direct the request to the specified API method and attach the required parameters. For a complete reference of available API methods, see the [APRO AI Oracle API v1](/ai-oracle/getting-started/quickstart/apro-ai-oracle-api-v1.md) in the sidebar.&#x20;

### **Example Using Axios in TypeScript**

**V1: Fetch Supported Currencies**

```typescript
import axios from 'axios'

function API() {
    async function apiFunction() {
        const res = await axios
            // "Call URL", {configuration headers}
            .get("https://api-ai-oracle-test.apro.com/v1/ticker/currencies/list?size=50&page=1")
            .catch((error) => console.log(error))
        console.log(res)
    }
}
```

**V2: Fetch Supported Currencies (with API key)**

```javascript
import axios from 'axios'

function API() {
    async function apiFunction() {
        const res = await axios
            // "Call url", {configuration headers}
            .get("https://api-ai-oracle.apro.com/v2/ticker/currencies/list?size=50&page=1", 
                {
                    headers: {
                        'X-API-KEY': 'YOUR_API_KEY',
                        'X-API-SECRET': 'YOUR_API_SECRET',
                        }
                }
            )
            .catch((error) => console.log(error))
        console.log(res)
    }
}
```

### **Evaluating API Responses**

Our API responses follow a standard response structure. Responses are returned in JSON format.


---

# 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.apro.com/ai-oracle/getting-started/quickstart.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.
