Profile Highlights
The posts an account highlighted, newest first.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe account's handle (NASA), with or without @.
url?stringThe profile's link, instead of handle.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.x.profileHighlights({ handle: "NASA" });Example Response
{ "data": [ { "id": "2125167587264770208", "url": "https://x.com/NASA/status/2125167587264770208", "text": "LIVE: An uncrewed Progress cargo spacecraft carrying food, fuel, and supplies is about to lift off on a two-day journey to the @Space_Station. Launch is scheduled for 5:17am ET (1017 UTC). https://x.com/i/broadcasts/2OdRLXzWgOzBYK", "createdAt": "2026-11-24T10:00:11.165Z", "author": { "id": "11348282", "username": "NASA", "displayName": "NASA", "avatarUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg", "verified": true, "url": "https://x.com/NASA" }, "stats": { "views": 760102, "likes": 1590, "comments": 115, "shares": 236, "saves": 71, "engagementRate": 0.0026 }, "media": [], "hashtags": [], "mentions": [ "Space_Station" ], "ext": { "quotes": 19, "language": "en", "conversationId": null, "replyTo": null, "repost": null, "quoted": null, "pinned": false, "sensitive": false, "links": [ "https://x.com/i/broadcasts/2OdRLXzWgOzBYK" ], "altTexts": [], "playlists": [] } }, { "id": "2124903027370774900", "url": "https://x.com/NASA/status/2124903027370774900", "text": "We're on our way to explore the mysteries of Europa, an ocean world that could support life.\n\nTake a behind-the-scenes look at the mission that's making it possible. Our new documentary, The Europa Concept, is now on NASA+: https://plus.nasa.gov/video/the-europa-concept/", "createdAt": "2026-11-23T16:28:55.171Z", "author": { "id": "11348282", "username": "NASA", "displayName": "NASA", "avatarUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg", "verified": true, "url": "https://x.com/NASA" }, "stats": { "views": 899733, "likes": 6135, "comments": 260, "shares": 1010, "saves": 863, "engagementRate": 0.0082 }, "media": [ { "kind": "video", "url": "https://video.twimg.com/amplify_video/2124902931874889728/vid/avc1/1920x1080/bqUo_GzISwvt_r1k.mp4?tag=16", "thumbnailUrl": "https://pbs.twimg.com/media/HX0sChTWkAAO3-x.png", "width": 720, "height": 405, "durationSeconds": 87.402 } ], "hashtags": [], "mentions": [], "ext": { "quotes": 105, "language": "en", "conversationId": null, "replyTo": null, "repost": null, "quoted": null, "pinned": false, "sensitive": false, "links": [ "https://plus.nasa.gov/video/the-europa-concept/" ], "altTexts": [], "playlists": [ "https://video.twimg.com/amplify_video/2124902931874889728/pl/20P7_wOL27G5jRSc.m3u8?tag=16&v=bcb" ] } } ], "pagination": { "nextCursor": "DAAHCgABHYIpjkG__-wLAAIAAAATMTg3NTEyNjk5Njg4NjY5MTE5OAgAAwAAAAIAAA", "hasMore": true }}