POST /api/gab/accounts/posts
Price: 5 credits
Get Gab Account Posts
Read a Gab account's posts from a handle, profile URL, or numeric id. Two different corpora sit behind one path and the choice matters: the default feed carries only posts from the last seven days, while only_media=true reaches back through the account's whole archive, years deep, restricted to posts with an image or video. So an empty default result means nothing was posted in the last week, not that the account is empty, and it is normal for a busy account with a six-figure post count to return a couple of dozen rows. pinned=true returns the handful of posts pinned to the profile instead. Replies cannot be filtered out; no repost was observed in any sampled timeline.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)account string required — Gab handle, profile URL, or numeric account id (examples: "a", "https://gab.com/a", "31"; minLength: 1)count integer required — Max result count (examples: 20; min: 1; max: 400)only_media boolean — Only posts that carry a media attachment (default: false)pinned boolean — Only the posts the account pinned to its profile (default: false)@type string (default: "GabStatus")id string requiredcreated_at string nullableedited_at string nullabletext string nullablespoiler_text string nullableurl string nullablelanguage string nullablevisibility string nullablebackground string nullableis_sensitive boolean (default: false)is_reply boolean (default: false)has_quote boolean (default: false)is_pinnable_by_group boolean (default: false)conversation_id string nullablein_reply_to_id string nullablein_reply_to_account_id string nullablereply_count integer nullabledirect_reply_count integer nullablereblog_count integer nullablefavourite_count integer nullablequote_count integer nullablereaction_counts object (default: {})* integeraccount object nullable@type string (default: "GabAccount")id string requiredalias string nullabledisplay_name string nullablebio string nullableurl string nullableimage string nullablecover string nullablecreated_at string nullablefollower_count integer nullablefollowing_count integer nullablestatus_count integer nullablecountry_code string nullableis_verified boolean (default: false)is_pro boolean (default: false)is_donor boolean (default: false)is_investor boolean (default: false)is_parody boolean (default: false)is_spam boolean (default: false)is_locked boolean (default: false)is_discoverable boolean (default: false)has_pro_life_badge boolean (default: false)fields array (default: [])@type string (default: "GabField")name string nullablevalue string nullableverified_at string nullableemojis array (default: [])@type string (default: "GabEmoji")shortcode string nullableurl string nullablestatic_url string nullableis_visible_in_picker boolean (default: false)quote object nullable (see schema GabStatus)reblog object nullable (see schema GabStatus)group object nullable@type string (default: "GabGroup")id string requiredname string nullablealias string nullableurl string nullabledescription string nullabledescription_html string nullableimage string nullablecategory string nullablecategory_id string nullablemember_count integer nullablecreated_at string nullableis_private boolean (default: false)is_verified boolean (default: false)is_archived boolean (default: false)is_paused boolean (default: false)is_moderated boolean (default: false)is_visible boolean (default: false)has_password boolean (default: false)is_quote_allowed boolean (default: false)is_members_visible boolean (default: false)is_media_visible boolean (default: false)is_links_visible boolean (default: false)is_admins_visible boolean (default: false)moderators array (default: [])@type string (default: "GabGroupModerator")account_id string nullablerole string nullablecard object nullable@type string (default: "GabPreviewCard")id string nullableurl string nullablelink_title string nullabledescription string nullablecard_type string nullableimage string nullablehtml string nullableprovider_name string nullableprovider_url string nullablewidth integer nullableheight integer nullableupdated_at string nullablemood object nullable@type string (default: "GabMood")id string nullablename string nullablemedia_attachments array (default: [])@type string (default: "GabMediaAttachment")id string nullablemedia_type string nullableurl string nullablepreview_url string nullablevideo_url string nullabledescription string nullableblurhash string nullablefile_name string nullablefile_content_type string nullablewidth integer nullableheight integer nullableduration number nullablementions array (default: [])@type string (default: "GabMention")id string nullablealias string nullableurl string nullabletags array (default: [])@type string (default: "GabTag")name string nullableurl string nullableemojis array (default: [])@type string (default: "GabEmoji")shortcode string nullableurl string nullablestatic_url string nullableis_visible_in_picker boolean (default: false)422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — Account not found. Verify the handle, profile URL, or numeric id. Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.