GET /v1/facebook/stored/post/comments
Facebook stored comments API: a post's saved comments by post id
Returns the comments stored for one Facebook post, in the order they were stored: text, author, parent comment and time, with next_cursor while has_more is true. Send the numeric post id as q. This is a stored read: a miss is a 404 and never a crawl, and a stored post with no collected comments answers an empty list.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/facebook/stored/post/comments?q=1688249899339100' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/facebook/stored/post/comments",
params={
"q": "1688249899339100",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
q required | query | string | The post’s numeric id, facebook_content_id in a stored answer or id in a live one. |
cursor | query | string | Opaque next_cursor from the previous page. |
limit | query | integer | Comments per page. |
Example response
The example response of the API reference.
json
{
"data": {
"post": {
"content_id": "1688249899339100"
},
"comments": [
{
"facebook_comment_id": "1125478196505563",
"parent_comment_id": null,
"author_facebook_id": "100002649497188",
"author_username": "randomcloud",
"author_name": "Daxesh Dalicha",
"body": "I don't know, how he got any time to do anything else. 🤪",
"likes": null,
"reply_count": null,
"commented_at": "2026-10-12T14:40:42Z"
},
{
"facebook_comment_id": "1129503553380559",
"parent_comment_id": null,
"author_facebook_id": "pfbid0qXyi9CodRZEkV6QzQWKH5pAjhge7kr3RTRW5CeKtxumQthBU8CshSEB48T8gc3SYl",
"author_username": null,
"author_name": "Chase Ayers",
"body": "Man the lies we could get away with before the internet. Those were the days. This guy took it too far though",
"likes": null,
"reply_count": null,
"commented_at": "2026-10-12T13:07:29Z"
}
],
"stored_total": 8,
"next_cursor": "WzU4XQ",
"has_more": true
},
"meta": {
"cost": "$0.0005",
"balance": "$9.9990",
"request_id": "req_a34e18d03c8761e1efb72d80871f1c65"
}
}How it works
The comments stored for one post, in the order they were stored, with next_cursor while has_more is true. A stored post with no collected comment page answers an empty list.
Strictly DB: this reads what the crawler already stored and never crawls. A miss is a 404 and is not billed. Collect more with /v1/facebook/post_comments.
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 | The post is not stored. 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. |