# Discord Message Scraper (`khadinakbar/discord-message-scraper`) Actor

Scrape Discord channel & DM messages via the official API with your own bot or user token — content, author, timestamps, attachments, reactions, replies. HTTP-only, MCP-ready.

- **URL**: https://apify.com/khadinakbar/discord-message-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, MCP servers, AI
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 message scrapeds

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

## Discord Message Scraper

Scrape **Discord channel and DM messages** through the **official Discord REST API** using your own **bot token** (recommended) or user token. Returns clean, flat, MCP-ready records — message content, author, timestamps, attachments, reactions, replies, and a direct jump link — with no browser, no proxy, and official-API-grade reliability.

> Built for community managers, moderators, researchers, and AI agents that need structured Discord message history out of channels they have access to.

### What it does

You supply a Discord token and one or more channel IDs (or channel URLs). The actor pages through each channel's message history newest-first via `GET /channels/{id}/messages`, applies your filters, and writes one record per message to the dataset. It handles Discord rate limits (429 back-off), resumable pagination, and date/message-ID ranges.

### When to use it

- Export a channel's full message history for analysis, backup, or compliance.
- Pull messages from a date range or since a known message ID (incremental scrapes).
- Collect messages from a specific user, containing a keyword, or with attachments.
- Feed structured Discord conversation data to an LLM/agent via Apify MCP.

