Platforms · Social media

Gab Scraper API

Gab data from one API: get a gab post, list the comments on a gab post, get a gab profile, search gab posts and list a gab user's posts. Each call answers with JSON and has a set price; a call that finds nothing is free.

All 5 Gab endpoints

  • Post: Get a Gab post. 1 credit a call
  • Post Comments: List the comments on a Gab post. 1 credit a page
  • Profile: Get a Gab profile. 1 credit a call
  • Search Posts: Search Gab posts. 1 credit a page
  • User Posts: List a Gab user's posts. 1 credit a page

Gab Post Scraper API

Get a Gab post

A reply carries `post.ext.in_reply_to_id`, a repost carries the original on `post.ext.retweeted_post`, and a quote post carries the quoted post on `post.ext.quoted_post`.

GET /api/v1/data/gab/post · 1 credit per call

Inputs

  • url (required): Gab post URL (`https://gab.com/<handle>/posts/<id>`). A bare numeric post id is accepted too.

Gab Post Comments Scraper API

List the comments on a Gab post

Top-level comments and their nested replies come back in one list, in the order Gab's thread view pages them. Every row carries `comment.parent_id`: the post id for a top-level comment, or the parent comment's id for a nested reply, so the tree can be rebuilt. `engagement.likes` is the like count and `engagement.replies` is the reply count. `total` is Gab's own count of replies on the post.

GET /api/v1/data/gab/post-comments · 1 credit per page

Inputs

  • url (required): Gab post URL (`https://gab.com/<handle>/posts/<id>`). A bare numeric post id is accepted too.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
  • sort: `newest` (the default), `oldest`, or `top` (Gab's own ranking, which favours the most liked comments).
  • since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
  • until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.

Gab Profile Scraper API

Get a Gab profile

Gab does not publish a total like count, so `likes_count` is null.

GET /api/v1/data/gab/profile · 1 credit per call

Inputs

  • handle (required): Gab username without the @ (letters, digits and underscores, up to 30 characters), as in gab.com/<handle>.

Gab Search Posts Scraper API

Search Gab posts

Pass `next_cursor` back as `cursor` for the next page; it is absent once a short page comes back. Search operators such as `from:` are not supported: to read one account, use `gab/user/posts`.

GET /api/v1/data/gab/search-posts · 1 credit per page

Inputs

  • query (required): Search terms matched against post text.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
  • since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
  • until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.

Gab User Posts Scraper API

List a Gab user's posts

It includes every row Gab shows on the profile: original posts, replies and reposts. A reply carries `post.ext.in_reply_to_id` and `post.ext.in_reply_to_username`. A repost keeps its own `id`, `url` and `published_at` (when it was reposted) and carries the original post on `post.ext.retweeted_post` (`id`, `url`, `author`, `text`, `media_urls`, `engagement`, `published_at`); a quote post carries the quoted post on `post.ext.quoted_post` in the same shape. `engagement.likes`, `comments` and `shares` are Gab's like, reply and repost counts.

GET /api/v1/data/gab/user-posts · 1 credit per page

Inputs

  • handle (required): Gab username without the @ (letters, digits and underscores, up to 30 characters), as in gab.com/<handle>.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
  • since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
  • until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.