API Description

X Home API — Collect X profile information and first-page works.

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

Request URL

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

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.

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

Includes first-page works. Use the works operation, where available, to continue.

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.
profileobjectProfile details.
worksobject[]Collected works.
paginationobjectContinuation cursor and whether more results are available.

data.profile Fields

FieldTypeDescription
usernamestring | nullUsername
screen_namestring | nullScreen name
displayNamestring | nullDisplay name
namestring | nullName
biostring | nullBio
descriptionstring | nullDescription
avatarstring | nullAvatar URL.
avatar_urlstring | nullAvatar url
profileUrlstring | nullAuthor profile URL.
urlstring | nullContent URL.
isVerifiedbooleanIs verified
verifiedbooleanVerified
followersCountnumber | nullFollowers count
followers_countnumber | nullFollowers count
followingCountnumber | nullFollowing count
friends_countnumber | nullFriends count
accountIdstring | nullAccount id
idstring | nullRecord identifier.
isPrivatebooleanIs private
externalLinksobject[]External links
likesCountnumber | nullLikes count
mediaCountnumber | nullMedia count
statusesCountnumber | nullStatuses count
locationstring | nullLocation
bannerUrlstring | nullBanner url
joinedAtobject | nullJoined at
verificationTypestring | nullVerification type
verifiedAtstring | nullVerified at
basedInstring | nullBased in
usernameChangesnumber | nullUsername changes
followersnumber | nullFollowers
followingnumber | nullFollowing
likesnumber | nullLike count.
media_countnumber | nullMedia count
statusesnumber | nullStatuses
raw_descriptionobject | nullRaw description
banner_urlstring | nullBanner url
joinedstring | nullJoined
protectedbooleanProtected
websiteobject | nullWebsite
verificationobjectVerification
typestring | nullResult type.
about_accountobjectAbout account

data.profile.externalLinks[] Fields

FieldTypeDescription
urlstring | nullContent URL.
display_urlstring | nullDisplay url

data.profile.joinedAt Fields

FieldTypeDescription
textstring | nullText value.
valuenumber | nullParsed value.

data.profile.raw_description Fields

FieldTypeDescription
textstring | nullText value.
facetsany[]Facets

data.profile.website Fields

FieldTypeDescription
urlstring | nullContent URL.
display_urlstring | nullDisplay url

data.profile.verification Fields

FieldTypeDescription
verifiedbooleanVerified
verified_atstring | nullVerified at
typestring | nullResult type.

data.profile.about_account Fields

FieldTypeDescription
location_accuratebooleanLocation accurate
based_instring | nullBased in
username_changesobjectUsername changes

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-home \
  --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": 0.8,
  "data": {
    "type": "home",
    "profile": {
      "username": "NASA",
      "screen_name": "NASA",
      "displayName": "NASA",
      "name": "NASA",
      "bio": "Making the seemingly impossible, possible. ✨",
      "description": "Making the seemingly impossible, possible. ✨",
      "avatar": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
      "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
      "profileUrl": "https://x.com/NASA",
      "url": "https://x.com/NASA",
      "isVerified": true,
      "verified": true,
      "followersCount": 92275004,
      "followers_count": 92275004,
      "followingCount": 115,
      "friends_count": 115,
      "accountId": "11348282",
      "id": "11348282",
      "isPrivate": false,
      "externalLinks": [
        {
          "url": "http://www.nasa.gov/",
          "display_url": "nasa.gov"
        }
      ],
      "likesCount": 17062,
      "mediaCount": 28235,
      "statusesCount": 74504,
      "location": "Pale Blue Dot",
      "bannerUrl": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
      "joinedAt": {
        "text": "2007-12-19T20:20:32.000Z",
        "value": 1198095632000
      },
      "verificationType": "government",
      "verifiedAt": null,
      "basedIn": null,
      "usernameChanges": 0,
      "followers": 92275004,
      "following": 115,
      "likes": 17062,
      "media_count": 28235,
      "statuses": 74504,
      "raw_description": {
        "text": "Making the seemingly impossible, possible. ✨",
        "facets": []
      },
      "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
      "joined": "Wed Dec 19 20:20:32 +0000 2007",
      "protected": false,
      "website": {
        "url": "http://www.nasa.gov/",
        "display_url": "nasa.gov"
      },
      "verification": {
        "verified": true,
        "verified_at": null,
        "type": "government"
      },
      "type": "profile",
      "about_account": {
        "location_accurate": true,
        "username_changes": {
          "count": 0,
          "last_changed_at": null
        }
      }
    },
    "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": 11193,
        "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": 92275004,
          "followingCount": 115,
          "protected": false
        }
      }
    ],
    "pagination": {
      "cursor": "DAAHCgABHWbdgMg___QLAAIAAAATMjExNzMzNTcyMDY0NTc1OTExMwgAAwAAAAIAAA",
      "hasMore": true
    }
  },
  "meta": {
    "requestId": "pg-audit-r1-x-home-1793954342314006300",
    "durationMs": 8459
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 1,
    "pointCost": 0.8
  }
}

Points Usage

0.8 points per profile. Included works are free.

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