Twitter Profiles and Tweets
Endpoints
Tweet 6
User 10
Community 2
What is the Twitter Profiles and Tweets API?
Read-only X/Twitter user profiles, tweets, media, following, followers, and search in structured JSON. No customer X login required. Visible-data coverage, with cursor pagination where supported.
Twitter Profiles and Tweets API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.
Twitter Profiles and Tweets API endpoints
- GET
/v1/tweet-searchSearch Tweets
Search posts using query and Latest (default) or Top ordering. data.items contains tweet details. query and product repeat the conditions; next_cursor continues the next page. Keep both query and product unchanged when paging. count is a hint and the entire upstream page is preserved. complete=false; full historical coverage is not guaranteed. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/tweet-infoTweet Details
Retrieve one post by numeric ID. data includes id, text, created_at, author, language, reply/like/repost/quote/view/bookmark counts, entities, attached media, conversation/reply IDs and observed quote/repost details. include_nested and max_depth control expansion of data already in the source page; no extra network fetches. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/tweets-by-idsBatch Tweet Details
Retrieve up to 10 comma-separated post IDs sequentially. data.items contains input, status, data (post details) and error_type. A failure stops later lookups and marks them skipped. A partial batch returns status=partial. Nested expansion options apply to each post. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/tweet-mediaTweet Media
Retrieve media directly attached to a post. data.post_id identifies the post; data.items contains image/video metadata such as id, type, image_url, dimensions, duration_ms, variants, aspect_ratio and alt_text when supplied. Does not download files or include media from quoted posts. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/tweet-threadTweet Thread
Retrieve conversation items visible on a public post page. data.target is the requested post; items contains visible posts and relationship labels that distinguish the target, direct replies and other context. limit applies to this page only. Does not guarantee a complete thread. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/tweet-repliesTweet Replies
Retrieve visible direct replies whose reply_to_id matches the requested post. data.target is the original post and items contains matching replies. Sorting applies only within this visible page; this is not a full or global latest-replies feed. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/followingFollowing
Retrieve one page of accounts followed by the target user. data.items contains user profiles. target_user_id, target_username and relation identify the list. requested_count is a hint; returned_count is the actual page size. Pass next_cursor as cursor to continue with the same username. complete=false; a single call does not verify another page. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/followersFollowers
Retrieve one page of accounts following the target user. data.items contains user profiles, with target_user_id, target_username, requested_count, returned_count, next_cursor, scope, session_state and completeness flags. Use the next_cursor with the same username. The upstream page may contain more or fewer users than count. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-infoUser Info
Look up a public profile by username. data contains id, screen_name, name, description, location, created_at, followers_count, following_count, statuses_count, media_count, avatar/banner URLs, verification flags and observed pinned tweet IDs. Missing values are null. Counts are source counts, not collected records. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-by-idUser Info by ID
Look up a public profile by numeric user ID. Returns the same profile fields as User Info and verifies the returned ID matches the requested ID. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/profiles-by-restidsBatch Users by ID
Look up up to 10 comma-separated numeric user IDs. data.items contains input, status, data (profile) and error_type. Inputs are deduplicated and processed sequentially. A failure stops later work; unattempted items are skipped. complete=true means every input succeeded. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/profiles-by-usernamesBatch Users by Username
Look up up to 10 comma-separated usernames. data.items contains input, status, data (profile) and error_type. Duplicates are removed case-insensitively. Work is sequential and stops on an error; later items are skipped. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-timelineUser Timeline
Retrieve posts visible on a public profile. data.items contains post details; user is the profile, pinned is an observed pinned post, source_item_count is the number parsed before truncation, and returned_count is the number returned. limit truncates the visible page, without fetching another page. Results may contain pinned posts and are not guaranteed newest or complete. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-mediaUser Media
Filter posts with media from the visible public profile page. data.items contains matching posts and media metadata. source_post_count is observed posts before filtering. This is not the complete Media tab; an empty result does not prove the account never posted media. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-pinnedPinned Tweets
Retrieve posts explicitly marked as pinned on the public profile. data.items contains post details with author, text, time, engagement counts and media when available. Unobserved pinned data produces an error rather than a fabricated no-pinned-post result. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/user-affiliationUser Affiliation
Retrieve the organization label displayed on this profile. data contains id, screen_name and affiliates. The label can contain organization name, badge URL and destination URL. This is not an organization member or affiliated-account list. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/community-infoCommunity Info
Retrieve community details including id, name, description, created_at, member_count, join_policy, topic, question, banner URL/dimensions, creator summary, rules and moderator_count when supplied. Counts do not imply that a full member list is available. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
- GET
/v1/community-members-previewCommunity Member Preview
Retrieve the member-avatar preview visible on a community page. data.items contains limited profile summaries (id, screen_name, name, avatar URL and verification flags). community_id and total_member_count describe the source. Usually only a few users are visible; this is not the full member list. Response envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.
Frequently asked questions about Twitter Profiles and Tweets API
Do I need an X account or Cookie?
No. Customers use a JoJ API key. Provider-managed sessions are used where necessary; never send X passwords or Cookies in requests.
Does this API return complete history or every follower?
No. Results are limited to the available upstream page or visible page data. Use cursors only on endpoints that support pagination. Community members are avatar previews, not a complete member list.
How do pagination and batch lookups work?
Pass next_cursor back as cursor for supported endpoints and keep the same query conditions. Batch lookups accept up to 10 IDs or usernames. One marketplace request may cause several upstream fetches.
Why might an endpoint fail?
Invalid inputs, upstream limits, session expiry, or inaccessible source data can cause errors. Errors are returned explicitly and are not replaced with fabricated empty results.