Skip to Content

Profile Similar

Accounts like one, as X suggests them.

GET
/v1/x/profile/similar

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The account's handle (NASA), with or without @.

url?string

The profile's link (https://x.com/NASA), instead of handle.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.x.profileSimilar({ handle: "NASA" });
Example Response
{  "data": [    {      "id": "44196397",      "username": "elonmusk",      "displayName": "Elon Musk",      "bio": "http://Terafab.AI",      "avatarUrl": "https://pbs.twimg.com/profile_images/2122506092437504001/NSS4RHyZ_400x400.jpg",      "url": "https://x.com/elonmusk",      "verified": false,      "private": false,      "followers": 239744401,      "following": 1429,      "likes": null,      "posts": 112912,      "externalUrl": null,      "createdAt": "2009-06-02T20:12:29.000Z",      "ext": {        "bannerUrl": "https://pbs.twimg.com/profile_banners/44196397/1774145451",        "location": null,        "blueVerified": false,        "verifiedType": null,        "verifiedSince": null,        "mediaPosts": 4788,        "highlights": null,        "likesGiven": 260389,        "pinnedPosts": [          "2125797463047258119"        ]      }    },    {      "id": "50393960",      "username": "BillGates",      "displayName": "Bill Gates",      "bio": "Sharing things I'm learning through my foundation work and other interests.",      "avatarUrl": "https://pbs.twimg.com/profile_images/1879013694367252480/Gxa-Pspq_400x400.jpg",      "url": "https://x.com/BillGates",      "verified": false,      "private": false,      "followers": 65144461,      "following": 575,      "likes": null,      "posts": 4540,      "externalUrl": "https://gatesnot.es/tgn",      "createdAt": "2009-06-24T18:44:10.000Z",      "ext": {        "bannerUrl": "https://pbs.twimg.com/profile_banners/50393960/1745250848",        "location": "Seattle, WA",        "blueVerified": false,        "verifiedType": null,        "verifiedSince": null,        "mediaPosts": 1530,        "highlights": null,        "likesGiven": 548,        "pinnedPosts": []      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}