**When NOT to use it:** for server size, member counts, channel lists, or emoji metadata (no auth needed), use the companion [Discord All-in-One Scraper](https://apify.com/khadinakbar/discord-all-in-one-scraper). This actor reads message *content*, which Discord always gates behind a token.

### Output

One record per message. Example (`detailed` format):

```json
{
  "messageId": "1180000000000000000",
  "channelId": "112233445566778899",
  "channelName": "general",
  "guildId": "998877665544332211",
  "authorId": "223344556677889900",
  "authorUsername": "jdoe",
  "authorGlobalName": "John",
  "authorIsBot": false,
  "content": "gm everyone, the giveaway starts now!",
  "timestamp": "2024-03-01T12:00:00.000Z",
  "editedTimestamp": null,
  "messageType": "default",
  "isPinned": false,
  "mentionsEveryone": true,
  "attachmentCount": 1,
  "embedCount": 0,
  "reactionCount": 12,
  "replyToMessageId": null,
  "jumpUrl": "https://discord.com/channels/998877665544332211/112233445566778899/1180000000000000000",
  "mentionedUserIds": ["223344556677889900"],
  "attachments": [{ "url": "https://cdn.discordapp.com/...", "filename": "banner.png", "size": 84211, "contentType": "image/png", "width": 1200, "height": 630, "isImage": true }],
  "reactions": [{ "emoji": "🔥", "emojiId": null, "count": 12 }],
  "stickerNames": []
}
````

| Field | Type | Description |
|---|---|---|
| `messageId` | string | Discord message snowflake ID |
| `channelId` / `channelName` | string | Source channel ID and name |
| `guildId` | string | null | Server ID (null for DMs) |
| `authorId` / `authorUsername` / `authorGlobalName` | string | Author identity |
| `authorIsBot` | boolean | Whether the author is a bot |
| `content` | string | Raw message text |
| `timestamp` / `editedTimestamp` | ISO 8601 | Sent / last-edited time |
| `messageType` | string | `default`, `reply`, `thread_starter`, … |
| `isPinned` / `mentionsEveryone` | boolean | Message flags |
| `attachmentCount` / `embedCount` / `reactionCount` | integer | Counts |
| `replyToMessageId` | string | null | Parent message for replies |
| `jumpUrl` | string | Direct link to the message |
| `mentionedUserIds`, `attachments[]`, `reactions[]`, `stickerNames[]` | array | Present in `detailed` format only |

Choose `concise` response format to drop the arrays and keep only counts — a smaller, token-efficient payload for LLM/agent use.

### Pricing

Pay-per-event (plus optional pay-per-usage):

| Event | Price |
|---|---|
| Actor start | $0.00005 |
| **Message scraped** | **$0.0005 / message** |

Cost is roughly `channels × maxMessagesPerChannel × $0.0005`. Scraping 1,000 messages costs about **$0.50**. The actor logs the upper-bound cost before it starts charging.

### How to get a Discord bot token (recommended)

1. Go to **discord.com/developers/applications** → **New Application**.
2. Open the **Bot** tab → **Reset Token** → copy the token. Paste it into the `Discord token` input (it is stored as a secret).
3. Under **Bot → Privileged Gateway Intents**, enable **Message Content Intent**.
4. Open **OAuth2 → URL Generator**, tick **bot** scope and the **View Channels** + **Read Message History** permissions, open the generated URL, and add the bot to your server.
5. Enable **Developer Mode** in Discord (Settings → Advanced), right-click a channel → **Copy Channel ID**, and paste it into `channels`.

Keep `Token type` = **Bot** (the default).

#### User tokens

Setting `Token type` = **User** lets the actor read any channel/DM the account can already see, without adding a bot. **This is self-botting and violates Discord's Terms of Service — it can get the account banned.** Use only on accounts you accept that risk for.

### Input example

```json
{
  "discordToken": "YOUR_BOT_TOKEN",
  "tokenType": "bot",
  "channels": ["112233445566778899"],
  "maxMessagesPerChannel": 500,
  "afterDate": "2024-01-01",
  "filterContains": "giveaway",
  "responseFormat": "detailed"
}
```

### Run via API

```bash
curl -X POST "https://api.apify.com/v2/acts/khadinakbar~discord-message-scraper/runs?token=APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "discordToken": "YOUR_BOT_TOKEN", "channels": ["112233445566778899"], "maxMessagesPerChannel": 200 }'
```

### Use with AI agents (MCP)

This actor is MCP-ready. Connect via `https://mcp.apify.com?tools=khadinakbar/discord-message-scraper` and an agent can call it with a channel ID and token, receiving structured JSON it can reason over directly. Use `responseFormat: "concise"` to minimize token usage.

### Tips & behavior

- **Threads:** pass a thread's own channel ID in `channels` to scrape its messages.
- **Resuming:** save the oldest `messageId` you received and pass it as `beforeMessageId` next run; or use `afterMessageId` to fetch only newer messages.
- **Inaccessible channels** (bot not in server, missing Read Message History, or deleted) are skipped with a warning. If *every* channel is inaccessible, the run fails with a clear message rather than returning an empty success.
- **Filters** (`filterContains`, `filterFromUserId`, `onlyWithAttachments`) are applied after fetching, so the per-channel cap counts post-filter results.

### FAQ

**Do I need a bot token?** Yes — Discord requires authentication to read messages. A bot token is the legitimate path. User tokens work but violate Discord TOS.

**Does it need a proxy?** No. Discord rate-limits per token, not per IP, so the actor talks directly to the API with no proxy cost.

**How fast is it?** Up to ~100 messages per API request, throttled to respect Discord's rate limits. Expect a few thousand messages per minute per token.

**Can it read DMs?** With a user token, yes — pass the DM channel ID. Bot tokens cannot read user DMs.

**Will it get blocked?** No anti-bot is involved; it's the official API. The only failure modes are an invalid token (401) or a channel the token can't access (403/404).

### Legal & compliance

This actor accesses Discord only with credentials **you provide**, for channels **you have permission to read**. You are responsible for complying with Discord's [Terms of Service](https://discord.com/terms), [Developer Terms](https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service), applicable privacy laws (e.g. GDPR), and any server rules. Scrape only data you are authorized to access. User-token (self-bot) usage violates Discord's Terms of Service; the bot-token path is recommended. This tool is provided for legitimate moderation, backup, research, and analytics use.

### Related actors

- [Discord All-in-One Scraper](https://apify.com/khadinakbar/discord-all-in-one-scraper) — server size, channels, emojis, and discovery (no token needed).

# Actor input Schema

## `discordToken` (type: `string`):

Your Discord authentication token used to read messages via the official API. Provide a bot token (recommended — create one at discord.com/developers, give it the 'Read Message History' permission, and add it to the target server) or a user token. Stored as a secret and never written to logs. This is NOT your account password and NOT a server invite link.

## `tokenType` (type: `string`):

Whether the token above is a bot token or a user token. Bot tokens are the legitimate, Discord-sanctioned path and only read channels the bot was added to. User tokens (self-botting) can read any channel the account already sees but VIOLATE Discord's Terms of Service and can get the account banned — use at your own risk. Defaults to 'bot'.

## `channels` (type: `array`):

One or more Discord channels to scrape. Accepts a raw channel ID (e.g. '112233445566778899') or a full channel/message URL (e.g. 'https://discord.com/channels/9988.../1122...'). Enable Developer Mode in Discord, then right-click a channel and 'Copy Channel ID'. This is the channel, NOT a server invite or a guild ID.

## `maxMessagesPerChannel` (type: `integer`):

Upper bound on how many messages to return for each channel, counted after filters are applied. The scraper pages newest-first until this cap, the channel's history ends, or the date/ID range is exceeded. Defaults to 1000. Lower it to control cost — total cost is roughly channels x this number x $0.0005.

## `newestFirst` (type: `boolean`):

Output order within each channel. True returns newest messages first (Discord's native order); false reverses each channel's batch to oldest-first chronological order. Does not change which messages are returned, only their order in the dataset. Defaults to true.

## `beforeDate` (type: `string`):

Only return messages posted strictly before this moment. Accepts any ISO 8601 date or datetime, e.g. '2024-12-31' or '2024-12-31T23:59:59Z'. Acts as the upper bound / pagination start point. Leave empty to start from the most recent message.

## `afterDate` (type: `string`):

Only return messages posted strictly after this moment. Accepts any ISO 8601 date or datetime, e.g. '2024-01-01'. Acts as the lower bound — paging stops once messages older than this are reached. Leave empty for no lower bound.

## `beforeMessageId` (type: `string`):

Only return messages older than this message snowflake ID (exclusive). Takes precedence over 'Before date' when both are set. Example: '1180000000000000000'. Use it to resume a previous scrape exactly where it stopped.

## `afterMessageId` (type: `string`):

Only return messages newer than this message snowflake ID (exclusive). Takes precedence over 'After date' when both are set. Example: '1170000000000000000'. Use it for incremental scrapes that only pick up new messages.

## `filterFromUserId` (type: `string`):

Keep only messages authored by this Discord user ID. Example: '223344556677889900'. Right-click a user with Developer Mode on and 'Copy User ID'. This is a user ID, NOT a username or display name.

## `filterContains` (type: `string`):

Keep only messages whose content includes this substring (case-insensitive). Example: 'giveaway'. Matching happens client-side after fetching, so it does not reduce the number of API calls. Leave empty to keep all messages.

## `onlyWithAttachments` (type: `boolean`):

When true, keep only messages that have at least one file/image/video attachment. Useful for harvesting media URLs. Defaults to false (all messages kept).

## `responseFormat` (type: `string`):

Shape of each output record. 'detailed' (default) includes the full attachments, reactions, mentions, and sticker arrays. 'concise' keeps only counts (attachmentCount, reactionCount, embedCount) for a smaller, token-efficient payload — ideal for LLM/agent consumption.

## Actor input object example

```json
{
  "tokenType": "bot",
  "channels": [
    "112233445566778899",
    "https://discord.com/channels/998877665544332211/112233445566778899"
  ],
  "maxMessagesPerChannel": 1000,
  "newestFirst": true,
  "onlyWithAttachments": false,
  "responseFormat": "detailed"
}
```

# Actor output Schema

## `dataset` (type: `string`):

One record per message across all scraped channels. Download as JSON, CSV, Excel, HTML, or RSS.

# 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 = {
    "channels": [
        "112233445566778899"
    ],
    "maxMessagesPerChannel": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/discord-message-scraper").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 = {
    "channels": ["112233445566778899"],
    "maxMessagesPerChannel": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/discord-message-scraper").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 '{
  "channels": [
    "112233445566778899"
  ],
  "maxMessagesPerChannel": 1000
}' |
apify call khadinakbar/discord-message-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=khadinakbar/discord-message-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Discord Message Scraper",
        "description": "Scrape Discord channel & DM messages via the official API with your own bot or user token — content, author, timestamps, attachments, reactions, replies. HTTP-only, MCP-ready.",
        "version": "0.1",
        "x-build-id": "Zivwwq7ksGbg1QF84"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/khadinakbar~discord-message-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-khadinakbar-discord-message-scraper",
                "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/khadinakbar~discord-message-scraper/runs": {
            "post": {
                "operationId": "runs-sync-khadinakbar-discord-message-scraper",
                "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/khadinakbar~discord-message-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-khadinakbar-discord-message-scraper",
                "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": [
                    "channels"
                ],
                "properties": {
                    "discordToken": {
                        "title": "Discord token",
                        "type": "string",
                        "description": "Your Discord authentication token used to read messages via the official API. Provide a bot token (recommended — create one at discord.com/developers, give it the 'Read Message History' permission, and add it to the target server) or a user token. Stored as a secret and never written to logs. This is NOT your account password and NOT a server invite link."
                    },
                    "tokenType": {
                        "title": "Token type",
                        "enum": [
                            "bot",
                            "user"
                        ],
                        "type": "string",
                        "description": "Whether the token above is a bot token or a user token. Bot tokens are the legitimate, Discord-sanctioned path and only read channels the bot was added to. User tokens (self-botting) can read any channel the account already sees but VIOLATE Discord's Terms of Service and can get the account banned — use at your own risk. Defaults to 'bot'.",
                        "default": "bot"
                    },
                    "channels": {
                        "title": "Channel IDs or URLs",
                        "type": "array",
                        "description": "One or more Discord channels to scrape. Accepts a raw channel ID (e.g. '112233445566778899') or a full channel/message URL (e.g. 'https://discord.com/channels/9988.../1122...'). Enable Developer Mode in Discord, then right-click a channel and 'Copy Channel ID'. This is the channel, NOT a server invite or a guild ID.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxMessagesPerChannel": {
                        "title": "Max messages per channel",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Upper bound on how many messages to return for each channel, counted after filters are applied. The scraper pages newest-first until this cap, the channel's history ends, or the date/ID range is exceeded. Defaults to 1000. Lower it to control cost — total cost is roughly channels x this number x $0.0005.",
                        "default": 1000
                    },
                    "newestFirst": {
                        "title": "Newest first",
                        "type": "boolean",
                        "description": "Output order within each channel. True returns newest messages first (Discord's native order); false reverses each channel's batch to oldest-first chronological order. Does not change which messages are returned, only their order in the dataset. Defaults to true.",
                        "default": true
                    },
                    "beforeDate": {
                        "title": "Before date (optional)",
                        "type": "string",
                        "description": "Only return messages posted strictly before this moment. Accepts any ISO 8601 date or datetime, e.g. '2024-12-31' or '2024-12-31T23:59:59Z'. Acts as the upper bound / pagination start point. Leave empty to start from the most recent message."
                    },
                    "afterDate": {
                        "title": "After date (optional)",
                        "type": "string",
                        "description": "Only return messages posted strictly after this moment. Accepts any ISO 8601 date or datetime, e.g. '2024-01-01'. Acts as the lower bound — paging stops once messages older than this are reached. Leave empty for no lower bound."
                    },
                    "beforeMessageId": {
                        "title": "Before message ID (optional)",
                        "type": "string",
                        "description": "Only return messages older than this message snowflake ID (exclusive). Takes precedence over 'Before date' when both are set. Example: '1180000000000000000'. Use it to resume a previous scrape exactly where it stopped."
                    },
                    "afterMessageId": {
                        "title": "After message ID (optional)",
                        "type": "string",
                        "description": "Only return messages newer than this message snowflake ID (exclusive). Takes precedence over 'After date' when both are set. Example: '1170000000000000000'. Use it for incremental scrapes that only pick up new messages."
                    },
                    "filterFromUserId": {
                        "title": "Only from user ID (optional)",
                        "type": "string",
                        "description": "Keep only messages authored by this Discord user ID. Example: '223344556677889900'. Right-click a user with Developer Mode on and 'Copy User ID'. This is a user ID, NOT a username or display name."
                    },
                    "filterContains": {
                        "title": "Contains text (optional)",
                        "type": "string",
                        "description": "Keep only messages whose content includes this substring (case-insensitive). Example: 'giveaway'. Matching happens client-side after fetching, so it does not reduce the number of API calls. Leave empty to keep all messages."
                    },
                    "onlyWithAttachments": {
                        "title": "Only messages with attachments",
                        "type": "boolean",
                        "description": "When true, keep only messages that have at least one file/image/video attachment. Useful for harvesting media URLs. Defaults to false (all messages kept).",
                        "default": false
                    },
                    "responseFormat": {
                        "title": "Response format",
                        "enum": [
                            "detailed",
                            "concise"
                        ],
                        "type": "string",
                        "description": "Shape of each output record. 'detailed' (default) includes the full attachments, reactions, mentions, and sticker arrays. 'concise' keeps only counts (attachmentCount, reactionCount, embedCount) for a smaller, token-efficient payload — ideal for LLM/agent consumption.",
                        "default": "detailed"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
