POST /api/gab/posts/context
Price: 10 credits
Get Gab Post Thread
Read the thread around a Gab post in one call: ancestors is the reply chain above it, descendants the replies under it, quoted the posts that quote it. Each entry is a full post with its author, so this is also the way to collect the accounts that replied. Descendants is capped at 40 entries. On a post with more replies than that, only the first 40 arrive, and the rest are not retrievable through this endpoint.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)post string required — Gab post URL or numeric post id (examples: "https://gab.com/a/posts/117250539305495961", "117250539305495961"; minLength: 1)@type string (default: "GabThread")id string requiredancestors array (default: [])@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: [])emojis array (default: [])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: [])card 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)descendants array (default: [])@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: [])emojis array (default: [])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: [])card 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)quoted array (default: [])@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: [])emojis array (default: [])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: [])card 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 — Post not found. Verify the 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.