API Description

X Works API — Collect works published by a X account or channel.

Authenticate with your Pangolinfo API Key to receive structured JSON data.

Request URL

POST https://scrapeapi.pangolinfo.com/api/v1/social/x-works

Request Headers

ParametersParameter valueTypeDescription
Content-Typeapplication/jsonstringData format
AuthorizationBearer xxxstringAuthorization Token

Collection takes up to approximately 75 seconds. Set your client timeout to 90 seconds.

Request Parameters

ParameterRequiredTypeDescription
targetYesstringTarget URL, supported ID or search keyword for this operation.
optionsNoobjectOptional collection settings, described below.

options Parameters

ParameterRequiredTypeDescription
cursorNostringContinuation cursor from the previous response. Pass the value unchanged.

Only the request parameters listed on this page are used; other fields are ignored. Pass pagination cursors back unchanged, without encoding, decoding or conversion.

Each request collects one page. Continue with the returned cursor.

Response Fields

FieldTypeDescription
codeintegerStatus code; 0 indicates success.
messagestringResponse message; ok on success.
pointCostnumberPoints charged for this request.
dataobjectCollected data, with fields described below.
metaobjectRequest identifier and duration in milliseconds.
billingobjectCharged units, unit price and billing rule version.

data Fields

FieldTypeDescription
typestringResult type.
worksobject[]Collected works.
paginationobjectContinuation cursor and whether more results are available.

data.works[] Fields

FieldTypeDescription
idstring | nullRecord identifier.
urlstring | nullContent URL.
contentstringContent text; may be null for records without text.
rawTextstring | nullRaw text
publishedAtobject | nullPublication time.
likesnumber | nullLike count.
commentsCountnumber | nullPlatform-reported comment total; not the number billed.
repostsnumber | nullRepost count.
quotesnumber | nullQuotes
bookmarksnumber | nullBookmarks
viewsnumber | nullView count.
langstring | nullSubtitle language code, e.g. en. Manual captions take priority. If unavailable, the default track is returned.
possiblySensitivebooleanPossibly sensitive
isNoteTweetbooleanIs note tweet
communityNoteanyCommunity note
replyingTostring | nullReplying to
replyingToStatusstring | nullReplying to status
sourcestring | nullSource
mediaobject[]Media
mentionsobject[]Mentions
hashtagsstring | null[]Hashtags
urlsobject[]Urls
repostedByobject | nullReposted by
quoteobject | nullQuote
posterobjectPoster

data.works[].publishedAt Fields

FieldTypeDescription
textstring | nullText value.
valuenumber | nullParsed value.

data.works[].media[] Fields

FieldTypeDescription
typestring | nullResult type.
idstring | nullRecord identifier.
urlstring | nullContent URL.
thumbnailUrlstring | nullThumbnail url
widthnumber | nullWidth
heightnumber | nullHeight
durationSecnumber | nullDuration sec
formatstring | nullFormat
variantsobject[]Variants

data.works[].mentions[] Fields

FieldTypeDescription
usernamestring | nullUsername
idstring | nullRecord identifier.

data.works[].urls[] Fields

FieldTypeDescription
urlstring | nullContent URL.
displaystring | nullDisplay

data.works[].repostedBy Fields

FieldTypeDescription
nicknamestring | nullAuthor display name.
usernamestring | nullUsername
avatarstring | nullAvatar URL.
profileUrlstring | nullAuthor profile URL.
idstring | nullRecord identifier.
verifiedbooleanVerified
verificationTypestring | nullVerification type
followersCountnumber | nullFollowers count
followingCountnumber | nullFollowing count
protectedbooleanProtected

data.works[].quote Fields

