{"uid":"cap_rGTkQGJRjBp59u2b1PH_4","slug":"apify-facebook-comments-scraper-via-stableapify-18c6dc0a","name":"Apify Facebook Comments Scraper via StableApify","description":"Search Apify Store actors, start actor runs, and fetch results over x402 and MPP.","url":"https://stableapify.dev/api/actors/apify/facebook-comments-scraper/call","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","required":["startUrls","includeNestedComments","viewOption"],"properties":{"startUrls":{"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"method":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"payload":{"type":"string"},"userData":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"description":"Valid facebook URL"},"viewOption":{"enum":["RANKED_THREADED","RECENT_ACTIVITY","RANKED_UNFILTERED"],"type":"string","default":"RANKED_UNFILTERED","description":"Choose the way the comments are sorted"},"resultsLimit":{"type":"integer","maximum":9007199254740991,"minimum":1,"description":"If this limit is not set as many results as possible are returned"},"includeNestedComments":{"type":"boolean","default":false,"description":"If checked, the actor will return up to 3 levels of comments/replies for each post. Note that each reply/comment will be returned as a separate result."},"onlyCommentsNewerThan":{"type":"string","pattern":"^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$","description":"Limit how far back to the history the scraper should go. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 year, 2 months, 3 days, 4 hours, or 5 minutes. All time values are taken in UTC timezone. This add-on feature is billed separately."}},"description":"Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).","additionalProperties":{}},"options":{"type":"object","properties":{"build":{"type":"string","maxLength":100,"minLength":1},"memory":{"type":"integer","maximum":32768,"minimum":128},"maxItems":{"type":"integer","maximum":100000,"minimum":1}},"description":"Optional Apify run options.","additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LPGwTcMUsV0LE0lrd4eFe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scrapes comments from Facebook posts or pages, including nested replies, with filtering by date and sort order.","exampleAgentPrompt":"Scrape all comments from this Facebook post — https://www.facebook.com/somepage/posts/123456789 — sorted by RANKED_UNFILTERED, include nested replies up to 3 levels deep, and only return comments from the last 30 days.","exampleUseCases":[{"title":"Brand sentiment monitoring on Facebook","prompt":"Pull all comments from our Facebook product announcement post at https://www.facebook.com/ourbrand/posts/987654321, sorted by RANKED_UNFILTERED, and include nested replies so I can see what customers are saying about the launch."},{"title":"Competitive research on viral posts","prompt":"Scrape up to 500 comments from this competitor's viral Facebook post at https://www.facebook.com/competitorpage/posts/112233445 — use RECENT_ACTIVITY sort so I get the freshest reactions — no need for nested replies."},{"title":"Filter recent customer complaints","prompt":"Get all Facebook comments newer than 2024-01-01 from https://www.facebook.com/customerservicepage/posts/556677889, sorted by RANKED_THREADED, and include nested comments so I can see the full complaint threads."}],"resultDescription":"Returns a list of comment objects from the specified Facebook URL, each containing the comment text, author name, timestamp, and (if enabled) nested replies up to 3 levels deep, filtered and sorted according to the specified options.","failureModes":["Invalid or private Facebook URL returns no results or an error","Facebook rate limiting or login-wall blocking access to post comments","Results limit exceeded or truncated if the post has extremely high comment volume","Date filter pattern mismatch causes validation error","Actor timeout for very large comment threads"],"whenToPreferThis":"Use this endpoint when you need to extract public comments from Facebook posts at scale, especially when you require nested reply threads, date-based filtering, or specific sort orders (ranked or recent). It is preferable over generic scraping tools because it is purpose-built for Facebook's comment structure and handles pagination and threading automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:58:20.944Z","isFirstParty":false}