# Pull SpiritSwap data feeds using Covalent API

[Covalent](https://www.covalenthq.com/?utm_source=spiritswap\&utm_medium=partner-docs) provides a unified API to bring full transparency and visibility to assets across all blockchains. The Covalent API can be used to build the [SpiritSwap analytics dashboard.](https://info.spiritswap.finance/)

![Developer Mode (JSON)](https://3699463413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoaFZ0hNv5IpR4uiYMgBF%2Fuploads%2FnPIuLRDqrikSMMiBpZzc%2Fimage.png?alt=media\&token=039130fb-d177-436d-804e-6ef60231a16a)

![Analyst Mode (CSV)](https://3699463413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoaFZ0hNv5IpR4uiYMgBF%2Fuploads%2FrAOATKgmKaPMjJGqK0TT%2Fimage.png?alt=media\&token=01a8bd58-2b7d-465f-ad54-08f098e7673c)

The Covalent API is RESTful and offers the following out-of-the-box for *SpiritSwap*:

![](https://3699463413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoaFZ0hNv5IpR4uiYMgBF%2Fuploads%2FAJMaQXJ63afdNYQ0j7Dd%2Fimage.png?alt=media\&token=481afddd-740b-481a-b442-fe4c221cc7ee)

Try the key endpoints directly in your browser from the [API Reference](https://www.covalenthq.com/docs/api/?utm_source=spiritswap\&utm_medium=partner-docs#/0/0/USD/250).

### Build Analytics Dashboards

Here is a breakdown of the the specific API endpoints that can be used to build the SpiritSwap analytics dashboard:

![](https://3699463413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoaFZ0hNv5IpR4uiYMgBF%2Fuploads%2FzdoSFUcwxZb1kun9UKJG%2Fimage.png?alt=media\&token=009c5e16-3318-4a71-8f93-cbf7ee5662a1)

| Marker | Endpoint                                                                                                                                                                          | Data                                                            |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| 1      | [`/250/address/:address/transactions_v2`](https://www.covalenthq.com/docs/api/#/0/Get%20transactions%20for%20address/USD/250/?utm_source=spiritswap\&utm_medium=partner-docs)     | Timeseries TVL based on decoded `Deposit` and `Withdraw` events |
| 2      | [`/250/xy=k/spiritswap/pools/address/:address`](https://www.covalenthq.com/docs/api/#/0/Get%20XY=K%20pools%20by%20addressUSD/250/?utm_source=spiritswap\&utm_medium=partner-docs) | 24h volume as a timeseries chart                                |
| 3      | [`/250/xy=k/spiritswap/tokens`](https://www.covalenthq.com/docs/api/#/0/Get%20XY=K%20network%20exchange%20tokens/USD/250/?utm_source=spiritswap\&utm_medium=partner-docs)         | Top 50 tokens by price, volume, liquidity                       |
| 4      | [`/250/xy=k/spiritswap/pools`](https://www.covalenthq.com/docs/api/#/0/Get%20XY=K%20pools/USD/250/?utm_source=spiritswap\&utm_medium=partner-docs)                                | Top 50 pools by price, volume, liquidity                        |

### Code Template

![](https://3699463413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoaFZ0hNv5IpR4uiYMgBF%2Fuploads%2FuUI50MTVuperABBcbBnX%2Fimage.png?alt=media\&token=a9c3e105-605e-43cf-8754-50ca248984a4)

Template repo: [https://github.com/covalenthq/dex-dashboard-template](https://github.com/covalenthq/dex-dashboard-template?utm_source=spiritswap\&utm_medium=partner-docs)

This code template is a showcase of the `XY=K` suite of Covalent API endpoints capable of powering DEX dashboards. The code is open source and forkable for anyone to customize it.

## Additional Resources

Here are some additional resources to help you get started with the Covalent API:

* [Covalent API Reference](https://www.covalenthq.com/docs/api/?utm_source=spiritswap\&utm_medium=partner-docs#/0/0/USD/250)
* [Covalent API FAQs](https://www.covalenthq.com/docs/developer/faq/?utm_source=spiritswap\&utm_medium=partner-docs)
* [Covalent Discord Support](https://www.covalenthq.com/discord/?utm_source=spiritswap\&utm_medium=partner-docs)

### About Covalent <a href="#about-covalent" id="about-covalent"></a>

Covalent provides the industry-leading **Unified API** bringing visibility to billions of Web3 data points. Developers use Covalent to build exciting multi-chain applications like [crypto wallets](https://www.covalenthq.com/docs/project-showcase/wallet), [NFT galleries](https://www.covalenthq.com/docs/project-showcase/nft), and [investor dashboard tools](https://www.covalenthq.com/docs/project-showcase/tools) utilizing data from [32+ blockchains](https://www.covalenthq.com/docs/networks). Covalent is trusted by a community of 27,000+ developers and powers data for 1000+ applications including 0x, Zerion, Rainbow Wallet, Rotki, Bitski and many others.

[Website](https://www.covalenthq.com/) | [Discord](https://discord.com/invite/fgZPpq69Dd) | [Telegram](https://t.me/CovalentHQ) | [Twitter](https://twitter.com/covalent_hq) | [Youtube](https://www.youtube.com/channel/UCGn-T9qPiXAx490Wr6WPbOw) | [微信公众号](https://mp.weixin.qq.com/s?__biz=MzU0MzY5ODMzMg==\&mid=2247483899\&idx=1\&sn=9c1d4df3acc04bc35c429b244307d3c7\&chksm=fb063d08cc71b41e2da96b4747513acf2ab9182babe57c135e4a7d1fef9255eb3b310217835c\&token=2144505038\&lang=zh_CN#rd)
