API · Gab
GET /gab/posts/{id}
One Gab post with its counts and media.
| Request | GET /v1/gab/posts/{id} |
| Operation id | gab.post.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One Gab post with its counts and media.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | A post id or its gab.com URL. Example: 117672526190050854. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The post. | GabStatus |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist or was deleted. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Gab is temporarily unavailable. Retryable; nothing was charged. | Error |
GabStatus fields
| Field | Type | Description |
|---|---|---|
id | string | |
created_at | string | |
url | string | null | |
content | string | HTML. |
in_reply_to_id | string | null | |
replies_count | integer | |
reblogs_count | integer | |
favourites_count | integer | |
account | object | |
media_attachments | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.