Social platforms
Gab data API
Read profiles, posts, comments and keyword search from Gab with one key and one response shape.
Read public Gab data: a profile, everything a user posts, one post, the comments on a post with their nested replies, and keyword search over posts.
Your first call
1. Fetch a profile
curl "https://www.socialcrawl.dev/v1/gab/profile?handle=gab" \
-H "x-api-key: sc_your_key_here"const res = await fetch(
"https://www.socialcrawl.dev/v1/gab/profile?handle=gab",
{ headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY! } },
);
const { data } = await res.json();
console.log(data.author.username, data.author.followers);import os
import requests
res = requests.get(
"https://www.socialcrawl.dev/v1/gab/profile",
params={"handle": "gab"},
headers={"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]},
)
data = res.json()["data"]
print(data["author"]["username"], data["author"]["followers"])Measured on 22/11/2026: this call returned the official Gab account with its follower, following and post counts for 1 credit. Gab does not publish a total like count, so likes_count is null.
2. Walk a user's posts
curl "https://www.socialcrawl.dev/v1/gab/user/posts?handle=gab" \
-H "x-api-key: sc_your_key_here"Rows come newest first: the user's own posts, their replies, and their reposts, exactly as the profile shows them. A reply carries the post it answers in post.ext.in_reply_to_id and post.ext.in_reply_to_username. A repost keeps its own id and the time it was reposted, and the original post (text, author and counts) is in post.ext.retweeted_post. A quote post carries the quoted post in post.ext.quoted_post. Send pagination.next_cursor back as cursor for the next, older page; the walk ends when no cursor comes back.
3. Read the comments on a post
curl "https://www.socialcrawl.dev/v1/gab/post/comments?url=https://gab.com/a/posts/117445750063805239" \
-H "x-api-key: sc_your_key_here"Top-level comments and their nested replies come together, in the order Gab's thread view shows them. Every row has comment.parent_id, which is the post id for a top-level comment and the parent comment's id for a reply, so you can rebuild the tree. sort is newest (the default), oldest or top.
4. Search posts by keyword
curl "https://www.socialcrawl.dev/v1/gab/search/posts?query=RNLI" \
-H "x-api-key: sc_your_key_here"Results come newest first. A query that matches nothing returns an empty list and costs nothing.
5. Read computed fields
When an endpoint supports a computed field and the required source inputs are present, the unified response includes that optional field. Depending on the endpoint, optional fields can include engagement_rate, language, content_category, and estimated_reach. See Computed fields for formulas, clamping rules, and null semantics.
What it covers
| What you want | Call |
|---|---|
| Followers count and bio | GET /v1/gab/profile |
| Everything an account posts | GET /v1/gab/user/posts |
| One full post | GET /v1/gab/post |
| Comments and nested replies | GET /v1/gab/post/comments |
| Posts that mention a keyword | GET /v1/gab/search/posts |
What it does not cover
- Private accounts and anything behind a login are not returned. A locked account shows
private: trueon its profile. - View and save counts. Gab publishes neither, so those fields are null.
- Search operators such as
from:. To read one account, usegab/user/posts. - Account search. Start from a handle you already hold.
All endpoints
5 endpoints available.
| Endpoint | Path | Credit Tier |
|---|---|---|
| Get a Gab post | /v1/gab/post | standard (1cr) |
| List the comments on a Gab post | /v1/gab/post/comments | standard (1cr) |
| Get a Gab profile | /v1/gab/profile | standard (1cr) |
| Search Gab posts | /v1/gab/search/posts | standard (1cr) |
| List a Gab user's posts | /v1/gab/user/posts | standard (1cr) |
How far back and how deep
Each list returns one page at a time. Send cursor for the next page, or max_items or max_pages to collect several pages in one call. A page size appears only where it has been verified. How paging works
| Path | Rows per page | Date window | One call collects |
|---|---|---|---|
/v1/gab/post/comments | about 25 | since and until, applied to each page fetched | up to 5,000 rows or 50 pages |
/v1/gab/search/posts | about 24 | since and until, applied to each page fetched | up to 5,000 rows or 50 pages |
/v1/gab/user/posts | about 19 | since and until, applied to each page fetched | up to 5,000 rows or 50 pages |
Notes
- All endpoints use
GETwith query parameters and thex-api-keyheader. gab/postandgab/post/commentstake the post URL (https://gab.com/<handle>/posts/<id>); a bare numeric post id is accepted too.- An unknown handle or post returns a 404 and costs nothing.
- Gab sometimes drops a few rows from a page, so do not treat a short page as the end of a list. Follow
pagination.next_cursoruntil it is absent.
