Skip to content

X (Twitter) API

3 endpointsSocial & VideoGlobalsocial:read2 real examples

Returns the text, author, counters and media of a public tweet, and the latest tweets of an account.

View as Markdown
GET/twitter/tweetText, author, counters and media of one public tweet.
GET/twitter/profileTimelineThe latest tweets of one account, about 20, newest first. X gives no cursor for older ones.
GET/twitter/profileOne X account's profile: name, bio, location, verified status, and follower, following and post counts.

tweet

GET/v1/twitter/tweet

Text, author, counters and media of one public tweet.

scope social:read1 unitcached 5 min

Parameters

id
string
required
Tweet id, or an x.com or twitter.com status URL.
e.g. 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

20 fields
authorAuthor
avatarstring
idstring
namestring
usernamestring
verifiedboolean
createdAtstring
idstring
langstring
likeCountinteger (int64)
mediaMedia[]
heightany
typestring
urlstring
videostring
widthany
possiblySensitiveboolean
replyCountinteger (int64)
textstring
urlstring
curl "https://api.hoshime.com/v1/twitter/tweet?id=20" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": {
      "avatar": "https://pbs.twimg.com/profile_images/1661201415899951105/azNjKOSH_normal.jpg",
      "id": "12",
      "name": "jack",
      "username": "jack",
      "verified": true
    },
    "createdAt": "2006-03-21T20:50:14Z",
    "id": "20",
    "lang": "en",
    "likeCount": 324988,
    "media": [],
    "possiblySensitive": false,
    "replyCount": 19252,
    "text": "just setting up my twttr",
    "url": "https://x.com/jack/status/20"
  },
  "meta": {
    "cached": false,
    "endpoint": "tweet",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "twitter",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

profileTimeline

GET/v1/twitter/profileTimeline

The latest tweets of one account, about 20, newest first. X gives no cursor for older ones.

scope social:read1 unitcached 15 minpaginated

Parameters

username
string
required
Screen name, with or without @, or profile URL.
e.g. X
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

20 fields
authorAuthor
avatarstring
idstring
namestring
usernamestring
verifiedboolean
createdAtstring
idstring
langstring
likeCountinteger (int64)
mediaMedia[]
heightany
typestring
urlstring
videostring
widthany
possiblySensitiveboolean
replyCountinteger (int64)
textstring
urlstring
curl "https://api.hoshime.com/v1/twitter/profileTimeline?username=X" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatar": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
        "id": "783214",
        "name": "X",
        "username": "X",
        "verified": true
      },
      "createdAt": "2026-11-02T21:57:53Z",
      "id": "2117375669432664133",
      "lang": "en",
      "likeCount": 11967,
      "media": [],
      "possiblySensitive": false,
      "replyCount": 0,
      "text": "ah yes welcome back irl dark mode",
      "url": "https://x.com/X/status/2117375669432664133"
    },
    {
      "author": {
        "avatar": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
        "id": "783214",
        "name": "X",
        "username": "X",
        "verified": true
      },
      "createdAt": "2026-10-28T20:20:36Z",
      "id": "2115539248451305747",
      "lang": "zxx",
      "likeCount": 0,
      "media": [],
      "possiblySensitive": false,
      "replyCount": 0,
      "text": "RT @XBusiness: https://t.co/UUy2CUdmf8",
      "url": "https://x.com/X/status/2115539248451305747"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "profileTimeline",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "twitter",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

profile

GET/v1/twitter/profile

One X account's profile: name, bio, location, verified status, and follower, following and post counts.

scope social:read1 unitcached 1 h

Parameters

username
string
required
Screen name, with or without @, or profile URL.
e.g. NASA
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/twitter/profile?username=NASA" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "avatarUrl": "https://…",
    "bio": "…",
    "createdAt": "2026-11-06T09:41:00Z",
    "followerCount": 1280,
    "followingCount": 1280,
    "id": "abc123",
    "name": "…",
    "postCount": 1280,
    "url": "https://…",
    "username": "…",
    "verified": false
  },
  "meta": {
    "cached": false,
    "endpoint": "profile",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "twitter",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open