POST

User Posts

/v1/threads/user/posts

Fetch the latest posts from any Threads user. Optionally include replies alongside original posts.

Request Parameters

ParameterTypeRequiredDescription
usernamestringYesThreads username
limitintNoMax results (1-100) (default: 20)
with_repliesboolNoInclude replies (default: false)

Example

curl -X POST https://query-data-api.notpeople.ai/v1/threads/user/posts \
  -H "X-API-Key: th_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"username": "zuck", "limit": 10, "with_replies": false}'

Response Schema

All responses include success, data, and usage fields.

FieldTypeDescription
metadata.usernamestringUsername queried
metadata.with_repliesboolWhether replies were included
metadata.posts_foundintNumber of posts returned
metadata.has_pinnedboolWhether the user has a pinned post
metadata.replies_linkedintNumber of replies with linked parent context
metadata.elapsed_msintRequest duration in milliseconds
metadata.type_breakdownobjectCount of posts by type
metadata.with_mediaintNumber of posts with media attached
metadata.with_reply_to_postintNumber of posts with linked reply context
pinned_postobject | nullPinned post object (same fields as data posts)
pkstringPrimary key identifier
idstringFull post ID (pk_userId)
graph_idstringGraph API ID
codestringPost shortcode for URL
textstringPost text content
taken_atintUnix timestamp
post_typestringPost type (post, reply, repost, quote)
usernamestringAuthor handle
full_namestringAuthor display name
user_idstringAuthor user ID
is_verifiedboolAuthor verification status
profile_pic_urlstringAuthor profile picture URL
reply_to_userstring | nullUsername being replied to
reply_to_postobject | nullFull post object being replied to
quoted_postobject | nullQuoted post data if applicable
like_countintNumber of likes
reply_countintNumber of replies
repost_countintNumber of reposts
quote_countintNumber of quotes
share_countintNumber of shares
is_pinnedboolWhether the post is pinned
media_typeintMedia type identifier
mediaarrayAttached media [{type, url, width, height}]
video_urlstring | nullDirect video URL if applicable
image_urlstring | nullDirect image URL if applicable

Example Response

{
  "success": true,
  "metadata": {
    "username": "zuck",
    "with_replies": true,
    "posts_found": 1,
    "has_pinned": false,
    "replies_linked": 0,
    "elapsed_ms": 16322,
    "type_breakdown": { "post": 1 },
    "with_media": 1,
    "with_reply_to_post": 0
  },
  "pinned_post": null,
  "data": [
    {
      "pk": "3849384441660167347",
      "id": "3849384441660167347_63055343223",
      "graph_id": "18096867805968485",
      "code": "DVrwsE5EdSz",
      "text": "Meanwhile at Meta HQ",
      "taken_at": 1773102406,
      "post_type": "post",
      "username": "zuck",
      "full_name": "Mark Zuckerberg",
      "user_id": "63055343223",
      "is_verified": true,
      "profile_pic_url": "https://scontent.cdninstagram.com/.../photo.jpg",
      "reply_to_user": null,
      "reply_to_post": null,
      "quoted_post": null,
      "like_count": 6979,
      "reply_count": 948,
      "repost_count": 203,
      "quote_count": 62,
      "share_count": 0,
      "is_pinned": false,
      "media_type": 1,
      "media": [
        { "type": "image", "url": "https://scontent.cdninstagram.com/.../photo.webp", "width": 1200, "height": 1600 }
      ],
      "video_url": null,
      "image_url": "https://scontent.cdninstagram.com/.../photo.webp"
    }
  ],
  "usage": {
    "unique_posts": 84,
    "limit": 6000,
    "remaining": 5916
  }
}

Try this endpoint live

Sign up for free to try endpoints directly from the docs. No credit card required.

Create Free Account