# Multi-format Output

You can get **multiple result types** **in a single API response**. This feature works the same way with [Realtime](https://developers.oxylabs.io/scraping-solutions/web-scraper-api/integration-methods/realtime) and [Push-Pull](https://developers.oxylabs.io/scraping-solutions/web-scraper-api/integration-methods/push-pull) 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="../../../js-rendering-and-browser-control/javascript-rendering#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="markdown-output">Markdown</a> of a web page.</td></tr><tr><td><code>xhr</code></td><td><a href="capturing-network-requests-fetch-xhr">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.&#x20;

Sample `POST https://data.oxylabs.io/v1/queries` payload:&#x20;

```json
{
  "source": "universal",
  "url": "https://example.com",
  "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

### Realtime API endpoint:&#x20;

```
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:

```json
{
    "results": [
        {
            "content": "<!DOCTYPE html>\n<html>\n<head>\n    <title>Example Domain</title>\n\n...",
            "type": "raw",
            "created_at": "2025-08-14 07:59:07",
            "updated_at": "2025-08-14 07:59:08",
            "page": 1,
            "url": "https://example.com",
            "job_id": "7333804527868451841",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": {"title": "Example Domain", "paragraph_text": "This domain..."},
            "type": "parsed",
            "created_at": "2025-08-14 07:59:07",
            "updated_at": "2025-08-14 07:59:08",
            "page": 1,
            "url": "https://example.com",
            "job_id": "7333804527868451841",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": "abcd1234",
            "type": "png",
            "created_at": "2025-08-14 07:59:07",
            "updated_at": "2025-08-14 07:59:08",
            "page": 1,
            "url": "https://example.com",
            "job_id": "7333804527868451841",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": "# Example Domain...",
            "type": "markdown",
            "created_at": "2025-08-14 07:59:07",
            "updated_at": "2025-08-14 07:59:08",
            "page": 1,
            "url": "https://example.com",
            "job_id": "7333804527868451841",
            "is_render_forced": false,
            "status_code": 200
        },
        {
            "content": [
              {"url": "...", "headers": "..."},
              {"url": "...", "headers": "..."}
            ],
            "type": "xhr",
            "created_at": "2025-08-14 07:59:07",
            "updated_at": "2025-08-14 07:59:08",
            "page": 1,
            "url": "https://example.com",
            "job_id": "7333804527868451841",
            "is_render_forced": false,
            "status_code": 200
        }
      ]
}
```
