Gab comments API
The replies under a Gab post, newest, oldest or most liked first.
GET /v1/gab/posts/{id}/comments1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/gab/posts/117672526190050854/comments?sort=top",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "117672737279627736", "created_at": "2026-11-24T18:04:36.555Z", "url": "https://gab.com/Noshit13/posts/117672737279627736", "content": "<p><a href=\"https://gab.com/a\" rel=\"nofollow noopener\" target=\"_blank\" class=\"mention\">@a<…", "in_reply_to_id": "117672526190050854", "replies_count": 3, "reblogs_count": 0, "favourites_count": 5, "account": { "id": "5441490", "username": "Noshit13", "acct": "Noshit13", "display_name": "", "note": "<p>God, Donna, Spotty, Red (RIP 12/25)and US ARMY INFANTRY 11C ‼️ N GA Mountains and S Jer…", "url": "https://gab.com/Noshit13", "created_at": "2021-10-09T14:20:19.236Z", "followers_count": 543, "following_count": 522, "statuses_count": 17963, "locked": false, "bot": false, "is_verified": false, "avatar": "https://m3.gab.com/accounts/avatars/005/441/490/original/405f295c6bd3869d.jpg", "…": "18 more fields" }, "media_attachments": [], "revised_at": null, "in_reply_to_account_id": "31", "sensitive": false, "spoiler_text": "", "…": "37 more fields" }, { "id": "117672534810500255", "created_at": "2026-11-24T17:13:07.124Z", "url": "https://gab.com/MidWestGenlNews/posts/117672534810500255", "content": "<p><a href=\"https://gab.com/a\" rel=\"nofollow noopener\" target=\"_blank\" class=\"mention\">@a<…", "in_reply_to_id": "117672526190050854", "replies_count": 2, "reblogs_count": 0, "favourites_count": 2, "account": { "id": "6731929", "username": "MidWestGenlNews", "acct": "MidWestGenlNews", "display_name": "", "note": "<p>Enjoying the MidWest. Weather Wx. Antiques. Character. Clean living.</p>", "url": "https://gab.com/MidWestGenlNews", "created_at": "2025-07-14T09:28:59.976Z", "followers_count": 18, "following_count": 18, "statuses_count": 11275, "locked": false, "bot": false, "is_verified": false, "avatar": "https://m3.gab.com/accounts/avatars/006/731/929/original/82d86db0d61f622f.jpg", "…": "18 more fields" }, "media_attachments": [], "revised_at": null, "in_reply_to_account_id": "31", "sensitive": false, "spoiler_text": "", "…": "37 more fields" }, "… 4 more" ], "meta": { "result_count": 6, "total": 6 }}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A post id or its gab.com URL. Example: 117672526190050854. |
sortquery | "newest" | "oldest" | "top" | One of newest, oldest, top. |
afterquery | string | The previous page’s meta.next_token. |
sincequery | string | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01. |
untilquery | string | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31. |
Response fields
200 with a GabComments, in Gab’s own JSON.
| Field | Type | Description |
|---|---|---|
data | GabStatus[] | |
meta | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of comments. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account or post does not exist or was deleted. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Gab is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Are nested replies included?
Yes, with in_reply_to_id.
Gab is a trademark of Gab AI Inc. We are not affiliated with or endorsed by Gab AI Inc.