> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/web-scraper-api/features/result-processing-and-storage/output-types/multi-format-output.md).

# Multi-format Output

See how to get more than one output format with a single API call.

You can get **multiple result types** **in a single API response**. This feature works the same way with [Realtime](/products/web-scraper-api/integration-methods/realtime.md) and [Push-Pull](/products/web-scraper-api/integration-methods/push-pull.md) integration methods.

## Available result types

<table><thead><tr><th width="137.203125">Output type</th><th>Description</th></tr></thead><tbody><tr><td><code>png</code></td><td>The <a href="/products/web-scraper-api/features/js-rendering-and-browser-control.md#png-screenshot">PNG screenshot</a> of a web page.</td></tr><tr><td><code>parsed</code></td><td>Parsed content of the web page, formatted as a JSON data structure.</td></tr><tr><td><code>markdown</code></td><td><a href="/products/web-scraper-api/features/result-processing-and-storage/output-types/markdown-output.md">Markdown</a> of a web page.</td></tr><tr><td><code>xhr</code></td><td><a href="/products/web-scraper-api/features/result-processing-and-storage/output-types/capturing-network-requests-fetch-xhr.md">XHR requests</a> made while loading the page.</td></tr><tr><td><code>raw</code></td><td>The raw content found at a given URL. It's likely to be (but won’t always be) an HTML document.</td></tr></tbody></table>

## Step 1: Specify result types to be available for fetching

Start by enabling the result types in your initial request payload to make them available. The example uses a source with a [Dedicated parser](/products/web-scraper-api/features/result-processing-and-storage/dedicated-parsers.md). For a page without one, `parse: true` needs [Custom parser](/products/web-scraper-api/features/custom-parser.md) instructions instead.

Sample `POST https://data.oxylabs.io/v1/queries` payload:

```json
{
    "source": "amazon_product",
    "query": "B07FZ8S74R",
    "parse": true,
    "markdown": true,
    "xhr": true,
    "render": "png"
}
```

{% hint style="info" %}
Set only the result types you want to retrieve.
{% endhint %}

## Step 2: Retrieve multiple result types

Then, specify which types to retrieve using the `type` URL parameter when fetching results. For example:

* `type=parsed,png` will return parsed results and the PNG screenshot
* `type=parsed,markdown,xhr,png,raw` will return all result types

{% hint style="info" %}
Realtime omits a requested type that was not enabled, while the Push-Pull `/results` endpoint returns it with an empty `content` string.
{% endhint %}

### Realtime API endpoint:

```
POST https://realtime.oxylabs.io/v1/queries?type=parsed,markdown,xhr,png,raw
```

### Push-Pull API endpoint:

```
GET https://data.oxylabs.io/v1/queries/{job_id}/results?type=parsed,markdown,xhr,png,raw
```

### Output sample

The API will return all requested types together in a single `results[]` array. The order of the entries is not fixed (Realtime and Push-Pull return them in different orders):

```json
{
    "results": [
        {
            "content": {
                "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
                "asin": "B07FZ8S74R",
                "title": "Echo Dot (3rd Gen, 2018 release) - Smart speaker with Alexa - Charcoal",
                "rating": 4.7,
                "reviews_count": 1037924,
                "parse_status_code": 12000,
                ...
            },
            "type": "parsed",
            "created_at": "2026-09-14 11:48:10",
            "updated_at": "2026-09-14 11:48:27",
            "page": 1,
            "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
            "job_id": "7505230915858120705",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": "![](https://m.media-amazon.com/images/G/01/gno/sprites/nav-sprite-global-1x-reorg-privacy._CB779528203_.png)\n\n## Skip to...",
            "type": "markdown",
            "created_at": "2026-09-14 11:48:10",
            "updated_at": "2026-09-14 11:48:27",
            "page": 1,
            "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
            "job_id": "7505230915858120705",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": [
                {
                    "url": "https://m.media-amazon.com/images/G/01/csm/showads.v2.js?adspot_=1",
                    "method": "GET",
                    "status_code": 200,
                    "request_headers": {
                        ...
                    },
                    "request_payload": null,
                    "response_headers": {
                        ...
                    },
                    "response_body": "window.ue_adb_chk = 1;\n..."
                },
                {...}
            ],
            "type": "xhr",
            "created_at": "2026-09-14 11:48:10",
            "updated_at": "2026-09-14 11:48:27",
            "page": 1,
            "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
            "job_id": "7505230915858120705",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": "iVBORw0KGgoAAAANSUhEUgAAB3kAADklCAIAAAD9...",
            "type": "png",
            "created_at": "2026-09-14 11:48:10",
            "updated_at": "2026-09-14 11:48:27",
            "page": 1,
            "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
            "job_id": "7505230915858120705",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": "<!DOCTYPE html><html lang=\"en-us\" class=\"a-ws a-js a-audio a-video a-c...",
            "type": "raw",
            "created_at": "2026-09-14 11:48:10",
            "updated_at": "2026-09-14 11:48:27",
            "page": 1,
            "url": "https://www.amazon.com/dp/B07FZ8S74R?language=en_US",
            "job_id": "7505230915858120705",
            "is_render_forced": false,
            "status_code": 200
        }
    ],
    "job": {...}
}
```


---

# 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://developers.oxylabs.io/products/web-scraper-api/features/result-processing-and-storage/output-types/multi-format-output.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.
