# Home Assistant MCP Server (`parseforge/home-assistant-mcp-server`) Actor

Control your Home Assistant smart home devices through AI agents using Model Context Protocol (MCP). Get states, call services, list entities, and manage lights, switches, sensors, climate controls, and more. Perfect for AI-powered home automation and voice assistants.

- **URL**: https://apify.com/parseforge/home-assistant-mcp-server.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Agents, MCP servers, Automation
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 🏠 Home Assistant MCP Server

> 🚀 **Control your smart home through AI assistants in seconds.** Manage lights, switches, sensors, climate, and media players. No coding, no custom server setup required.

> 🕒 **Last updated:** 2026-04-23 · **🛠️ 5 tools** · **📚 2 resources** · **🔌 Full MCP Protocol support** · **💰 Pay Per Event pricing**

Home Assistant is the most popular open-source home automation platform, connecting hundreds of smart device brands into one unified system. This MCP (Model Context Protocol) server lets AI assistants interact with your Home Assistant instance directly. It provides **5 tools** (get_states, get_state, call_service, get_entities, get_services) and **2 resources** (entities list, services list) so your AI can read sensor data, toggle lights, adjust thermostats, play media, and call any Home Assistant service.

The server runs in standby mode on Apify's infrastructure, meaning it stays active and responds instantly to requests. You provide your Home Assistant URL and a long-lived access token in each request body. There is no startup delay, no Docker containers to manage, and no port forwarding required. Just connect your AI assistant to this MCP endpoint and start controlling your smart home with natural language commands.

| 🎯 Target Audience | 💡 Use Cases |
|---|---|
| Smart home enthusiasts | Control devices through AI chat interfaces |
| Home automation developers | Build AI-driven automation workflows |
| IoT researchers | Prototype voice and text-based device control |
| Accessibility advocates | Enable hands-free home control via AI |
| System integrators | Connect Home Assistant to AI-driven dashboards |
| Tech hobbyists | Experiment with MCP protocol and smart devices |

---

### 📋 What the Home Assistant MCP Server does

- 🔌 **Get all entity states** to see every device, sensor, and switch in your Home Assistant
- 🎯 **Get specific entity state** to check the current value of any sensor, light, or switch
- 🛠️ **Call any service** to toggle lights, set temperatures, play media, or trigger automations
- 📋 **List all entities** to discover available devices and their entity IDs
- 📚 **List all services** to see every action your Home Assistant supports
- 💰 **Pay Per Event pricing** so you only pay for the requests you make

The MCP server acts as a bridge between AI assistants and your Home Assistant instance. When your AI needs to check a temperature sensor, it calls the get_state tool with the entity ID. When it needs to turn on a light, it calls call_service with the appropriate domain, service, and entity. The server forwards these requests to your Home Assistant's REST API and returns the results to the AI.

> 💡 **Why it matters:** Without an MCP server, connecting an AI assistant to Home Assistant requires custom code, API wrappers, and server management. This actor handles all of that, giving your AI direct access to your smart home through a standard protocol.

---

### 🎬 Full Demo

_🚧 Coming soon..._

---

### ⚙️ Input

<table>
<tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr>
<tr><td colspan="4"><i>This actor runs in standby mode. No input is required at startup. Credentials are provided in each request body.</i></td></tr>
</table>

**Each request body must include:**

| Field | Type | Required | Description |
|---|---|---|---|
| **homeAssistantUrl** | string | Yes | URL of your Home Assistant instance (e.g., `https://homeassistant.local:8123`) |
| **homeAssistantApiKey** | string | Yes | Long-lived access token from Home Assistant |

