Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Twitter / X connector

Bearer TokenCommunicationMarketing

Connect to Twitter using an App-Only Bearer Token to access public, read-only, and application-level endpoints — search, compliance jobs and streams...

Twitter / X connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Register your Twitter / X credentials with Scalekit so it can authenticate requests on your behalf. You do this once per environment.

    Dashboard setup steps

    Register a Twitter Bearer Token with Scalekit to make app-only requests — reading public tweets, users, and search results without acting on behalf of a specific user. You’ll need a Bearer Token from an app in the X Developer Console.

    1. Choose or create an app in the X Developer Console

      • Go to the X Developer Console and sign in.

      • Under Access > Apps, either select an existing app or click + Create App.

        X Developer Console Create New Client Application dialog

    2. Generate a Bearer Token

      • Open your app and go to the Keys & Tokens tab.

      • Under App-Only Authentication, click Generate next to Bearer Token (or Regenerate if one already exists).

        X app Keys and Tokens tab with Consumer Key, Secret Key, and Bearer Token values redacted

      • Copy the token immediately — X shows it in full only once.

    3. Add the token in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Search for Twitter Bearer and click Create.
      • Paste the Bearer Token you copied in step 2.
      • Click Save.
  4. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'twitterbearer'
    const identifier = 'user_123'
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'twitterbearer_activity_subscriptions_list',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • Username users lookup by, user lookup by — Retrieves detailed information for 1 to 100 Twitter users by their usernames (each 1-15 alphanumeric characters/underscores)
  • Lookup users, user, posts — Retrieves detailed information for specified X (formerly Twitter) user IDs
  • Stream users compliance, tweets compliance, tweet label — Streams real-time compliance events (account deletions, deactivations, username changes, suspensions) for Users so downstream systems can stay in sync
  • Get user posts, user owned lists, user mentions — Retrieves a collection of Posts (Tweets) authored by the specified user, most recent first
  • List user, timeline get, members get — Retrieves all Twitter Lists a specified user is a member of, including public Lists and private Lists the authenticated user is authorized to view
  • Search spaces, recent, full archive — Searches for Twitter Spaces by a textual query

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

twitterbearer_activity_subscription_create#Creates a subscription for a single X activity event type, scoped to exactly one of a user (filter_user_id) or a keyword (filter_keyword) - Twitter rejects requests providing neither or both - delivered to a registered webhook. OAuth2 user-context tokens must hold the scope matching the requested event_type: dm.read for chat.* and dm.* events, like.read for like.* events, mute.read for mute.* events, block.read for block.* events, and tweet.read for all other event types. Mute and block subscriptions are actor-only.6 params

Creates a subscription for a single X activity event type, scoped to exactly one of a user (filter_user_id) or a keyword (filter_keyword) - Twitter rejects requests providing neither or both - delivered to a registered webhook. OAuth2 user-context tokens must hold the scope matching the requested event_type: dm.read for chat.* and dm.* events, like.read for like.* events, mute.read for mute.* events, block.read for block.* events, and tweet.read for all other event types. Mute and block subscriptions are actor-only.

NameTypeRequiredDescription
event_typestringrequiredActivity event type in dot notation
filter_directionstringoptionalOptional direction filter for directional events. Not supported for mute.* or block.* events.
filter_keywordstringoptionalOptional keyword filter
filter_user_idstringoptionalUser the subscription is scoped to. For mute.* and block.* events, this must be the authenticated source user.
tagstringoptionalOptional caller-defined tag
webhook_idstringoptionalWebhook to deliver the subscription events to
twitterbearer_activity_subscription_delete#Deletes one or more X activity subscriptions by ID (up to 100 at a time), stopping future activity event notifications for them.1 param

Deletes one or more X activity subscriptions by ID (up to 100 at a time), stopping future activity event notifications for them.

NameTypeRequiredDescription
subscription_idsarrayrequiredIDs of the activity subscriptions to delete (1 to 100)
twitterbearer_activity_subscriptions_list#List existing X activity subscriptions for the authenticated app. Complements Create Activity Subscription, which only covers creating new subscriptions on this same resource.0 params

List existing X activity subscriptions for the authenticated app. Complements Create Activity Subscription, which only covers creating new subscriptions on this same resource.

twitterbearer_community_get#Get details of an X Community by its ID: name, description, access type, join policy, and member count.2 params

