SocialCrawl

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
curl "https://www.socialcrawl.dev/v1/gab/profile?handle=gab" \
  -H "x-api-key: sc_your_key_here"
TypeScript
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);
Python
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
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
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
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 wantCall
Followers count and bioGET /v1/gab/profile
Everything an account postsGET /v1/gab/user/posts
One full postGET /v1/gab/post
Comments and nested repliesGET /v1/gab/post/comments
Posts that mention a keywordGET /v1/gab/search/posts

What it does not cover

  • Private accounts and anything behind a login are not returned. A locked account shows private: true on its profile.
  • View and save counts. Gab publishes neither, so those fields are null.
  • Search operators such as from:. To read one account, use gab/user/posts.
  • Account search. Start from a handle you already hold.

All endpoints

5 endpoints available.

EndpointPathCredit Tier
Get a Gab post/v1/gab/poststandard (1cr)
List the comments on a Gab post/v1/gab/post/commentsstandard (1cr)
Get a Gab profile/v1/gab/profilestandard (1cr)
Search Gab posts/v1/gab/search/postsstandard (1cr)
List a Gab user's posts/v1/gab/user/postsstandard (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

PathRows per pageDate windowOne call collects
/v1/gab/post/commentsabout 25since and until, applied to each page fetchedup to 5,000 rows or 50 pages
/v1/gab/search/postsabout 24since and until, applied to each page fetchedup to 5,000 rows or 50 pages
/v1/gab/user/postsabout 19since and until, applied to each page fetchedup to 5,000 rows or 50 pages

Notes

  • All endpoints use GET with query parameters and the x-api-key header.
  • gab/post and gab/post/comments take 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_cursor until it is absent.

Next steps