> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-admin/9.3-administer/embed-and-extend-pentaho-functionality-cp/embed-pentaho-server-functionality-into-web-applications/analyzer-samples.md).

# Analyzer samples

The following samples show how to embed Analyzer reports into other web applications.

## Display a report in viewer mode

This sample renders a display using a regular `GET` request, by populating an HTML IFRAME with the report REST URL:

```
http://localhost:8080/pentaho/api/repos/*&lt;path&gt;*/viewer
```

The viewer has limited possibilities for interaction and does not allow changing the report.

## Display a report in editor mode

The sample renders a full **Analyzer IU** by populating an HTML IFRAME with the report REST URL:

```
http://localhost:8080/pentaho/api/repos/*&lt;path&gt;*/editor
```

The IFRAME now renders the full Analyzer user interface, allowing users to interact with the data.

## Create a new Analyzer report

The sample prepares a new Analyzer report by populating an HTML IFRAME with the report REST URL:

```
http://localhost:8080/pentaho/api/repos/xanalyzer/editor?catalog=*&lt;Schema&gt;*&cube=*&lt;CubeName&gt;*
```

The mandatory **catalog** and **cube** parameters specify the analysis schema and cube to use for the new report.

## Integrate into a custom web application via an IFRAME

The sample opens a new page that mimics a parent application that integrates Analyzer using an IFrame. The parent application has a set of buttons interacting with the **Analyzer UI** in the embedded IFRAME. Studying this page is a good starting point, if you are trying to deeply integrate analyzer into your own web application.

## Specify the select schema service

The sample is opened with a specified data service.

```
http://localhost:8080/pentaho/api/repos/xanalyzer/service/selectSchema
```

After a data service is selected, the sample opens and shows an unsaved Analyzer report using that data service.


---

# 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.pentaho.com/pdia-admin/9.3-administer/embed-and-extend-pentaho-functionality-cp/embed-pentaho-server-functionality-into-web-applications/analyzer-samples.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.
