# Carbon DeFi Public REST API

### API Endpoint

Visiting the API endpoint will expose all available endpoints that are currently exposed with details on how to use each and every one of them.

[`https://api.carbondefi.xyz/`](https://api.carbondefi.xyz/)

{% embed url="<https://api.carbondefi.xyz/>" %}

### Overview

Carbon DeFi provides a public REST API designed to improve visibility into on-chain activity. This API offers developers an easy and efficient way to access unique transaction data, aggregated trade volumes, and key insights into the activities taking place within the Carbon DeFi ecosystem.

### Key Features

* **On-Chain Activity Tracking**: Retrieve real-time and historical transaction data.
* **Aggregated Trade Volumes**: Gain insights into overall trading activity and volume trends.
* **Unique Transaction Data**: Access structured data on individual transactions for deeper analysis.
* **Developer-Friendly**: Well-documented endpoints with JSON responses for seamless integration.

### Use Cases

* **Market Analytics**: Monitor trade volumes and liquidity trends.
* **User Activity Insights**: Track specific transactions and interactions with the protocol.
* **Data Aggregation**: Incorporate Carbon DeFi activity data into dashboards, research, and analytical tools.

{% hint style="info" %}
AI Agents can find dedicated resources on the [AI Agents & MCP Server](/rest-api/ai-agents-and-mcp-server.md) page
{% endhint %}


---

# 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.carbondefi.xyz/rest-api/carbon-defi-public-rest-api.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.
