# Threads Video Downloader (`scrapers-hub/threads-video-downloader`) Actor

Threads video downloader to download public videos from Threads quickly and in high quality 🎥📲 Perfect for saving videos for offline viewing, content management, archiving, and personal reference.

- **URL**: https://apify.com/scrapers-hub/threads-video-downloader.md
- **Developed by:** [Scrapers Hub](https://apify.com/scrapers-hub) (community)
- **Categories:** Videos, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### Threads Video Downloader: The Ultimate 🧵 Media Extraction 🎥 Tool

In the rapidly 🚀 evolving landscape of social media, **Threads** has emerged 🌟 as a powerhouse for real-time 💬 conversations, visual storytelling, and community engagement. As users flock to the platform 🏙️ to share high-quality images and compelling videos, the need for a robust 🛡️, reliable, and professional-grade extraction tool has never been greater. The **Threads Video Downloader** is meticulously 🧠 engineered to bridge this gap, providing developers 👨‍💻, content creators, and data analysts with a seamless 🌊 way to capture and archive Threads media at its highest fidelity.

This documentation 📝 serves as a comprehensive guide to understanding, configuring, and maximizing the potential ⚡ of the Threads Video Downloader. Whether you are building 🏗️ a personal archive, conducting sentiment analysis, or aggregating content for a larger project, this tool is designed 🛠️ to deliver consistent results with unparalleled precision.

#### 🌟 Introduction to Threads Media Extraction

The **Threads Video Downloader** is more than just a simple script; it is a sophisticated 🧠 Apify actor built on the pillars of efficiency ⚡, scalability, and quality 💎. Threads, as a platform 🌐, utilizes complex frontend architectures and dynamic data loading techniques that often make traditional scraping methods obsolete. Our downloader bypasses 🏃 these hurdles by intelligently parsing the underlying data structures of Threads posts, ensuring that you get direct 🎯 access to the source media files without the overhead of browser automation in many cases.

##### ✨ Core Philosophies of the Project

1.  **Quality 💎 First**: In an era of high-definition 📺 displays, low-quality downloads are unacceptable. Our tool prioritizes 🥇 the highest resolution available for every video and image it encounters.
2.  **Reliability 🛡️**: Social media platforms are known for frequent UI 🎨 updates. The Threads Video Downloader is built with defensive 🥊 programming techniques to handle changes in the platform's data presentation gracefully.
3.  **Ease 🖱️ of Use**: Complexity shouldn't be a barrier 🚧 to entry. With a straightforward input schema and standardized JSON 📝 output, integrating this tool into your existing workflow is a matter of minutes ⏱️, not hours.
4.  **Privacy 🔐 and Compliance**: By using professional proxy 🌍 configurations and respecting platform limits through intelligent delays ⏳, this tool is designed to operate within the bounds of standard data extraction 📦 practices.

#### 🚀 Why Choose Threads Video Downloader?

When it comes to social media 📱 scraping, you have many options. However, the Threads Video Downloader stands out due to several key 🔑 differentiators that make it the preferred choice 🏆 for professionals.

##### 📊 Feature Comparison and Advantages

| Feature | Threads Video Downloader | Standard Scraping Scripts |
| :--- | :--- | :--- |
| **Media Resolution** | Always fetches the highest 🏔️ available candidates | Often defaults to low-res 📉 thumbnails |
| **Carousel Support** | Full extraction of all 🎠 items in a carousel | Often only captures the first 🚫 item |
| **Data Format** | Structured, clean JSON 📝 with type markers | Messy, raw HTML 🧹 or incomplete data |
| **Proxy Support** | Native integration with Apify 🏠 Residential Proxies | Manual proxy implementation ⚙️ required |
| **Scalability** | Designed for batch 📈 processing hundreds of URLs | Usually limited to one 🚶 URL at a time |
| **Execution** | Asynchronous, high-performance ⚡ execution | Synchronous and slow 🐢 |

##### 🛠️ Comprehensive Feature Set

-   **High-Fidelity 🎥 Extraction**: The downloader scans through the `video_versions` and `image_versions2` metadata provided by Threads to pick 🎯 the version with the largest dimensions. This ensures that the content you download 💾 is as crisp as the original post.
-   **Intelligent Carousel 🎠 Parsing**: Threads posts often contain a "carousel" of multiple images or a mix of images and videos. Our tool recursively 🔄 iterates through the `carousel_media` objects, ensuring that no part of the story 📖 is missed.
-   **Metadata 🏷️ Awareness**: Beyond just URLs, the tool is aware of the `media_type`. This allows it to categorize 📂 downloads into `video` or `image` automatically, saving you hours ⏱️ of post-processing time.
-   **Robust Error 🚦 Handling**: The web is unpredictable. Our actor includes advanced `try-except` blocks 🛡️ and status code checks to provide meaningful feedback when a post is private 🔒, deleted, or otherwise inaccessible.
-   **Customizable Delays ⏳**: To mimic human-like 👤 behavior and avoid rate-limiting, the tool implements randomized delays between requests, making your scraping operations safer 🛡️ and more sustainable.
-   **Proxy Integration 🌐**: Seamlessly connects to the Apify Proxy 🌍 system, allowing you to use specialized proxy groups for maximum anonymity.
-   **Dataset Integration 📦**: Automatically saves results to the Apify dataset 📊, which can be exported to JSON, CSV, or XML with a single click 🖱️.

#### 📥 Input & Output

The third 🥉 and most critical section of this documentation details the exact structure 🏗️ required to communicate with the Threads Video Downloader and the data format 📝 you can expect in return. Understanding this section is key 🔑 to successful integration.

##### ⌨️ Input Schema Detailed Breakdown

The actor requires an input object 📦 that specifies the targets for extraction and the network 🌐 settings for the execution.

| Property | Type | Description | Required | Default Value |
| :--- | :--- | :--- | :--- | :--- |
| `startUrls` | `Array<String>` | A list of full Threads.net 🔗 post URLs. | **Yes** | `[]` |
| `proxyConfiguration` | `Object` | Apify Proxy 🌍 settings to bypass geographical or IP-based restrictions. | No | `{"useApifyProxy": true}` |
| `timeout` | `Integer` | Optional timeout ⏱️ in seconds for each network request. | No | `15` |

###### 📝 Input Example

```json
{
  "startUrls": [
    "https://www.threads.net/@threads/post/C01VCVdOUHC",
    "https://www.threads.net/@zuck/post/Cx_abcdefg"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
````

##### 📤 Output Data Format

Once the actor completes its run 🏁, it pushes the extracted information to the default dataset 📊. The output is a list of objects, where each object represents a single ☝️ media item found in the provided URLs.

| Field | Type | Description |
| :--- | :--- | :--- |
| `sourceUrl` | `String` | The original Threads 🔗 URL that was processed. |
| `downloadUrl` | `String` | The direct 🎯, temporary link to the media file. |
| `type` | `String` | The category 📂 of the media: `video` or `image`. |
| `timestamp` | `String` | The ISO-formatted 📅 time when the extraction took place. |

###### 📄 Output Example

```json
[
  {
    "sourceUrl": "https://www.threads.net/@threads/post/C01VCVdOUHC",
    "downloadUrl": "https://scontent.fthreads.cdninstagram.com/v/t39.1000...",
    "type": "video",
    "timestamp": "2024-05-12T10:24:08Z"
  },
  {
    "sourceUrl": "https://www.threads.net/@threads/post/C01VCVdOUHC",
    "downloadUrl": "https://scontent.fthreads.cdninstagram.com/v/t51.2885...",
    "type": "image",
    "timestamp": "2024-05-12T10:24:08Z"
  }
]
```

***

#### 🔍 Technical Deep Dive: How It Works

Under the hood 🏎️, the **Threads Video Downloader** employs several advanced techniques 🛠️ to ensure that data is extracted reliably without the need for heavy browser 🌐 instances (like Puppeteer or Playwright), which significantly reduces the cost 💰 and improves the speed ⚡ of your scraping tasks.

##### 🌐 Request Layer

The actor uses the `requests` 📡 library combined with `asyncio.to_thread` 🧵 to handle multiple network requests concurrently. However, it isn't just sending a standard 📝 GET request. It includes carefully curated headers 👒 that mimic a modern web browser. This includes:

- **User-Agent rotation 👤**: Using current Chrome/Safari user agents to avoid fingerprinting 🖐️.
- **Fetch metadata 📡 headers**: Including `Sec-Fetch-Mode`, `Sec-Fetch-Site`, and `Sec-Fetch-Dest` to satisfy server-side 🖥️ security checks.
- **Connection management 🔌**: Ensuring headers like `Upgrade-Insecure-Requests` are present to follow standard 📏 browser behavior.
- **Session handling 🍪**: Maintaining cookies when necessary to ensure the platform 🌐 recognizes the requests as legitimate.

##### 🧩 Data Extraction Logic

Threads encodes its post data 📊 within the HTML of the page, often inside `<script>` 📜 tags or hidden JSON structures. Our tool uses two primary methods 🧪 for extraction:

1. **Regex-based JSON Discovery 🔍**: We scan the raw HTML for signatures ✍️ of the `media` object. By tracking curly brace levels 📏 (`{` and `}`), we can isolate and extract the exact JSON 📝 block containing the media metadata.
2. **DOM Selection 🌳**: Using the `parsel` library (a powerful CSS/XPath 🎯 selector engine), we extract scripts that might contain `RelayPrefetchedStreamCache` or `ScheduledServerJS` data 📊.
3. **Heuristic Cleaning 🧹**: Removing escape characters and cleaning up nested JSON 📝 strings to ensure the final output is valid and parsable.

##### 📐 Resolution Optimization Algorithm

Once the raw JSON 📝 is extracted, the tool runs a sorting 📊 algorithm over the available media versions. For a typical video 🎥, Threads might provide 5 different resolutions. Our algorithm calculates 🧮 the area (width \* height) of each version and picks the one with the largest 🏔️ area, ensuring you get 1080p or 4K versions whenever they are available 💎.

#### 💡 Use Cases & Applications

The versatility 🌈 of the Threads Video Downloader makes it an essential tool 🛠️ for a wide variety of industries and personal projects.

##### 📱 For Content Creators and Social Media Managers

- **Content Repurposing ♻️**: Easily download your own high-quality 💎 content from Threads to share on other platforms like Instagram Reels 🎥, TikTok, or YouTube Shorts without having to find the original files 📂 on your device.
- **Competitor Analysis 🕵️**: Monitor the visual strategies of competitors by archiving 📦 their high-performing videos and images for offline offline review and mood-boarding 🎨.
- **Trend Tracking 📈**: Capture trending memes and viral 🦠 clips as they happen to stay ahead of the cultural curve 🌊.
- **Brand Consistency ✨**: Ensure your cross-platform 📱 content matches the quality of your original Threads 🧵 posts.

##### 🔬 For Researchers and Data Scientists

- **Visual Sentiment Analysis 🧠**: Build large datasets 📊 of images and videos from specific Threads hashtags #️⃣ or users to train machine learning 🤖 models for sentiment or object detection.
- **Archival Preservation 🏛️**: Save historical threads and multimedia 🎥 content before it is deleted 🗑️ or hidden by the platform's algorithms.
- **Brand Monitoring 👁️**: Track how your brand is being visually 🖼️ represented on Threads by downloading posts where your products 📦 are mentioned.
- **Digital Anthropology 🌍**: Study the evolution 🐒 of visual communication on the newest 🆕 social media platform.

##### 👨‍💻 For Developers

- **App Integration 🔌**: Use the actor as an API 🗝️ to build your own "Threads Downloader" website or mobile application 📱.
- **Automation Pipelines 🤖**: Integrate the tool into your CI/CD 🚀 pipelines to automatically fetch and update media assets for a website or CMS 🖥️.
- **Data Lakes 🌊**: Feed high-quality 💎 media data directly into your analytical pipelines or storage 📦 solutions.

#### 🛡️ Best Practices for Scraping Threads

To ensure the longevity ⏳ of your scraping operations and to maintain a high success 🏆 rate, we recommend following these industry best practices 🛡️.

##### 🏙️ The Power of Residential Proxies

Threads, being part of the Meta 🌐 ecosystem, has extremely sophisticated anti-bot 🤖 protection. If you attempt to scrape hundreds of URLs from a single IP address, especially a datacenter 🖥️ IP, you will likely be blocked 🚫 or shown a login wall.

- **Why use Residential? 🏠**: Residential proxies use IP addresses assigned to real home 🏡 users, making them nearly impossible to distinguish from legitimate traffic 🚗.
- **Cost-Benefit 💰**: While slightly more expensive than datacenter proxies, they provide a much higher 📈 success rate and prevent your tasks from failing 📉 repeatedly.
- **Sticky Sessions 🍯**: Use sticky sessions to maintain the same IP 🌐 for multiple requests to the same URL, which helps in maintaining session integrity 🔐.

##### 🐢 Respecting Rate Limits

Even with proxies 🌍, hitting the platform too hard can lead to trouble 🛑.

- **Intelligent Delays ⏰**: Our tool includes built-in randomized delays. We recommend 💡 not decreasing these unless you are using a very large pool 🌊 of residential proxies.
- **Batch Sizing 📦**: Instead of running 1,000 URLs in one massive 🐘 task, consider breaking them into smaller batches of 100-200. This makes it easier to monitor 👁️ progress and handle any intermittent issues.
- **Error Retries 🔄**: Implement exponential backoff 🔙 when encountering 429 (Too Many Requests) errors.

##### 🔐 Handling Private and Deleted Content

Scrapers cannot access content 📊 that is private or has been deleted.

- **Private Accounts 🔒**: If a Threads user has a private profile, our tool will not be able to fetch 🎣 the media unless the scraper is authenticated (which is not supported 🚫 in the basic version to protect account security).
- **Deleted Posts 🗑️**: Always check the `error` or `status` in your logs 📜. If a post is deleted, the tool will log a 404 🚫 error.
- **Age Restricted Content 🔞**: Some content may be hidden 🙈 behind an age wall, which our scraper does not bypass 🚧 in the standard configuration.

#### ❓ Troubleshooting & FAQ

**Q: Why did I get a 403 Forbidden error? 🚫**
A: This is usually a sign 🚩 that your IP address has been flagged or that you are not using proxies 🌍. Meta (Threads) is very strict 📏. Switch to **Apify Residential Proxies 🏠** and try again.

**Q: Can I download profile pictures? 👤**
A: This specific actor is optimized ⚡ for **Post** media. Profile picture extraction is a separate feature 📂 that may be added in future updates.

**Q: How do I get the direct MP4 file? 💾**
A: The `downloadUrl` provided in the output 📤 is a direct link to the file. You can use tools like `curl`, `wget`, or your browser's "Save As" 🖱️ feature to save it to your disk. Note that these URLs are temporary ⏳ and may expire after a few hours.

**Q: Does it work with the Threads API? 🔌**
A: This tool works by parsing 🔬 the public web interface of Threads. It does not require an official API 🗝️ key from Meta, which is often difficult to obtain and has strict limitations 🚧.

**Q: The download URL doesn't work in my browser. 🌍**
A: Some CDN 📡 links are restricted to the IP address that originally made the request. If you are using proxies 🌍, you might need to download the file through the same proxy or ensure your download client 🖥️ handles the redirects correctly.

**Q: Can I scrape Threads hashtags? #️⃣**
A: This tool requires specific post URLs 🔗. For hashtag scraping, you would first need an actor that discovers 🔍 post URLs from a hashtag page.

#### ✨ Conclusion

The **Threads Video Downloader** is the definitive solution 🎯 for anyone looking to unlock the multimedia potential 🎥 of the Threads platform. By combining high-performance extraction logic 🧠 with professional-grade proxy support 🛡️ and a focus on visual quality 💎, it provides a reliable foundation for any media-centric project 🌟.

We are committed to the continuous improvement 📈 of this tool. As Threads evolves 🐒, so will our downloader. We encourage you to explore 🔍 the various configuration options, integrate it into your creative ✨ or analytical 📊 workflows, and experience the power of seamless media extraction.

**Happy Scraping! 🚀🧵**

# Actor input Schema

## `startUrls` (type: `array`):

List of Threads.net post URLs to scrape.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.threads.net/@threads/post/C01VCVdOUHC"
  ]
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers-hub/threads-video-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("scrapers-hub/threads-video-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call scrapers-hub/threads-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers-hub/threads-video-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Threads Video Downloader",
        "description": "Threads video downloader to download public videos from Threads quickly and in high quality 🎥📲 Perfect for saving videos for offline viewing, content management, archiving, and personal reference.",
        "version": "0.1",
        "x-build-id": "LOX5ALmeDMoedcT7F"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapers-hub~threads-video-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapers-hub-threads-video-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapers-hub~threads-video-downloader/runs": {
            "post": {
                "operationId": "runs-sync-scrapers-hub-threads-video-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapers-hub~threads-video-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-scrapers-hub-threads-video-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Threads Post URLs",
                        "type": "array",
                        "description": "List of Threads.net post URLs to scrape.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "https://www.threads.net/@threads/post/C01VCVdOUHC"
                        ]
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
