Skip to Content

Documentation

Responses

The shape of every answer, the fields every platform shares, and the headers that come with it.

Every platform answers in the same shape, with the same field names.

Shape

An answer is one item, a list, or an error.

AnswerBody
One item{ "data": … }
A list{ "data": [...], "pagination": … }
An error{ "error", "code", "param" }
{
  "data": [{ "id": "7711465226318728461" }, { "id": "7711414040114892045" }],
  "pagination": { "nextCursor": "1792764276701", "hasMore": true }
}

See Pagination and Errors.

Shared Types

A few types cover what the platforms return.

TypeWhat it is
ProfileAn account
PostA post, reel, video or thread
CommentA comment or a reply
TranscriptA video's captions
Hashtag, SoundA tag or a sound, and its posts

Each type has the same fields on every platform, and what only one platform has sits under ext. Every field is typed in the API Reference.

{
  "data": {
    "id": "63055343223",
    "username": "zuck",
    "displayName": "Mark Zuckerberg",
    "bio": "Mostly superintelligence and MMA takes",
    "avatarUrl": "https://scontent-nrt6-1.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-nrt6-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gEbJAaY4VAfsA-SdUiOuyyefB_PaDbIjArtHdBA5E9_oz8s23mkKO8K36do2sY94fk&_nc_ohc=TcNBs21yW1gQ7kNvwHHOsMz&_nc_gid=3utomVOdhJVr5GxFQLdxgQ&edm=AAZTMJEBAAAA&ccb=7-5&_nc_ct=RQAsPBUCFQIAAAA&oh=00_AQQ7XHzV0_X-JdqIiVqvgiHTaON1Otu3q1X6WoaBBg9WbA&oe=6B0BE5EB&_nc_sid=49cb7f",
    "url": "https://www.threads.com/@zuck",
    "verified": true,
    "private": false,
    "followers": 5783862,
    "following": null,
    "likes": null,
    "posts": null,
    "externalUrl": null,
    "createdAt": null,
    "ext": {
      "bioLinks": [],
      "interests": [
        "AI Threads",
        "UFC Threads",
        "AI"
      ]
    }
  }
}

Profile

FieldContains
id, urlThe account's id and link
username, displayNameIts handle and name
bio, externalUrlIts bio and website
avatarUrlIts picture
verified, privateIts badge, and whether it is private
followers, followingIts follower counts
likes, postsLikes received and posts made
createdAtWhen it was made

Post

FieldContains
id, urlThe post's id and link
text, createdAtIts caption, and when it was posted
authorWho posted it
statsIts counts and engagement rate
mediaIts videos and pictures
hashtags, mentionsThe tags and accounts in its text

The engagement rate is likes, comments and shares over views, to four places.

Comment

FieldContains
id, postIdThe comment's id, and its post
parentIdThe comment it answers, for a reply
text, createdAtWhat it says, and when
authorWho wrote it
likes, repliesIts likes and reply count

Transcript

FieldContains
textEvery line, one after another
cuesEach line with its start and end
languageThe captions' language
sourceGenerated, or written by the author
translatedWhether it is a translation

Formats

Values are written the same way on every platform.

DataFormat
Field namescamelCase
IdsStrings
TimesRFC 3339 in UTC
CountsWhole numbers
RatesFractions, such as 0.0181
Media linksExpire within hours

A count a platform does not have is null, never 0. Ids are strings because some do not fit a JavaScript number. Media links expire, so download the media you keep.

Headers

Every answer also carries these headers.

HeaderContains
X-Request-IdThe request's id
X-Credits-ChargedWhat the call cost
X-Credits-RemainingThe balance after it
X-CacheHIT or MISS
X-Cache-AgeA cached answer's age, in seconds
X-RateLimit-RemainingRequests left this minute

See Caching and Rate Limits for the rest.