FieldTypeDescription
idstring | nullRecord identifier.
urlstring | nullContent URL.
contentstringContent text; may be null for records without text.
rawTextstring | nullRaw text
publishedAtobject | nullPublication time.
likesnumber | nullLike count.
commentsCountnumber | nullPlatform-reported comment total; not the number billed.
repostsnumber | nullRepost count.
quotesnumber | nullQuotes
bookmarksnumber | nullBookmarks
viewsnumber | nullView count.
langstring | nullSubtitle language code, e.g. en. Manual captions take priority. If unavailable, the default track is returned.
possiblySensitivebooleanPossibly sensitive
isNoteTweetbooleanIs note tweet
communityNoteanyCommunity note
replyingTostring | nullReplying to
replyingToStatusstring | nullReplying to status
sourcestring | nullSource
mediaobject[]Media
mentionsobject[]Mentions
hashtagsstring | null[]Hashtags
urlsobject[]Urls
repostedByobject | nullReposted by
quoteanyQuote
posterobjectPoster

data.works[].poster Fields

FieldTypeDescription
nicknamestring | nullAuthor display name.
usernamestring | nullUsername
avatarstring | nullAvatar URL.
profileUrlstring | nullAuthor profile URL.
idstring | nullRecord identifier.
verifiedbooleanVerified
verificationTypestring | nullVerification type
followersCountnumber | nullFollowers count
followingCountnumber | nullFollowing count
protectedbooleanProtected

data.pagination Fields

FieldTypeDescription
cursorstring | nullContinuation cursor from the previous response. Pass the value unchanged.
hasMorebooleanWhether more results are available.

Request Example

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/x-works \
  --header 'Authorization: Bearer YOUR_PANGOLINFO_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://x.com/nasa"
}'

Response Example

This excerpt shows the first item of each list. Long text and URLs are shortened; pointCost is the charge for the complete response. The playground contains the full schema.

{
  "code": 0,
  "message": "ok",
  "pointCost": 11.2,
  "data": {
    "type": "works",
    "works": [
      {
        "id": "2118449337814352016",
        "url": "https://x.com/NASA/status/2118449337814352016",
        "content": "Flying high!\n\nToday, our X-59 quiet supersonic X-59 aircraft traveled from Birmingham, Alabama, to Daytona Beach, Florida. The aircraft aims to fly faster th...",
        "rawText": "Flying high!\n\nToday, our X-59 quiet supersonic X-59 aircraft traveled from Birmingham, Alabama, to Daytona Beach, Florida. The aircraft aims to fly faster th...",
        "publishedAt": {
          "text": "2026-11-05T21:04:15.000Z",
          "value": 1793912655000
        },
        "likes": 11195,
        "commentsCount": 314,
        "reposts": 1352,
        "quotes": 121,
        "bookmarks": 594,
        "views": 822324,
        "lang": "en",
        "possiblySensitive": false,
        "isNoteTweet": true,
        "communityNote": null,
        "replyingTo": null,
        "replyingToStatus": null,
        "source": null,
        "media": [
          {
            "type": "photo",
            "id": "2118447998266941440",
            "url": "https://pbs.twimg.com/media/HWY9OvvWoAA7DBr.jpg?name=orig",
            "thumbnailUrl": null,
            "width": 4096,
            "height": 2730,
            "durationSec": null,
            "format": null,
            "variants": []
          }
        ],
        "mentions": [],
        "hashtags": [],
        "urls": [],
        "quote": null,
        "repostedBy": null,
        "poster": {
          "nickname": "NASA",
          "username": "NASA",
          "avatar": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_200x200.jpg",
          "profileUrl": "https://x.com/NASA",
          "id": "11348282",
          "verified": true,
          "verificationType": "government",
          "followersCount": 92274999,
          "followingCount": 115,
          "protected": false
        }
      }
    ],
    "pagination": {
      "cursor": "DAAHCgABHWbdiFb___QLAAIAAAATMjExNzMzNTcyMDY0NTc1OTExMwgAAwAAAAIAAA",
      "hasMore": true
    }
  },
  "meta": {
    "requestId": "pg-audit-r1-x-works-1793954356444201400",
    "durationMs": 2029
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 14,
    "pointCost": 11.2
  }
}

Points Usage

0.8 points per primary result.

Empty results and failed requests are not charged. Duplicate IDs are counted once within a response. Separate calls and pages are billed separately. See Social Media Reviews API billing.

Try it