> For the complete documentation index, see [llms.txt](https://dev.anqa.ag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.anqa.ag/developer-guide/swap-integration.md). Agents can also search and read this documentation through its [MCP server](https://dev.anqa.ag/~gitbook/mcp).

# Swap Integration

Expose Anqa’s meta-routing engine inside your own application through one of three integration layers:

* **API** – A stateless REST interface that returns deterministic quotes, optimal route breakdowns, and pre-signed Aptos transactions ready for broadcast. Ideal for server-side or mobile back ends that require full control over execution logic.
* **Widget** – A modular React component that bundles quoting, routing, and transaction signing behind a configurable UI. Drop it into any web front-end to enable best-rate swaps with minimal engineering overhead.
* **Iframe** – A sandboxed, zero-code embed for dashboards, analytics sites, and legacy stacks. Provides the same pricing logic and execution guarantees while isolating all blockchain interactions in a secure container.

Each integration surfaces identical pricing algorithms, drawing from 10 + liquidity sources across AMMs, CLAMMs, CLOBs, LSD pools, and peer aggregators, and supports slippage controls, gas estimation, and custom route constraints. Consult the method-specific reference for authentication, rate-limit policies, response schemas, and implementation examples.

{% content-ref url="/pages/UY94MTMqIK6r7UHlUdnm" %}
[API](https://dev.anqa.ag/developer-guide/swap-integration/api.md)
{% endcontent-ref %}

{% content-ref url="/pages/FEBYDOYWBgoLaGnPnwbO" %}
[Widget](https://dev.anqa.ag/developer-guide/swap-integration/widget.md)
{% endcontent-ref %}

{% content-ref url="/pages/9APUZjCkVpbTL8Dj20j2" %}
[Iframe](https://dev.anqa.ag/developer-guide/swap-integration/iframe.md)
{% endcontent-ref %}
