# Facebook Comments Scraper

Collect public comments on Facebook posts, reels and videos.

by Apify Ready to run $0.0025 per result · $0.25 per 100 results

## Example

### You ask your agent

“Get the top comment on this Humans of New York Facebook post: facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl”

### You get

**Post title:** (2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out…

**Date:** 2021-08-15 20:01 UTC

**Text:** This is one of my favorite stories to date. Good nutrition is at the heart of so many solutions. 💚

**Input URL:** https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl

**Comment URL:** https://www.facebook.com/humansofnewyork/posts/pfbid0B9rzZ3gq5JRq6ZJdixru8zu9X3zjz1ZUyCZmGWdV8T6XRG2RJwWmV6htEQHqVDNPl?…

**Likes count:** 440

**Facebook URL:** https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl

**Profile name:** Facebook user

**What your agent sends and gets back (JSON)**

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

### Request

```
{
  "tool_id": "apify.apify-facebook-comments-scraper",
  "input": {
    "input": {
      "startUrls": [
        {
          "url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
        }
      ]
    },
    "maxItems": 1
  }
}
```

### Response

```
{
  "items": [
    {
      "id": "Y29tbWVudDo2Mzc1MjE5MzQyNTUyMTEyXzQ4MTYyNzk5NjQyNDYwNg==",
      "date": "2021-08-15T20:01:24.000Z",
      "text": "This is one of my favorite stories to date. Good nutrition is at the heart of so many solutions. 💚",
      "inputUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl",
      "commentId": "481627996424606",
      "postTitle": "(2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out it’s hard to mess up herbs. So I went to the clearance rack at Home Depot and got some herbs. All of the soil was contaminated, so I backed up a dump truck full…",
      "profileId": "pfbid0Example",
      "commentUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0B9rzZ3gq5JRq6ZJdixru8zu9X3zjz1ZUyCZmGWdV8T6XRG2RJwWmV6htEQHqVDNPl?comment_id=481627996424606",
      "facebookId": "6375219342552112",
      "likesCount": "440",
      "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl",
      "profileName": "Facebook user",
      "threadingDepth": 0
    }
  ],
  "item_count": 1
}
```

## Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Facebook Comments Scraper (tool ID: apify.apify-facebook-comments-scraper). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? [Create your account on the web](https://scrollport.com/sign-up) and connect one from your dashboard later.

## Other tools for this job

[Compare all 3 →](https://scrollport.com/tools/facebook-post-scraper)

- [Facebook Groups Scraper](https://scrollport.com/tools/providers/apify/apify-facebook-groups-scraper) Apify $0.0025 per result $0.0025 per result
- [Facebook Profile Posts](https://scrollport.com/tools/providers/apify/cleansyntax-facebook-profile-posts-scraper) Apify $0.0084 per result $0.0084 per result

## Questions

**Is Facebook Comments Scraper by Apify free?**

Scrollport has no free tier: it costs $0.0025 per result ($0.25 per 100 results), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

**Do I need an API key from Apify?**

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.

## Details

**About this tool**

Collect public comments from up to five Facebook post, reel, photo or video URLs, sorted by most relevant, recent activity or all comments, optionally only those newer than a date. maxItems is split evenly across the posts; replies to comments aren't included. Each comment includes text, date, likes, commenter name and the post it belongs to. You're charged per comment returned plus a small fee per run. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.

**All inputs and outputs**

### Input

`input` object · required

Provider-specific public source, URL or search criteria.

`maxItems` integer · optional

Maximum number of records to return.

minimum: 1 · maximum: 100

### Output

`item_count` number

`items` array

Result records.

**Errors and limits**

- `upstream_error`: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.

---

Canonical page: https://scrollport.com/tools/providers/apify/apify-facebook-comments-scraper
