Get Started
User Endpoint
Tweet Endpoint
Communities Endpoint
Trend Endpoint
My Endpoint
Tweet Action Endpoint
User Endpoint
Batch Get User Info By UserIds
Batch get user info by user ids. Pricing:
- Single user request: 18 credits per user
- Bulk request (100+ users): 10 credits per user
Note: For cost optimization, we recommend batching requests when fetching multiple user profiles.
GET
/
twitter
/
user
/
batch_info_by_ids
Copy
curl --request GET \
--url https://api.twitterapi.io/twitter/user/batch_info_by_ids \
--header 'X-API-Key: <api-key>'
Copy
{
"users": [
{
"type": "user",
"userName": "<string>",
"url": "<string>",
"id": "<string>",
"name": "<string>",
"isBlueVerified": true,
"verifiedType": "<string>",
"profilePicture": "<string>",
"coverPicture": "<string>",
"description": "<string>",
"location": "<string>",
"followers": 123,
"following": 123,
"canDm": true,
"createdAt": "<string>",
"favouritesCount": 123,
"hasCustomTimelines": true,
"isTranslator": true,
"mediaCount": 123,
"statusesCount": 123,
"withheldInCountries": [
"<string>"
],
"affiliatesHighlightedLabel": {},
"possiblySensitive": true,
"pinnedTweetIds": [
"<string>"
],
"isAutomated": true,
"automatedBy": "<string>",
"unavailable": true,
"message": "<string>",
"unavailableReason": "<string>",
"profile_bio": {
"description": "<string>",
"entities": {
"description": {
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
]
},
"url": {
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
]
}
}
}
}
],
"status": "success",
"msg": "<string>"
}
Authorizations
Query Parameters
The user ids to get.eg. 1234567890,1234567891,1234567892. Use comma to separate multiple user ids
Response
200
application/json
User infos
The response is of type object
.
Copy
curl --request GET \
--url https://api.twitterapi.io/twitter/user/batch_info_by_ids \
--header 'X-API-Key: <api-key>'
Copy
{
"users": [
{
"type": "user",
"userName": "<string>",
"url": "<string>",
"id": "<string>",
"name": "<string>",
"isBlueVerified": true,
"verifiedType": "<string>",
"profilePicture": "<string>",
"coverPicture": "<string>",
"description": "<string>",
"location": "<string>",
"followers": 123,
"following": 123,
"canDm": true,
"createdAt": "<string>",
"favouritesCount": 123,
"hasCustomTimelines": true,
"isTranslator": true,
"mediaCount": 123,
"statusesCount": 123,
"withheldInCountries": [
"<string>"
],
"affiliatesHighlightedLabel": {},
"possiblySensitive": true,
"pinnedTweetIds": [
"<string>"
],
"isAutomated": true,
"automatedBy": "<string>",
"unavailable": true,
"message": "<string>",
"unavailableReason": "<string>",
"profile_bio": {
"description": "<string>",
"entities": {
"description": {
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
]
},
"url": {
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
]
}
}
}
}
],
"status": "success",
"msg": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.