Skip to main content
GET
/
v1
/
twitter
/
AutoComplete
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/twitter/AutoComplete?q=elonmusk' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "num_results": 13,
    "users": [
      {
        "id": 44196397,
        "id_str": "44196397",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [
          {
            "badge_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg",
            "badge_type": "BusinessLabel",
            "description": "X"
          }
        ],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Elon Musk",
        "screen_name": "elonmusk",
        "profile_image_url": "http://pbs.twimg.com/profile_images/2035314704307081216/71U1ftM3_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/2035314704307081216/71U1ftM3_normal.jpg",
        "location": "",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": "1382209054999646212",
        "id_str": "1382209054999646212",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Not Elon Musk",
        "screen_name": "ElonMuskAOC",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1785089965619118080/NATKmh45_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1785089965619118080/NATKmh45_normal.jpg",
        "location": "Mars",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": 15985111,
        "id_str": "15985111",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "EU says Elon should not lie abt my blue check",
        "screen_name": "emptywheel",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1773870183/image1327265832_normal.png",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1773870183/image1327265832_normal.png",
        "location": "The original Limerick",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": 628253959,
        "id_str": "628253959",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Not Elon Musk",
        "screen_name": "ElonMuskPDA",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1990239723517059072/q0K7OKTU_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1990239723517059072/q0K7OKTU_normal.jpg",
        "location": "Mars",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": 824659850,
        "id_str": "824659850",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "ElonSatoshi.NFT",
        "screen_name": "ElonSATS",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1770230177500385280/PJW27YiG_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1770230177500385280/PJW27YiG_normal.jpg",
        "location": "-77.482813, -9.194215",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": "1543134200097808395",
        "id_str": "1543134200097808395",
        "verified": false,
        "ext_is_blue_verified": false,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Elon Melon",
        "screen_name": "ElonMelonX",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1699743534998224896/m7IZNFt1_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1699743534998224896/m7IZNFt1_normal.jpg",
        "location": "Mark Zuckerberg's house",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": "1001414496819261440",
        "id_str": "1001414496819261440",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "ElonTrades",
        "screen_name": "ElonTrades",
        "profile_image_url": "http://pbs.twimg.com/profile_images/2048718662056701952/4HGadNEb_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/2048718662056701952/4HGadNEb_normal.jpg",
        "location": "",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": "1591001290846388225",
        "id_str": "1591001290846388225",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "ELON CLIPS",
        "screen_name": "ElonClipsX",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1777554101338865664/wTE0LT61_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1777554101338865664/wTE0LT61_normal.jpg",
        "location": "Solar System",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": 247853244,
        "id_str": "247853244",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Not Elon Musk",
        "screen_name": "ElonMuskPD",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1918782113077501952/qBT7zRNY_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1918782113077501952/qBT7zRNY_normal.jpg",
        "location": "",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      },
      {
        "id": 264756759,
        "id_str": "264756759",
        "verified": false,
        "ext_is_blue_verified": true,
        "badges": [],
        "is_dm_able": false,
        "is_secret_dm_able": false,
        "is_persona_media_genable": false,
        "is_blocked": false,
        "can_media_tag": false,
        "name": "Esra Elönü",
        "screen_name": "elonue",
        "profile_image_url": "http://pbs.twimg.com/profile_images/1557996620674994178/Wz8Kzw0y_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/1557996620674994178/Wz8Kzw0y_normal.jpg",
        "location": "İstanbul",
        "is_protected": false,
        "rounded_score": 0,
        "social_proof": 0,
        "connecting_user_count": 0,
        "connecting_user_ids": [],
        "social_proofs_ordered": [],
        "social_context": {
          "following": false,
          "followed_by": false
        },
        "tokens": [],
        "inline": false
      }
    ],
    "topics": [
      {
        "topic": "elon musk",
        "rounded_score": 0,
        "tokens": [],
        "inline": false
      },
      {
        "topic": "elon",
        "rounded_score": 0,
        "tokens": [],
        "inline": false
      },
      {
        "topic": "elon mask",
        "rounded_score": 0,
        "tokens": [],
        "inline": false
      }
    ],
    "events": [],
    "lists": [],
    "ordered_sections": [],
    "oneclick": [],
    "hashtags": [],
    "cashtags": [],
    "completed_in": 0,
    "query": "Elon"
  },
  "requestId": "da567eb8-2e2f-44b7-964e-65f6763264df"
}

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

q
string
required

Search query

Example:

"Elon"

Response

The response is of type object.