Gab search API
Search Gab posts by keyword, newest first.
GET /v1/gab/search1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/gab/search?q=bitcoin",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "117674316035332759", "created_at": "2026-11-25T00:46:06.459Z", "url": "https://gab.com/Steven77/posts/117674316035332759", "content": "<p><a href=\"/tags/NFSCMultiTranslation6\" rel=\"nofollow noopener\" target=\"_blank\" class=\"ha…", "in_reply_to_id": null, "replies_count": 0, "reblogs_count": 0, "favourites_count": 0, "account": { "id": "1734542", "username": "Steven77", "acct": "Steven77", "display_name": "Steven", "note": "<p>NFSC is my country...</p><p><a href=\"https://nfscofficial.com/\" rel=\"nofollow noopener\"…", "url": "https://gab.com/Steven77", "created_at": "2020-10-26T01:52:10.644Z", "followers_count": 1305, "following_count": 3223, "statuses_count": 42208, "locked": true, "bot": false, "is_verified": false, "avatar": "https://m3.gab.com/accounts/avatars/001/734/542/original/deec80864cb3e436.jpg", "…": "18 more fields" }, "media_attachments": [], "revised_at": null, "in_reply_to_account_id": null, "sensitive": false, "spoiler_text": "", "…": "37 more fields" }, { "id": "117674314489102469", "created_at": "2026-11-25T00:45:42.866Z", "url": "https://gab.com/coffeeMUGZ/posts/117674314489102469", "content": "<p><a href=\"https://gab.com/BlackPilled\" rel=\"nofollow noopener\" target=\"_blank\" class=\"me…", "in_reply_to_id": "117658580895622290", "replies_count": 0, "reblogs_count": 0, "favourites_count": 0, "account": { "id": "6388630", "username": "coffeeMUGZ", "acct": "coffeeMUGZ", "display_name": "coffeeMUGZz 2.0", "note": "<p>I love (good) traditional WHITE PEOPLE.<br /> \\o\\o</p>", "url": "https://gab.com/coffeeMUGZ", "created_at": "2023-07-13T13:42:31.503Z", "followers_count": 188, "following_count": 33, "statuses_count": 11375, "locked": false, "bot": false, "is_verified": false, "avatar": "https://m3.gab.com/accounts/avatars/006/388/630/original/f7d9188adfabcfd1.jpg", "…": "18 more fields" }, "media_attachments": [], "revised_at": null, "in_reply_to_account_id": "117198", "sensitive": false, "spoiler_text": "", "…": "37 more fields" }, "… 1 more" ], "meta": { "result_count": 3, "next_token": "2" }}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Search terms. Example: bitcoin. |
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 GabStatuses, in Gab’s own JSON.
| Field | Type | Description |
|---|---|---|
data | GabStatus[] | |
meta | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of posts. |
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
How many a page?
About 20.
Gab is a trademark of Gab AI Inc. We are not affiliated with or endorsed by Gab AI Inc.