cURL
curl --request GET \ --url https://our-secret-api-url.com/posts
{ "data": [ { "id": 123, "userId": 123, "snowflakeId": "<string>", "user": { "id": 123, "username": "<string>", "name": "<string>", "image": "<string>", "bio": "<string>", "verifiedAt": "2023-11-07T05:31:56Z", "role": "user", "tags": [ "<string>" ] }, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "type": "post", "content": "<string>", "reposts": [ 123 ], "repostsCount": 123, "repliesCount": 123, "originalId": 123, "parentId": 123, "hashtags": [ "<string>" ], "media": [ { "id": 123, "updatedAt": "2023-11-07T05:31:56Z", "postId": 123, "mediaUrl": "<string>", "mimeType": "<string>" } ], "isSuspended": true, "links": [ { "url": "<string>", "title": "<string>", "description": "<string>", "image": "<string>" } ], "parent": "<unknown>" } ], "totalPages": 123 }
Fetches a list of posts with optional filtering by cursor, size, query, and user IDs.
Cursor for pagination (last ID of the page)
Number of posts to fetch
Search query to filter posts
Comma-separated list of user IDs to filter posts
A list of posts
Show child attributes
Last timestamp of user verified by admin
user
admin
post
quote
reply
repost
A boolean if the post/reply is suspended or not
List of OpenGraph details associated with the media
URL of the OpenGraph link
Title of the OpenGraph link
Description of the OpenGraph link
Image URL of the OpenGraph link