**Example 1: Get all entity states**
```json
{
  "tool": "get_states",
  "homeAssistantUrl": "https://homeassistant.local:8123",
  "homeAssistantApiKey": "your_long_lived_access_token"
}
````

**Example 2: Call a service to toggle a light**

```json
{
  "tool": "call_service",
  "domain": "light",
  "service": "toggle",
  "entity_id": "light.living_room",
  "homeAssistantUrl": "https://homeassistant.local:8123",
  "homeAssistantApiKey": "your_long_lived_access_token"
}
```

> ⚠️ **Good to Know:** You need a running Home Assistant instance and a long-lived access token. Create the token at Profile > Long-Lived Access Tokens in your Home Assistant dashboard. Your Home Assistant must be accessible from the internet (or use a tunnel like Nabu Casa).

***

### 📊 Output

#### 🧾 Schema

| Emoji | Field | Type | Description |
|---|---|---|---|
| 🆔 | entity\_id | string | Unique identifier for the device or sensor |
| 📊 | state | string | Current state value (on, off, temperature, etc.) |
| 🏷️ | attributes | object | Device attributes (brightness, color, unit, etc.) |
| 📅 | last\_changed | string | When the state last changed |
| 📅 | last\_updated | string | When the state was last refreshed |
| 🔧 | domain | string | Entity domain (light, switch, sensor, etc.) |
| 📋 | friendly\_name | string | Human-readable device name |
| ⚠️ | error | string | Error message if the request failed |

#### 📦 Sample records

<details>
<summary>📄 Light entity state</summary>

```json
{
  "entity_id": "light.living_room",
  "state": "on",
  "attributes": {
    "friendly_name": "Living Room Light",
    "brightness": 255,
    "color_temp": 370,
    "supported_features": 63
  },
  "last_changed": "2026-04-16T10:30:00.000Z",
  "last_updated": "2026-04-16T10:30:00.000Z"
}
```

</details>

<details>
<summary>📄 Temperature sensor state</summary>

```json
{
  "entity_id": "sensor.outdoor_temperature",
  "state": "72.4",
  "attributes": {
    "friendly_name": "Outdoor Temperature",
    "unit_of_measurement": "F",
    "device_class": "temperature"
  },
  "last_changed": "2026-04-16T11:00:00.000Z",
  "last_updated": "2026-04-16T11:05:00.000Z"
}
```

</details>

<details>
<summary>📄 Service call response</summary>

```json
{
  "domain": "light",
  "service": "toggle",
  "entity_id": "light.living_room",
  "result": "success",
  "new_state": "off"
}
```

</details>

***

### ✨ Why choose this Actor

| Feature | Details |
|---|---|
| 🔌 Full MCP support | Standard Model Context Protocol for AI assistant integration |
| 🛠️ 5 tools | Get states, get state, call service, list entities, list services |
| 📚 2 resources | Entities list and services list for discovery |
| ⚡ Standby mode | Always running, instant response with no cold start |
| 🏠 Any device | Works with any device integrated into Home Assistant |
| 💰 Pay Per Event | Only pay for the requests you actually make |
| 🔒 Secure | Credentials sent per-request, never stored |

> 📊 **Control any of the 2,000+ device integrations supported by Home Assistant through a single MCP endpoint.**

***

### 📈 How it compares to alternatives

| Feature | This Actor | Self-Hosted MCP | Custom API Wrapper |
|---|---|---|---|
| No server management | ✅ | ❌ | ❌ |
| Standard MCP protocol | ✅ | ✅ | ❌ |
| Instant response (standby) | ✅ | Depends | Depends |
| Pay Per Event pricing | ✅ | ❌ | ❌ |
| Works with any AI assistant | ✅ | ✅ | Custom |
| No coding required | ✅ | ❌ | ❌ |
| Automatic scaling | ✅ | ❌ | ❌ |

Connect your AI to Home Assistant in minutes instead of building and maintaining custom infrastructure.

***

### 🚀 How to use

1. **Create an Apify account** - [Sign up free with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp)
2. **Set up Home Assistant** - Install Home Assistant and integrate your smart devices
3. **Create an access token** - Go to Profile > Long-Lived Access Tokens in Home Assistant
4. **Start the MCP Server** - Launch the actor in standby mode on Apify
5. **Connect your AI assistant** - Point your MCP-compatible AI to the actor's endpoint with your credentials

> ⏱️ **Setup takes under 5 minutes. The server stays running and responds to requests instantly.**

***

### 💼 Business use cases

<table>
<tr>
<td width="50%"><b>🏠 Smart Home Control</b>
<ul>
<li>Toggle lights and switches through AI chat</li>
<li>Check sensor readings with natural language</li>
<li>Adjust thermostats and climate controls remotely</li>
<li>Trigger automation scenes via AI commands</li>
</ul>
</td>
<td width="50%"><b>🔧 Development & Prototyping</b>
<ul>
<li>Build AI-driven home automation prototypes</li>
<li>Test MCP protocol integrations with real devices</li>
<li>Develop custom AI assistants for smart buildings</li>
<li>Create voice-controlled device management systems</li>
</ul>
</td>
</tr>
<tr>
<td width="50%"><b>♿ Accessibility</b>
<ul>
<li>Enable hands-free home control for mobility-limited users</li>
<li>Create text-based interfaces for hearing-impaired users</li>
<li>Build simplified AI interfaces for elderly care</li>
<li>Automate routine tasks with conversational triggers</li>
</ul>
</td>
<td width="50%"><b>📊 Monitoring & Analytics</b>
<ul>
<li>Collect sensor data for energy usage analysis</li>
<li>Monitor home security sensors through AI dashboards</li>
<li>Track environmental conditions across rooms</li>
<li>Build reporting systems from device state data</li>
</ul>
</td>
</tr>
</table>

***

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20Home%20Assistant%20MCP%20Server%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20Home%20Assistant%20MCP%20Server%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20Home%20Assistant%20MCP%20Server%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20Home%20Assistant%20MCP%20Server%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating Home Assistant MCP Server

Integrate the Home Assistant MCP Server into your workflow using the Apify API or client libraries.

**Node.js:**

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor("parseforge/home-assistant-mcp-server").call({});
// The actor runs in standby mode - connect to it via the MCP endpoint
console.log("MCP server running at:", run.defaultKeyValueStoreId);
```

