cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/screennames?rest_ids=44196397,34743251' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"users": [
{
"status": "active",
"profile": "elonmusk",
"rest_id": "44196397",
"blue_verified": true,
"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": null,
"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",
"can_dm": false,
"name": "Elon Musk",
"protected": false,
"location": "",
"friends": 1325,
"sub_count": 239954244,
"favourites": 226857,
"statuses_count": 102416,
"media_count": 4487,
"pinned_tweet_ids_str": null,
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"id": "44196397"
},
{
"status": "active",
"profile": "SpaceX",
"rest_id": "34743251",
"blue_verified": true,
"affiliates": [],
"business_account": null,
"avatar": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"header_image": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
"desc": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
"can_dm": false,
"name": "SpaceX",
"website": "http://spacex.com",
"protected": false,
"location": "Earth",
"friends": 123,
"sub_count": 41661327,
"favourites": 520,
"statuses_count": 11299,
"media_count": 4429,
"pinned_tweet_ids_str": [
"2054304050338750931"
],
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"id": "34743251"
}
]
},
"requestId": "ab373346-4784-4d68-99fe-eaebf53e5b35"
}Twitter / X
Profiles By RestIds
GET
/
v1
/
twitter
/
screennames
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/screennames?rest_ids=44196397,34743251' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"users": [
{
"status": "active",
"profile": "elonmusk",
"rest_id": "44196397",
"blue_verified": true,
"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": null,
"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",
"can_dm": false,
"name": "Elon Musk",
"protected": false,
"location": "",
"friends": 1325,
"sub_count": 239954244,
"favourites": 226857,
"statuses_count": 102416,
"media_count": 4487,
"pinned_tweet_ids_str": null,
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"id": "44196397"
},
{
"status": "active",
"profile": "SpaceX",
"rest_id": "34743251",
"blue_verified": true,
"affiliates": [],
"business_account": null,
"avatar": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"header_image": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
"desc": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
"can_dm": false,
"name": "SpaceX",
"website": "http://spacex.com",
"protected": false,
"location": "Earth",
"friends": 123,
"sub_count": 41661327,
"favourites": 520,
"statuses_count": 11299,
"media_count": 4429,
"pinned_tweet_ids_str": [
"2054304050338750931"
],
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"id": "34743251"
}
]
},
"requestId": "ab373346-4784-4d68-99fe-eaebf53e5b35"
}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.
⌘I

