> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/datacore/sports-apis/3ice/datacore-streaming-api/introduction/message-compression.md). Agents can also search and read this documentation through its [MCP server](https://docs.sportradar.com/~gitbook/mcp).

# Message Compression

To reduce transfer size, the content of some messages are sent in a compressed format. This compressed data is available in the `compressedData` field in the message. The format of this field is a base64 encoded zlib compressed JSON string.

Python example for decompressing import base64 import zlib

```
data = "eJyl0b1uwyAQAOBXQcy1hLHjn65RorZppQ6VKnU74GKj2hABHqLI716ztK6aenA24Lj7TncXiibocH5U9J5QKZgSUPOEbzKRpCmKBJRME8ZzDjLljDFO7wg9ofPW+CnlQhWUWSWLfDEnfpRwCqDNdD5C53EqI7SIalbEmgZ6jLcXbJUme90M6CzEiA/gAropGNyA4/QSzZqhXG/mbG4+I5AP3ffoejD/k5WAYj2ZbubkrtPgyd6hke1fMc7Yeh20jYXoln63gGJ5O8uTLuctbHU3NWHIwV5r4WfOHG8Q67n4BGeFhjwghAWxOpZwg1jNxQN03dCTV3Cf6BdIwGo9+Wuxby1a8q6bRptr4Dh+AT9i+9U="

compressed_data = base64.b64decode(data.encode())
output = zlib.decompress(compressed_data).decode()
print(output)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sportradar.com/datacore/sports-apis/3ice/datacore-streaming-api/introduction/message-compression.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