**Python:**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("parseforge/home-assistant-mcp-server").call(run_input={})
## The actor runs in standby mode - connect to it via the MCP endpoint
print("MCP server running")
```

- 📖 [Apify API reference](https://docs.apify.com/api/v2)
- 🐍 [Python client docs](https://docs.apify.com/api/client/python)
- 📦 [Node.js client docs](https://docs.apify.com/api/client/js)

**Schedules:** The MCP server runs in standby mode, so it stays active continuously. No scheduling is needed. It responds to requests as they come in, with no cold start delay.

### 🔌 Integrate with any app

- 🔗 **Make (Integromat)** - Connect Home Assistant events to 1,500+ apps and services
- 🔗 **Zapier** - Trigger workflows based on Home Assistant state changes
- 🔗 **Slack** - Get notified about smart home events in your channel
- 🔗 **Airbyte** - Stream sensor data into your data warehouse for analytics
- 🔗 **GitHub** - Store device configuration and automation scripts
- 🔗 **Google Drive** - Log sensor readings to spreadsheets automatically

***

### 🔗 Recommended Actors

| Actor | Description |
|---|---|
| [Markdown to PDF MCP Server](https://apify.com/parseforge/markdown-to-pdf-mcp) | Convert markdown documents to PDF through MCP protocol |
| [HTML to JSON Smart Parser](https://apify.com/parseforge/html-to-json-smart-parser) | Parse HTML content into structured JSON data |
| [Smart Apify Actor Scraper](https://apify.com/parseforge/smart-apify-actor-scraper) | Discover and analyze Apify actors with quality metrics |
| [Lead Formatter Tool](https://apify.com/parseforge/lead-formatter) | Format and enrich lead data for CRM systems |
| [MultiSite URL Shortener](https://apify.com/parseforge/multisite-url-shortener) | Generate shortened URLs across multiple services |

> 💡 **Pro Tip:** Combine the Home Assistant MCP Server with Make or Zapier to create automated workflows that respond to smart home events with external actions.

***

**🆘 Need Help?** [**Open our contact form**](https://tally.so/r/BzdKgA) and we will get back to you within 24 hours. We are happy to help with custom setups, integrations, or feature requests.

***

> **Disclaimer:** This actor is not affiliated with, endorsed by, or connected to Home Assistant or Nabu Casa. It integrates with Home Assistant through its published REST API. Use responsibly and in accordance with applicable terms of service.

# Actor input Schema

## Actor input object example

```json
{}
```

# 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("parseforge/home-assistant-mcp-server").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("parseforge/home-assistant-mcp-server").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 parseforge/home-assistant-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/home-assistant-mcp-server",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Home Assistant MCP Server",
        "description": "Control your Home Assistant smart home devices through AI agents using Model Context Protocol (MCP). Get states, call services, list entities, and manage lights, switches, sensors, climate controls, and more. Perfect for AI-powered home automation and voice assistants.",
        "version": "0.1",
        "x-build-id": "vANFpcAxmuTLrSWrD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~home-assistant-mcp-server/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-home-assistant-mcp-server",
                "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/parseforge~home-assistant-mcp-server/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-home-assistant-mcp-server",
                "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/parseforge~home-assistant-mcp-server/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-home-assistant-mcp-server",
                "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",
                "properties": {}
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
