# APIs and Streams

The LYS Labs API and WebSocket infrastructure gives you direct access to decoded blockchain events, real-time aggregations, and historical insights - all enriched and structured for programmatic use.

\
Whether you're building a trading bot, running an agent model, or querying historical behavior, the API layer is your interface into the LYS data platform.

### Overview

LYS APIs expose:

* Decoded Solana events (token swaps, mints, transfers, etc.)
* Real-time and historical aggregations
* Wallet- and token-level intelligence
* Validator performance data
* Custom signals (volume spikes, rug flags, etc.)

\
Data is streamed in real time or queried on demand.\
All endpoints are:

* Low-latency (sub-30ms responses)
* Enriched (decoded, normalized, and annotated)
* Tiered (free, pro, and enterprise plans)

### Plans

Both Structured & Aggregated data have a Free tier

<figure><img src="/files/DsGKlRYxnHKpmuZiSunq" alt="" width="375"><figcaption></figcaption></figure>

**Structured Data**

Real-time, unprocessed Solana blockchain data

{% columns %}
{% column width="50%" %}

<figure><img src="/files/7gqRR6Ir2oCzAI9SaEwX" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}

<figure><img src="/files/9PuaXFiiOgV2epPZIMox" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

#### Aggregated Data

Pre-processed, analytics-ready blockchain insights

{% columns %}
{% column %}

<figure><img src="/files/B5y4qwXKambcLVVQIuC5" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="/files/tDKuPKesMK3LmMf7JDJw" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Next: Try the Sandbox

You’re now ready to jump into the developer experience.

<img src="https://paper.dropboxstatic.com/static/img/ace/emoji/1f449.png?version=8.0.0" alt="backhand index pointing right" data-size="line">[ Visit Dev Portal](https://dev-staging.lyslabs.ai/api-reference/websocket-api) to browse endpoints, get your key, and start building.

or&#x20;

[Contact Us for Enterprise ](mailto:sales@lyslabs.ai)access


---

# 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.lyslabs.ai/apis-and-streams.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.
