# Loom Comments Scraper (`neatrat/loom-comments-scraper`) Actor

Extract comments and replies from Loom videos using just a URL or video ID.

- **URL**: https://apify.com/neatrat/loom-comments-scraper.md
- **Developed by:** [Neatrat](https://apify.com/neatrat) (community)
- **Categories:** Videos, Developer tools, Automation
- **Stats:** 8 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 comments

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Loom Comment Scraper

### Introduction

Need to extract comments from Loom videos without manual copying? The Loom Comment Scraper is your solution for automatically retrieving and processing comments from any Loom video. Whether you need to analyze feedback, track discussions, or archive important information from video comments, this tool extracts complete comment threads with just a URL or video ID.

### Features

- **Simple Input Options**: Extract comments using either a Loom video URL or the video ID
- **Multiple Output Formats**: Choose from two different comment formats:
  - Default: Well-structured comments with user details and replies
  - Raw: Complete JSON response with all metadata
- **Automatic URL Parsing**: Handles various Loom URL formats, including share and embed links
- **Clean Data Structure**: Well-organized output with video ID, URL, and comment content
- **Error Handling**: Clear error messages for invalid inputs or unavailable comments
- **Apify Integration**: Seamlessly runs on the Apify platform with structured outputs

### Use Cases

- **Feedback Collection**: Extract user comments and feedback from Loom videos
- **Discussion Analysis**: Analyze conversations happening in comment threads
- **Content Moderation**: Monitor comments for inappropriate content
- **Community Engagement**: Track user interactions and engagement
- **Data Processing**: Feed video comments into NLP pipelines for sentiment analysis
- **Archiving**: Preserve comment discussions from important video communications
- **Batch Processing**: Extract comments from multiple videos in an automated workflow

### How to Use

Getting started with Loom Comment Scraper is simple:

1. **Set Your Parameters**:
   - **URL** or **Video ID**: Provide either the full Loom video URL (like https://www.loom.com/share/473fad25ebd24b5ea8091503253dfecf) or just the video ID (473fad25ebd24b5ea8091503253dfecf)
   - **Return Type**: Choose how you want the comments formatted:
     - Default: Structured comment data with user information and replies (default)
     - Raw: Complete JSON response with all metadata

2. **Run the Scraper**: Launch the actor and let it extract the comment data

3. **Access Results**: View and download the structured comment data from the Apify dataset

### Input Format

You can configure the scraper with the following input parameters:

```json
{
  "url": "https://www.loom.com/share/473fad25ebd24b5ea8091503253dfecf",
  "videoId": "",
  "returnType": "default"
}
```

Or alternatively:

```json
{
  "url": "",
  "videoId": "473fad25ebd24b5ea8091503253dfecf",
  "returnType": "raw"
}
```

#### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| url | String | The complete URL of the Loom video (supports share and embed URLs) |
| videoId | String | The Loom video ID (alternative to providing the URL) |
| returnType | String | Format of the returned comments: "default" or "raw" |

**Note**: You must provide either a URL or videoId. If both are provided, videoId takes precedence.

### Output Format

The scraper generates structured data with the following information:

```json
{
  "videoId": "473fad25ebd24b5ea8091503253dfecf",
  "url": "https://www.loom.com/share/473fad25ebd24b5ea8091503253dfecf",
  "comments": [
    {
      "user": "John Doe",
      "userId": "user_1234",
      "content": "Great video! I have a question about...",
      "date": "2023-08-15T14:25:33Z",
      "childComments": [
        {
          "user": "Jane Smith",
          "userId": "user_5678",
          "content": "I can answer that - you'll want to...",
          "date": "2023-08-15T14:30:15Z"
        }
      ]
    },
    {
      "user": "Alex Johnson",
      "userId": "user_9012",
      "content": "Thanks for sharing this information!",
      "date": "2023-08-15T15:10:22Z",
      "childComments": []
    }
  ]
}
```

When using the "raw" return type, the comments field will contain the complete comment data objects as returned by the Loom API.

### Limitations

- Private Loom videos may not be accessible
- Videos with no comments will return an empty array

### Troubleshooting

If you encounter any issues:

- Verify the Loom video URL or ID is correct
- Check that the video is publicly accessible
- Ensure the video has comments enabled

# Actor input Schema

## `url` (type: `string`):

The URL of the loom video you want to get the comments from.

## `videoId` (type: `string`):

The ID of the loom video you want to get the comments from.

## `returnType` (type: `string`):

Format of the returned comments data

## Actor input object example

```json
{
  "url": "https://www.loom.com/share/57e37a60bce44aa0a7e974e37d2172f1",
  "videoId": "57e37a60bce44aa0a7e974e37d2172f1",
  "returnType": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "url": "https://www.loom.com/share/57e37a60bce44aa0a7e974e37d2172f1",
    "videoId": "57e37a60bce44aa0a7e974e37d2172f1"
};

// Run the Actor and wait for it to finish
const run = await client.actor("neatrat/loom-comments-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 = {
    "url": "https://www.loom.com/share/57e37a60bce44aa0a7e974e37d2172f1",
    "videoId": "57e37a60bce44aa0a7e974e37d2172f1",
}

# Run the Actor and wait for it to finish
run = client.actor("neatrat/loom-comments-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "url": "https://www.loom.com/share/57e37a60bce44aa0a7e974e37d2172f1",
  "videoId": "57e37a60bce44aa0a7e974e37d2172f1"
}' |
apify call neatrat/loom-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neatrat/loom-comments-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GS3ePYC28oejQJ49C/builds/Miv1oNwkbWYqpR14s/openapi.json