Get details of an X Community by its ID: name, description, access type, join policy, and member count.

NameTypeRequiredDescription
idstringrequiredCommunity ID to look up
community_fieldsstringoptionalComma-separated Community fields to include, e.g. access,created_at,description,member_count,name
twitterbearer_compliance_job_create#Creates a new compliance job to check the status of Tweet or user IDs. Upload IDs as a plain text file (one ID per line) to the upload_url received in the response.2 params

Creates a new compliance job to check the status of Tweet or user IDs. Upload IDs as a plain text file (one ID per line) to the upload_url received in the response.

NameTypeRequiredDescription
typestringrequiredType of compliance job
resumablebooleanoptionalWhether the job should be resumable
twitterbearer_compliance_job_get#Retrieves status, download/upload URLs, and other details for an existing Twitter compliance job specified by its unique ID.1 param

Retrieves status, download/upload URLs, and other details for an existing Twitter compliance job specified by its unique ID.

NameTypeRequiredDescription
idstringrequiredCompliance job ID
twitterbearer_compliance_jobs_list#Returns a list of recent compliance jobs, filtered by type (tweets or users) and optionally by status.2 params

Returns a list of recent compliance jobs, filtered by type (tweets or users) and optionally by status.

NameTypeRequiredDescription
typestringrequiredType of compliance jobs to list
statusstringoptionalFilter by job status
twitterbearer_followers_get#Retrieves a list of users who follow a specified public Twitter user ID.5 params

Retrieves a list of users who follow a specified public Twitter user ID.

NameTypeRequiredDescription
idstringrequiredTwitter user ID to get followers for
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-1000)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_following_get#Retrieves users followed by a specific Twitter user, allowing pagination and customization of returned user and tweet data fields via expansions.5 params

Retrieves users followed by a specific Twitter user, allowing pagination and customization of returned user and tweet data fields via expansions.

NameTypeRequiredDescription
idstringrequiredTwitter user ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-1000)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_full_archive_search_counts#Returns a count of Tweets from the full archive that match a specified query, aggregated by day, hour, or minute. start_time must be before end_time if both are provided. since_id/until_id cannot be used with start_time/end_time.7 params

Returns a count of Tweets from the full archive that match a specified query, aggregated by day, hour, or minute. start_time must be before end_time if both are provided. since_id/until_id cannot be used with start_time/end_time.

NameTypeRequiredDescription
querystringrequiredSearch query
end_timestringoptionalISO 8601 end time
granularitystringoptionalAggregation granularity
next_tokenstringoptionalNext page token
since_idstringoptionalMinimum tweet ID
start_timestringoptionalISO 8601 start time
until_idstringoptionalMaximum tweet ID
twitterbearer_likes_compliance_stream#Streams real-time compliance events (unlikes) for Likes so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.3 params

Streams real-time compliance events (unlikes) for Likes so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.

NameTypeRequiredDescription
backfill_minutesintegeroptionalMinutes of backfill to stream on reconnect (0-5)
end_timestringoptionalISO 8601 end time
start_timestringoptionalISO 8601 start time
twitterbearer_list_followers_get#Fetches a list of users who follow a specific Twitter List, identified by its ID. Ensure the authenticated user has access if the list is private.5 params

Fetches a list of users who follow a specific Twitter List, identified by its ID. Ensure the authenticated user has access if the list is private.

NameTypeRequiredDescription
idstringrequiredTwitter List ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_list_lookup#Returns metadata for a specific Twitter List, identified by its ID. Does not return list members. Can expand the owner's User object via the expansions parameter.4 params

Returns metadata for a specific Twitter List, identified by its ID. Does not return list members. Can expand the owner's User object via the expansions parameter.

NameTypeRequiredDescription
idstringrequiredTwitter List ID
expansionsstringoptionalComma-separated expansions
list_fieldsstringoptionalComma-separated list fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_list_members_get#Fetches members of a specific Twitter List, identified by its unique ID.5 params

Fetches members of a specific Twitter List, identified by its unique ID.

NameTypeRequiredDescription
idstringrequiredTwitter List ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_list_timeline_get#Fetches the most recent Tweets posted by members of a specified Twitter List.6 params

Fetches the most recent Tweets posted by members of a specified Twitter List.

