# Reference

- [Swap API Reference](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference.md): This page provides an overview of the three Fanbase.io Swap APIs.
- [Aggregate Swap API](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/aggregate-swap-api.md): On this page you can check the endpoints for the Fanbase Aggregate ERC20 Swap API which delivers you the best price from a variety of decentralized swaps.
- [Networks Supported](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/aggregate-swap-api/networks-supported.md): On this page you can check the swap contracts and swap APIs that Fanbase Aggregate API compares to deliver you the best price.
- [How to Swap](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/aggregate-swap-api/how-to-swap.md): On this page you will find a guide on how to use the Fanbase Aggregate Swap API.
- [Pure Swap API](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/pure-swap-api.md): On this page you can check the endpoints for the Fanbase Pure Swap API which delivers you the best price from Fanbase Swap liquidity pools. Next, check 'Networks Supported' for a comprehensive list.
- [Networks Supported](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/pure-swap-api/networks-supported.md): On this page you can check the swap contracts and swap APIs that Fanbase Pure Swap API compares.
- [NFT Swap API](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/nft-swap-api.md): On this page you can check the endpoints for the Fanbase NFT Swap API which facilitates ERC20-ERC1155 swaps. The protocol compares Fanbase Swap and Niftyswap prices to provide you the best value.
- [How to Swap](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/nft-swap-api/how-to-swap.md): On this page you will find the guide to using the Fanbase ERC1155 swap API for ERC1155-ERC20 pairs.
- [FAQ](https://fanbase-io.gitbook.io/docs/reference/swap-api-reference/faq.md): This page contains some useful advices that questions that can be arise while use Fanbase API and implement it on custom project.
- [Staking API Reference](https://fanbase-io.gitbook.io/docs/reference/staking-api-reference.md): On this page you can check the endpoints for the Fanbase Aggregate ERC20 Swap API which delivers you the best price from a variety of decentralized swaps.
- [Swap Widget SDK](https://fanbase-io.gitbook.io/docs/reference/swap-widget-sdk.md): On this page you can check the endpoints for the Fanbase NFT Swap Widget which facilitates ERC20-ERC1155 swaps.
- [Aggregate Swap Widget](https://fanbase-io.gitbook.io/docs/reference/swap-widget-sdk/aggregate-swap-widget.md): On this page you can get started using the Fanbase Aggregate Swap Widget for ERC20-ERC20 trades.
- [Pure Swap Widget](https://fanbase-io.gitbook.io/docs/reference/swap-widget-sdk/pure-swap-widget.md): Getting started with the Fanbase Pure Swap Widget for ERC20-ERC20 trades.
- [Aggregate NFT Swap Widget](https://fanbase-io.gitbook.io/docs/reference/swap-widget-sdk/aggregate-nft-swap-widget.md): Getting started with the Fanbase NFT Swap Widget for ERC155-ERC20 trades. This widget uses Fanbase Aggregate ERC1155 Swap API, which queries Fanbase pools and Niftyswap pools.
- [Pure NFT Swap Widget](https://fanbase-io.gitbook.io/docs/reference/swap-widget-sdk/pure-nft-swap-widget.md): Getting started with the Fanbase NFT Swap Widget for ERC155-ERC20 trades.
- [Staking Widget SDK](https://fanbase-io.gitbook.io/docs/reference/staking-widget-sdk.md): On this page you can get started using the Fanbase Staking Widget for ERC20, ERC721, ERC1155 stakings.
- [Embeddable Swap Widget](https://fanbase-io.gitbook.io/docs/reference/embeddable-swap-widget.md): On this page you can get started using the Fanbase Embeddable Widgets for Pure and Aggregate ERC1155-ERC20 and ERC20-ERC20 swaps. A plan is required to install this widget: https://www.plan.fanbase.io
- [Embeddable Staking Widget](https://fanbase-io.gitbook.io/docs/reference/embeddable-staking-widget.md): On this page you can get started using the the Fanbase Embeddable Staking Widget which harnesses the Fanbase Staking Protocol. A plan is required to install this widget: https://www.plan.fanbase.io.
- [Ramp API Reference](https://fanbase-io.gitbook.io/docs/reference/ramp-api-reference.md): On this page you can check the endpoints for the Fanbase Ramp API which delivers you the ramp protocol.
- [V1 Reference](https://fanbase-io.gitbook.io/docs/reference/ramp-api-reference/v1-reference.md): This page describes version 1 of available REST API (we recommend to refer to the latest version which can be found at the last API Reference section).
- [V2 Reference](https://fanbase-io.gitbook.io/docs/reference/ramp-api-reference/v2-reference.md): This page describes version 2 of available REST API (we recommend to refer to the latest version which can be found at the last API Reference section).
- [V3 Reference](https://fanbase-io.gitbook.io/docs/reference/ramp-api-reference/v3-reference.md): This page describes version 1 of available REST API (we recommend to refer to the latest version which can be found at the last API Reference section).
- [Fanbase Plan Referral System](https://fanbase-io.gitbook.io/docs/reference/fanbase-plan-referral-system.md): Fanbase Plan Referral system makes you to get passive income while using Fanbase Products with premium plans.


---

# 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://fanbase-io.gitbook.io/docs/reference.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.
