> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/gab>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/gab.mdx>

---

# Gab API. Profiles, posts and comments as JSON.

Look up an account, read its recent posts, open a post with its comments, and search posts, people and groups. Every response uses the same envelope.

- Profiles + posts
- Comments + search
- 1 credit per request

`GET /v1/gab/profiles/{handle}` returns a Gab account: display name, bio, avatar and cover, follower, following and post counts, verified, GabPRO, donor and investor badges, country and profile fields. `/v1/gab/profiles/{handle}/posts` lists the account's recent public posts, newest first.

A post (`GET /v1/gab/posts?url=`) carries its text and HTML, media with sizes and video durations, link card, poll, group, reply, repost and quote counts, reaction counts and the author. `/v1/gab/posts/comments` lists the replies to a post, most liked, newest or oldest first. Three searches cover posts, profiles and groups. Every answer is JSON in the `{ data, meta }` envelope with `data.lookupStatus`; lists report `page.nextCursor` and `page.hasMore`. A miss comes back as `lookupStatus: not_found`, not as an HTTP error.

## What you can get

- Profile with bio, avatar, cover, counts, badges, country and profile fields.
- An account's recent public posts, with a filter for posts with media and one for replies.
- Single posts with text, media, link card, poll, group, reactions, quotes and the author.
- Comments on a post: the most liked, or every comment newest or oldest first with cursor paging.
- Search posts, profiles and groups by keyword, a page at a time.

## Gab endpoints

| Endpoint | Request | Credits | Docs |
| --- | --- | --- | --- |
| Profile | GET /v1/gab/profiles/{handle} | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/profiles/handle/get) |
| Profile posts | GET /v1/gab/profiles/{handle}/posts | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/profiles/handle/posts/get) |
| Post | GET /v1/gab/posts | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/posts/get) |
| Post comments | GET /v1/gab/posts/comments | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/posts/comments/get) |
| Search posts | GET /v1/gab/search/posts | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/search/posts/get) |
| Search profiles | GET /v1/gab/search/profiles | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/search/profiles/get) |
| Search groups | GET /v1/gab/search/groups | 1 credit Failed requests are free Found, empty and not-found answers are all charged | [docs](https://www.socialfetch.dev/docs/api/v1/gab/search/groups/get) |

## How to start

1. **Create an API key.** Sign up at Social Fetch and copy a key (`sfk_…`). New accounts get 100 free credits, enough to try every route on a few accounts.
2. **Pick the account or post.** Use the username, for example `GET /v1/gab/profiles/a`, or a post link, for example `GET /v1/gab/posts?url=https://gab.com/a/posts/117618813576291643`. Send `x-api-key` on every request.
3. **Branch and page.** Check `data.lookupStatus` before you store a row. Keep requesting with `page.nextCursor` while `page.hasMore` is true, and bill from `meta.creditsCharged`.

## Pricing

Each Gab route charges a flat credit amount per completed request, shown on every endpoint page. Each page of a list is its own request. Credits never expire on pay-as-you-go packs, and `meta.creditsCharged` on every response is the billing source of truth.

## Compared with the official API

Social Fetch gives every Gab route one JSON shape: ISO 8601 UTC timestamps, numeric counts, typed `lookupStatus` responses, plain text beside the HTML of every post and bio, and opaque cursors that continue the same list. You do not need a Gab account, an app registration or a user session.

## FAQ

### What Gab data can I get from the API?

Profiles, an account's recent posts, single posts, the comments on a post, and search across posts, profiles and groups.

### How do I name a Gab account?

Use the username, with or without a leading @, for example a or PrisonPlanet. Usernames are letters, digits and underscores and are matched without regard to case. An unknown username returns lookupStatus: not_found with profile: null.

### How far back do an account's posts go?

Gab shows only an account's recent posts without signing in, so the list usually ends after one or two pages. Set onlyMedia=true for posts with photos or videos, which reach further back. A locked account returns lookupStatus: private and no posts.

### How do comments page?

sort=top returns the 10 most liked comments in one page. sort=newest and sort=oldest return every direct reply, a page at a time: follow page.nextCursor until page.hasMore is false. Each comment has its own stats.directReplies.

### What does a post include?

data.post carries id, url, createdAt, editedAt, language, text, contentHtml, media, hashtags, mentions, link card, poll, group, stats (replies, direct replies, reposts, likes, quotes), reactions by type and the author's profile. A repost or quote carries the original post too.

### Which search text is accepted?

Latin letters, digits and punctuation, up to 100 characters; accents are ignored. Gab's search refuses non-Latin letters and emoji, so those are refused with HTTP 400 before any lookup runs and cost no credits.

### Is a search with no match an error?

No. It returns lookupStatus: found with an empty list and page.hasMore: false.

### How much does the Gab API cost?

Every Gab route charges a flat amount per completed request, shown on each endpoint page, and each page of a list is billed separately. A found, empty or not-found answer is a completed request and costs that amount; invalid requests and errors are free. Check meta.creditsCharged on every response. New accounts start with 100 free credits.

## Related

- [Gab Profile API](https://www.socialfetch.dev/platforms/gab/profiles-handle): Bio, counts, badges and profile fields (`GET /v1/gab/profiles/{handle}`).
- [Gab Post API](https://www.socialfetch.dev/platforms/gab/posts): One post with media, reactions, poll and author (`GET /v1/gab/posts`).
- [Gab Comments API](https://www.socialfetch.dev/platforms/gab/posts-comments): Comments on a post, most liked, newest or oldest (`GET /v1/gab/posts/comments`).
- [Gab Post Search API](https://www.socialfetch.dev/platforms/gab/search-posts): Posts matching a keyword (`GET /v1/gab/search/posts`).
- [Ask in plain English](https://www.socialfetch.dev/ask): Route a natural-language Gab question to the matching operation.
- [Hosted MCP](https://www.socialfetch.dev/mcp): Call Gab tools from Cursor or Claude with the same credit metering as REST.