NameTypeRequiredDescription
idstringrequiredTwitter List ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_media_batch_lookup#Retrieves details for one or more pieces of media identified by their media keys.2 params

Retrieves details for one or more pieces of media identified by their media keys.

NameTypeRequiredDescription
media_keysstringrequiredComma-separated list of media keys (up to 100)
media_fieldsstringoptionalComma-separated media fields
twitterbearer_media_lookup#Retrieves details for a single piece of media by its media key.2 params

Retrieves details for a single piece of media by its media key.

NameTypeRequiredDescription
media_keystringrequiredMedia key to look up
media_fieldsstringoptionalComma-separated media fields
twitterbearer_openapi_spec_get#Fetches the OpenAPI specification (JSON) for Twitter's API v2. Used to programmatically understand the API's structure for developing client libraries or tools.0 params

Fetches the OpenAPI specification (JSON) for Twitter's API v2. Used to programmatically understand the API's structure for developing client libraries or tools.

twitterbearer_post_lookup#Fetches comprehensive details for a single Tweet by its unique ID, provided the Tweet exists and is accessible.5 params

Fetches comprehensive details for a single Tweet by its unique ID, provided the Tweet exists and is accessible.

NameTypeRequiredDescription
idstringrequiredTweet ID
expansionsstringoptionalComma-separated expansions
media_fieldsstringoptionalComma-separated media fields
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_post_quotes_get#Retrieves Tweets that quote a specified Tweet. Requires a valid Tweet ID.5 params

Retrieves Tweets that quote a specified Tweet. Requires a valid Tweet ID.

NameTypeRequiredDescription
idstringrequiredTweet ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
tweet_fieldsstringoptionalComma-separated tweet fields
twitterbearer_post_retweeters_get#Retrieves users who publicly retweeted a specified public Post ID, excluding Quote Tweets and retweets from private accounts.5 params

Retrieves users who publicly retweeted a specified public Post ID, excluding Quote Tweets and retweets from private accounts.

NameTypeRequiredDescription
idstringrequiredTweet ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_post_retweets_get#Retrieves Tweets that Retweeted a specified public or authenticated-user-accessible Tweet ID. Optionally customize the response with fields and expansions.5 params

Retrieves Tweets that Retweeted a specified public or authenticated-user-accessible Tweet ID. Optionally customize the response with fields and expansions.

NameTypeRequiredDescription
idstringrequiredTweet ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
tweet_fieldsstringoptionalComma-separated tweet fields
twitterbearer_posts_lookup#Retrieves detailed information for one or more Posts (Tweets) identified by their unique IDs. Allows selection of specific fields and expansions.5 params

Retrieves detailed information for one or more Posts (Tweets) identified by their unique IDs. Allows selection of specific fields and expansions.

NameTypeRequiredDescription
idsstringrequiredComma-separated list of Tweet IDs (up to 100)
expansionsstringoptionalComma-separated expansions
media_fieldsstringoptionalComma-separated media fields
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_recent_tweet_counts#Retrieves the count of Tweets matching a specified search query within the last 7 days, aggregated by 'minute', 'hour', or 'day'.6 params

Retrieves the count of Tweets matching a specified search query within the last 7 days, aggregated by 'minute', 'hour', or 'day'.

NameTypeRequiredDescription
querystringrequiredSearch query
end_timestringoptionalISO 8601 end time
granularitystringoptionalAggregation granularity
since_idstringoptionalMinimum tweet ID
start_timestringoptionalISO 8601 start time
until_idstringoptionalMaximum tweet ID
twitterbearer_space_get#Retrieves details for a Twitter Space by its ID, allowing for customization and expansion of related data.4 params

Retrieves details for a Twitter Space by its ID, allowing for customization and expansion of related data.

NameTypeRequiredDescription
idstringrequiredTwitter Space ID
expansionsstringoptionalComma-separated expansions
space_fieldsstringoptionalComma-separated space fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_space_posts_get#Retrieves Tweets that were shared/posted during a Twitter Space broadcast. Returns Tweets that participants explicitly shared during the Space session, NOT audio transcripts. Most Spaces have zero associated Tweets — empty results are normal.4 params

Retrieves Tweets that were shared/posted during a Twitter Space broadcast. Returns Tweets that participants explicitly shared during the Space session, NOT audio transcripts. Most Spaces have zero associated Tweets — empty results are normal.

