GET /v1/facebook/post_comment_replies
Facebook comment replies API: replies to a comment by comment id
Returns the replies to one Facebook comment as Page[Comment], 10 a page: text, time and author. Send the comment id as feedback_id and the URL of the post it is on as url. A comment with no replies answers an empty page.
- Price
- $0.0005 per 10 results
- Billing
- $0.0005/10
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/facebook/post_comment_replies?feedback_id=1428109295963941&url=https%3A%2F%2Fwww.facebook.com%2Fphoto%2F%3Ffbid%3D1688249899339100&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/facebook/post_comment_replies",
params={
"feedback_id": "1428109295963941",
"url": "https://www.facebook.com/photo/?fbid=1688249899339100",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
feedback_id required | query | string | A comment’s numeric id from /v1/facebook/post_comments, or its extra.feedback_id with expansion_token. |
expansion_token | query | string | Only with an extra.feedback_id as feedback_id: the same comment’s extra.expansion_token from /v1/facebook/post_comments. Facebook refuses a token older than 7 days, which answers 400. A numeric comment id needs no token, because the crawler reads a fresh one. |
url required | query | string | The URL of the post the comment is on, the same post you sent to /v1/facebook/post_comments. Required. |
since | query | string | Stop at this date. 2025-09-21 means midnight UTC (2025-09-21T00:00:00Z). Datetimes must use RFC3339 with a timezone, for example 2025-09-21T09:00:00+09:00. 365d means 365 days before submission. Invalid calendar dates return 400. With max_pages, the first boundary reached stops the walk. since alone creates a job. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native Facebook cursor from a raw page answers 400. Result download cursors belong to the results route. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Facebook (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | true returns the upstream JSON exactly as Facebook answered it instead of the normalized Page[Comment]. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"items": [
{
"id": "1449114220650169",
"text": "Parker Lamoreaux true of every religion",
"created_at": "2026-10-12T16:42:45+00:00",
"likes": null,
"replies": null,
"liked_by_owner": null,
"owner": {
"id": "pfbid02U66WHMTVqbk1LhkqhBKKLrFdEidLp4FMmb26vhGBCeMGkHLKxqPBhshGuzpSquPxl",
"username": "scott.nelson.714049",
"full_name": "Scott Nelson",
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {}
},
"extra": {
"feedback_id": "ZmVlZGJhY2s6cGZiaWQwMms4S2szSEJWeHlObTlCM1dLWjRLMktRWmpON3VSMUFjM1VNVkpSWTV5a2Z6aktqbTJpc3NDdWdFZ3kySmpXZnRTRUpldTZWSEc4UG0zd0NIRmQ5V3g3Zm5qb1pwSEtwUDJRbA==",
"parent_comment_id": "ZmVlZGJhY2s6cGZiaWQwM2h0YkZrdjhkNW9uR1NaRjhGZlRmNDNONmE3U1A5YVF3cU5WTERlUXU3UTg3RFAyZFdKUVJIMng1bkVoZjJ4Uk42dWVjc2ZmYU5ubVhucGJZRmtVWWh0amlXWkF1b0ZVUzZRbA==",
"expansion_token": "MjoxNzk1MTMxMDA2OgF_i4GW0ITUrX5ps8DRF06ZUf2etWL-SFO0KFTCFu3oeDVUaxdMf85zAORUoQj5wk_xTv9udTwjJoPI7nmCGu1LTH5b2EdOvFgmNsk4h8LEvjw5vUQEahwjHDhGBKHfjpyiwPo4fZEg818vsvqSO0VLFmDwJL4nipArYCPlcuEElrnviaSsTTrbK4OmbrrRTADTssX7onLjUpbHCNAoWuaFj-Wlsba8…"
}
},
{
"id": "2034312820609931",
"text": "Parker Lamoreaux very well said",
"created_at": "2026-10-12T16:45:05+00:00",
"likes": null,
"replies": null,
"liked_by_owner": null,
"owner": {
"id": "pfbid02eENXisMHXFQUaBd1NraCG5YmTXCAasBGoxkL2bmoAwMLgTTpBpEokdvAAFgG19El",
"username": "people",
"full_name": "Kevin Scruggs",
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {}
},
"extra": {
"feedback_id": "ZmVlZGJhY2s6cGZiaWQwdVJXN0ZINldpMXBHWEdvYlNNYXllYThaTjF5ZHR1TDhMMWlibzdzUnNxaHdEc3E3ODJZdVFlZEpMaUs1ZWlCNGNNQXZKQWFUVHMybmFORHVrZFU2NWRGVWdnWXBLS1l2VG9s",
"parent_comment_id": "ZmVlZGJhY2s6cGZiaWQwM2h0YkZrdjhkNW9uR1NaRjhGZlRmNDNONmE3U1A5YVF3cU5WTERlUXU3UTg3RFAyZFdKUVJIMng1bkVoZjJ4Uk42dWVjc2ZmYU5ubVhucGJZRmtVWWh0amlXWkF1b0ZVUzZRbA==",
"expansion_token": "MjoxNzk1MTMxMDA2OgF_OJmjlkw3A8mmiMcsLUMun2DbdTWF7FBPhlSRsHonckQRB3f4VoUFHX5o_iHyS7DQmN7NSM7KP_OExljQIpFspNfqQoNcP6AcTgFQDCsMh5jRjSImhVYymCxb4q1KFXy_oelbM2IwXViAAL-3Y6wwqp8VkydBOGhaYPj3UJCtc2Fo2NuEntgbdBYAkL6bvLIFEAH1YmcXTN-JWQCGsBUuL628kBYn…"
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-11-19T23:30:07.004037+00:00",
"count": 2,
"signed_in": false
}
],
"next_cursor": "eyJhZnRlciI6Ik1Ub3hOemsxTVRNeE1EQTJPZ0ZfOWlVV3V5SEw4WWVhLS12Qm11bTZOWktGb00yaXZPWmtMOFFIT1pmUmJycklHOXVDSVU2M1dJOVp2eFVldGJ2WDVZaVFvX2NucG9lUEJiZDYwWHFZUkF1bllxd2RIMWdoTWl6bVhQRzg3Z3ZRMU5ZanloeW9kVTdPZWpuV19HelVKb1ltMDR3RHRoZ1lhZU1LUXZqX1ls…",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": null,
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-11-19T23:30:07.004037+00:00",
"cost": "$0.0005",
"balance": "$9.9995",
"request_id": "req_6055af0b3f439996f3ac4aaaaed12358"
}
}How it works
The replies to one comment, 10 a page, read on the page of the post the comment is on. A call by the comment’s numeric id costs the crawler one more request, which reads its current feedback id and token. A comment with no replies answers an empty page. With max_pages=1, returns Page[Comment] under data; with get_raw=true returns the upstream JSON.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs. Facebook sets every page’s size, so there is no page_size.
A field Facebook does not carry is null, a list it does not carry is [], and Facebook-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Billing: $0.0005 per 10 unique returned items (one native page), rounded up to a minimum of one billing unit; a get_raw=true page bills one unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Facebook account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |