Skip to main content
GET
/
v1
/
twitter
/
screenname
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/twitter/screenname?screenname=elonmusk&rest_id=44196397' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "active",
    "profile": "elonmusk",
    "rest_id": "44196397",
    "blue_verified": true,
    "verification_type": null,
    "affiliates": {
      "label": {
        "badge": {
          "url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
        },
        "description": "X",
        "url": {
          "url": "https://twitter.com/X",
          "urlType": "DeepLink"
        },
        "userLabelDisplayType": "Badge",
        "userLabelType": "BusinessLabel"
      }
    },
    "business_account": [],
    "avatar": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg",
    "header_image": "https://pbs.twimg.com/profile_banners/44196397/1774145451",
    "desc": "https://t.co/dDtDyVssfm",
    "name": "Elon Musk",
    "protected": false,
    "location": "",
    "friends": 1325,
    "sub_count": 239947098,
    "statuses_count": 102410,
    "media_count": 4487,
    "pinned_tweet_ids_str": null,
    "created_at": "Tue Jun 02 20:12:29 +0000 2009",
    "id": "44196397"
  },
  "requestId": "dbca9df7-d91b-4075-8d72-7bb4b062d01a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

πŸͺ™1 creditper request

Copy for AI

πŸ€– Why Code When AI Can Do It For You?

Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

screenname
string
required
Example:

"elonmusk"

rest_id
string

Twitter user's id. This parameter overwrites screenname parameter.

Example:

"44196397"

Response

The response is of type object.