NameTypeRequiredDescription
idstringrequiredTwitter Space ID
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (1-100)
tweet_fieldsstringoptionalComma-separated tweet fields
twitterbearer_spaces_by_creator_get#Retrieves Twitter Spaces created by a list of specified User IDs, with options to customize returned data fields.4 params

Retrieves Twitter Spaces created by a list of specified User IDs, with options to customize returned data fields.

NameTypeRequiredDescription
user_idsstringrequiredComma-separated list of user IDs to get spaces for
expansionsstringoptionalComma-separated expansions
space_fieldsstringoptionalComma-separated space fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_spaces_get#Fetches detailed information for one or more Twitter Spaces (live, scheduled, or ended) by their unique IDs. At least one Space ID must be provided.4 params

Fetches detailed information for one or more Twitter Spaces (live, scheduled, or ended) by their unique IDs. At least one Space ID must be provided.

NameTypeRequiredDescription
idsstringrequiredComma-separated list of Space IDs
expansionsstringoptionalComma-separated expansions
space_fieldsstringoptionalComma-separated space fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_tweet_label_stream#Stream real-time Tweet label events (apply/remove). Requires Enterprise access and App-Only OAuth 2.0 auth. Returns PublicTweetNotice or PublicTweetUnviewable events. 403 errors indicate missing Enterprise access or wrong auth type.3 params

Stream real-time Tweet label events (apply/remove). Requires Enterprise access and App-Only OAuth 2.0 auth. Returns PublicTweetNotice or PublicTweetUnviewable events. 403 errors indicate missing Enterprise access or wrong auth type.

NameTypeRequiredDescription
backfill_minutesintegeroptionalMinutes of backfill to stream on reconnect (0-5)
end_timestringoptionalYYYY-MM-DDTHH:mm:ssZ. Latest UTC timestamp from which Post labels will be provided.
start_timestringoptionalYYYY-MM-DDTHH:mm:ssZ. Earliest UTC timestamp from which Post labels will be provided.
twitterbearer_tweet_usage_get#Fetches Tweet usage statistics for a Project (e.g., consumption, caps, daily breakdowns for Project and Client Apps) to monitor API limits. Data can be retrieved for 1 to 90 days.2 params

Fetches Tweet usage statistics for a Project (e.g., consumption, caps, daily breakdowns for Project and Client Apps) to monitor API limits. Data can be retrieved for 1 to 90 days.

NameTypeRequiredDescription
daysintegeroptionalNumber of days to retrieve usage data for, default 7
usage_fieldsstringoptionalComma-separated usage fields to include
twitterbearer_tweets_compliance_stream#Streams real-time compliance events (deletions, scrubs, edits) for Tweets so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.4 params

Streams real-time compliance events (deletions, scrubs, edits) for Tweets so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.

NameTypeRequiredDescription
partitionintegerrequiredPartition number to connect to (1-4)
backfill_minutesintegeroptionalMinutes of backfill to stream on reconnect (0-5)
end_timestringoptionalISO 8601 end time
start_timestringoptionalISO 8601 start time
twitterbearer_user_followed_lists_get#Returns metadata (not Tweets) for lists a specific Twitter user follows. Optionally includes expanded owner details.6 params

Returns metadata (not Tweets) for lists a specific Twitter user follows. Optionally includes expanded owner details.

NameTypeRequiredDescription
idstringrequiredTwitter user ID
expansionsstringoptionalComma-separated expansions
list_fieldsstringoptionalComma-separated list fields
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_list_memberships_get#Retrieves all Twitter Lists a specified user is a member of, including public Lists and private Lists the authenticated user is authorized to view.6 params

Retrieves all Twitter Lists a specified user is a member of, including public Lists and private Lists the authenticated user is authorized to view.

NameTypeRequiredDescription
idstringrequiredTwitter user ID
expansionsstringoptionalComma-separated expansions
list_fieldsstringoptionalComma-separated list fields
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_lookup#Retrieves detailed public information for a Twitter user by their ID. Optionally expand related data (e.g., pinned tweets) and specify particular user or tweet fields to return.4 params

Retrieves detailed public information for a Twitter user by their ID. Optionally expand related data (e.g., pinned tweets) and specify particular user or tweet fields to return.

