> For the complete documentation index, see [llms.txt](https://developer.mediarithmics.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.mediarithmics.io/querying-your-data.md).

# Querying your data

You have three different ways to query your data in mediarithmics depending on what you want to achieve.&#x20;

GraphQL\
\
&#x20;<img src="https://4196284719-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMuoqM-5hJ5JY0WnAKL%2F-MSDd5v9MtV9gR167jDc%2F-MSDei1kEIUHZUvOjFnk%2FPlan%20de%20travail%201%20copie%2068.png?alt=media&amp;token=a9ffff2c-0a75-43ff-9db1-9e62999f4723" alt="" data-size="original">&#x20;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The [GraphQL API](/querying-your-data/graphql-queries.md) gives you the ability to query all kinds of UserPoint data, as collected by the platform (profile, activities, segments, identifiers, etc.) **with a single request**.&#x20;

## OTQL

<img src="https://4196284719-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMuoqM-5hJ5JY0WnAKL%2F-MSDfB0AZJSv8YemdI4V%2F-MSDfMjwAD0nMwp-XWDV%2FPlan%20de%20travail%201%20copie%2069.png?alt=media&amp;token=8b80fe27-87ec-42b8-bb4d-2207ddbee4cd" alt="" data-size="original">&#x20;

The [OTQL Language](/querying-your-data/otql-queries.md) is an extension to GraphQL. It is based on the same schema and **adds unique features to query a graph of millions/billions of objects**.&#x20;

## Analytics

<div align="left"><img src="https://4196284719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMuoqM-5hJ5JY0WnAKL%2Fuploads%2FidmNpZOQByNZpeUJLOsJ%2FAnalytics%20cube%20queries%20datamart.png?alt=media&amp;token=6876c89b-6749-4f15-8031-63f8b0ad9398" alt=""></div>

We provide an [analytics data cube to query user activities](/querying-your-data/activities-analytics-queries.md).&#x20;


---

# 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://developer.mediarithmics.io/querying-your-data.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.
