# Social Fetch API - Gab endpoints # Base URL: https://api.socialfetch.dev # Auth: x-api-key header (sfk_...) # Full catalog: https://www.socialfetch.dev/llms-endpoints.txt | JSON: https://www.socialfetch.dev/llms.json # Docs hub: https://www.socialfetch.dev/docs/api | OpenAPI: https://www.socialfetch.dev/openapi.json 7 documented Gab operations. Do not invent paths - only the routes below (and their linked markdown pages) are supported. ## GET /v1/gab/profiles/{handle} Get Gab profile Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/profiles/handle/get.mdx SDK: client.gab.getProfile({ handle: "a" }) Parameters: - handle (required, string) - Gab username, with or without a leading @. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/profiles/a" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/profiles/{handle}/posts List Gab profile posts Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/profiles/handle/posts/get.mdx SDK: client.gab.listProfilePosts({ handle: "a" }) Parameters: - handle (required, string) - Gab username, with or without a leading @. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same input. - includeReplies (optional, boolean) - When true, the account's replies are listed too. Default: false (top-level posts only). - onlyMedia (optional, boolean) - When true, only posts with photos or videos are listed. Gab keeps these further back in time than the plain list. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found`, `private` curl "https://api.socialfetch.dev/v1/gab/profiles/a/posts" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/posts Get Gab post Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/posts/get.mdx SDK: client.gab.getPost({ url: "https://gab.com/a/posts/117618813576291643" }) Parameters: - url (required, string) - Link to the Gab post (https://gab.com/{username}/posts/{id}) or its numeric id. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/posts?url=https://gab.com/a/posts/117618813576291643" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/posts/comments List Gab post comments Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/posts/comments/get.mdx SDK: client.gab.listPostComments({ url: "https://gab.com/a/posts/117618813576291643", sort: "newest" }) Parameters: - url (required, string) - Link to the Gab post (https://gab.com/{username}/posts/{id}) or its numeric id. - sort (optional, string, enum: top | newest | oldest) - `newest` (default) or `oldest` page through every direct reply; `top` is Gab's 10 most liked, one page only (`page.truncated` is true when there may be more). - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same input. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/posts/comments?url=https://gab.com/a/posts/117618813576291643" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/search/posts Search Gab posts Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/search/posts/get.mdx SDK: client.gab.searchPosts({ query: "bitcoin" }) Parameters: - query (required, string) - Words to search for, up to 100 characters. Gab search only accepts Latin letters, digits and punctuation: no non-Latin letters or emoji. Accents are ignored. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same input. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/search/posts?query=bitcoin" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/search/profiles Search Gab profiles Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/search/profiles/get.mdx SDK: client.gab.searchProfiles({ query: "news" }) Parameters: - query (required, string) - Words to search for, up to 100 characters. Gab search only accepts Latin letters, digits and punctuation: no non-Latin letters or emoji. Accents are ignored. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same input. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/search/profiles?query=news" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/gab/search/groups Search Gab groups Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/gab/search/groups/get.mdx SDK: client.gab.searchGroups({ query: "news" }) Parameters: - query (required, string) - Words to search for, up to 100 characters. Gab search only accepts Latin letters, digits and punctuation: no non-Latin letters or emoji. Accents are ignored. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same input. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/gab/search/groups?query=news" \ -H "x-api-key: YOUR_API_KEY"