NameTypeRequiredDescription
idstringrequiredTwitter user ID
expansionsstringoptionalComma-separated expansions
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_lookup_by_username#Fetches public profile information for a valid and existing Twitter user by their username. Optionally expands related data like pinned Tweets. Results may be limited for protected profiles not followed by the authenticated user.4 params

Fetches public profile information for a valid and existing Twitter user by their username. Optionally expands related data like pinned Tweets. Results may be limited for protected profiles not followed by the authenticated user.

NameTypeRequiredDescription
usernamestringrequiredTwitter username without the @ symbol, e.g. elonmusk
expansionsstringoptionalComma-separated expansions
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_mentions_get#Retrieves Posts (Tweets) that mention the specified user, most recent first.10 params

Retrieves Posts (Tweets) that mention the specified user, most recent first.

NameTypeRequiredDescription
idstringrequiredUser ID whose mentions should be retrieved
end_timestringoptionalISO 8601 end time
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (5-100)
pagination_tokenstringoptionalPagination token for next page
since_idstringoptionalMinimum tweet ID
start_timestringoptionalISO 8601 start time
tweet_fieldsstringoptionalComma-separated tweet fields
until_idstringoptionalMaximum tweet ID
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_owned_lists_get#Retrieves Lists created (owned) by a specific Twitter user, not Lists they follow or are subscribed to.6 params

Retrieves Lists created (owned) by a specific Twitter user, not Lists they follow or are subscribed to.

NameTypeRequiredDescription
idstringrequiredTwitter user ID
expansionsstringoptionalComma-separated expansions
list_fieldsstringoptionalComma-separated list fields
max_resultsintegeroptionalMax results per page (1-100)
pagination_tokenstringoptionalPagination token for next page
user_fieldsstringoptionalComma-separated user fields
twitterbearer_user_posts_get#Retrieves a collection of Posts (Tweets) authored by the specified user, most recent first.11 params

Retrieves a collection of Posts (Tweets) authored by the specified user, most recent first.

NameTypeRequiredDescription
idstringrequiredUser ID whose Posts should be retrieved
end_timestringoptionalISO 8601 end time
excludestringoptionalComma-separated types to exclude: replies,retweets
expansionsstringoptionalComma-separated expansions
max_resultsintegeroptionalMax results per page (5-100)
pagination_tokenstringoptionalPagination token for next page
since_idstringoptionalMinimum tweet ID
start_timestringoptionalISO 8601 start time
tweet_fieldsstringoptionalComma-separated tweet fields
until_idstringoptionalMaximum tweet ID
user_fieldsstringoptionalComma-separated user fields
twitterbearer_users_compliance_stream#Streams real-time compliance events (account deletions, deactivations, username changes, suspensions) for Users so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.4 params

Streams real-time compliance events (account deletions, deactivations, username changes, suspensions) for Users so downstream systems can stay in sync. Requires Enterprise access and App-Only OAuth 2.0 auth.

NameTypeRequiredDescription
partitionintegerrequiredPartition number to connect to (1-4)
backfill_minutesintegeroptionalMinutes of backfill to stream on reconnect (0-5)
end_timestringoptionalISO 8601 end time
start_timestringoptionalISO 8601 start time
twitterbearer_users_lookup#Retrieves detailed information for specified X (formerly Twitter) user IDs. Optionally customize returned fields and expand related entities like pinned tweets.4 params

Retrieves detailed information for specified X (formerly Twitter) user IDs. Optionally customize returned fields and expand related entities like pinned tweets.

NameTypeRequiredDescription
idsstringrequiredComma-separated list of Twitter user IDs (up to 100)
expansionsstringoptionalComma-separated expansions
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields
twitterbearer_users_lookup_by_username#Retrieves detailed information for 1 to 100 Twitter users by their usernames (each 1-15 alphanumeric characters/underscores). Allows customizable user/tweet fields and expansion of related data like pinned tweets.4 params

Retrieves detailed information for 1 to 100 Twitter users by their usernames (each 1-15 alphanumeric characters/underscores). Allows customizable user/tweet fields and expansion of related data like pinned tweets.

NameTypeRequiredDescription
usernamesstringrequiredComma-separated list of Twitter usernames without @ symbols (up to 100)
expansionsstringoptionalComma-separated expansions
tweet_fieldsstringoptionalComma-separated tweet fields
user_fieldsstringoptionalComma-separated user fields