Skip to main content
GET
/
post
/
children
cURL
curl --request GET \
  --url https://our-secret-api-url.com/post/children
{
  "id": 123,
  "snowflakeId": "<string>",
  "user": {
    "id": 123,
    "username": "<string>",
    "avatarUrl": "<string>"
  },
  "parent": "<unknown>",
  "parentId": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "userId": 123,
  "content": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "type": "post",
  "originalId": 123,
  "hashtags": [
    "<string>"
  ],
  "media": [
    {
      "id": 123,
      "updatedAt": "2023-11-07T05:31:56Z",
      "postId": 123,
      "mediaUrl": "<string>",
      "mimeType": "<string>"
    }
  ],
  "repostsCount": 123,
  "reposts": [
    123
  ],
  "repliesCount": 123
}
If no postType is passed, all posts that has the same parentId will be fetched.
This API is useful if you are fetching post type of repost or quote

Query Parameters

parentId
integer
required

The ID of the parent post.

postType
enum<string>

The type of the post.

Available options:
post,
quote,
reply,
repost

Response

A list of posts.

id
integer

ID of the post.

snowflakeId
string

Snowflake ID of the post.

user
object
parent
any
parentId
integer | null

ID of the parent post.

createdAt
string<date-time>

Creation timestamp of the post.

userId
integer

ID of the user who created the post.

content
string | null

Content of the post.

updatedAt
string<date-time>

Last update timestamp of the post.

type
enum<string>

Type of the post.

Available options:
post,
quote,
reply,
repost
originalId
integer | null

ID of the original post if this is a repost or quote.

hashtags
string[]
media
object[]
repostsCount
integer

Number of reposts.

reposts
integer[]
repliesCount
integer

Number of replies.