X API | Twitter API comments user posts
Pricing
from $0.50 / 1,000 dataset items
X API | Twitter API comments user posts
SocialDataX read-only X API and Twitter API for public post search, details, Twitter comments, comment replies, user profiles, and user posts. Results export to Apify Dataset, CSV, Excel, JSON, or API workflows.
Pricing
from $0.50 / 1,000 dataset items
Rating
0.0
(0)
Developer
SocialDataX
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
5 days ago
Last modified
Categories
Share
SocialDataX read-only X API and Twitter API for public post search, details, Twitter comments, comment replies, user profiles, user posts, and replies posted by a user.
Apify users do not need to configure a SocialDataX API Key. The Actor owner configures SOCIALDATAX_API_KEY as an Apify secret.
User-post rows expose is_pinned (true / false) in Overview and User posts. An omitted field means the API did not provide it. The Actor preserves the returned order and pagination.
Support
If a run fails, you need higher limits, or you want to discuss a bulk data workflow, contact SocialDataX support:
Operations
search_users: X / Twitter user search usingkeyword, with optionalpage_token,max_items, andauto_paginate.search_suggestions: X / Twitter keyword suggestions usingkeyword; returns up tomax_itemstextrows in one request without pagination.search_posts: Search Posts usingkeyword.get_post_detail: Get Post Detail usingpost_idorpost_url.get_post_comments: Get Post Comments usingpost_idorpost_url.get_post_comment_replies: Get Post Comment Replies usingpost_id/comment_id.get_user_info: Get User Info usinguser_idorusernameorprofile_url.list_user_posts: List User Posts usinguser_idorusernameorprofile_url.list_user_replies: List replies posted by a user, including self-replies. Provide exactly one ofuser_id,username, orprofile_url. To read comments under a specific post, useget_post_comments.
Pagination
List operations use page_token, max_items, and auto_paginate. Each requested page counts as one SocialDataX API request. Results are written to the default Apify Dataset and can be exported as JSON, CSV, Excel / XLSX, or JSONL.
If max_items or the Dataset budget cuts a page short, OUTPUT.warnings and the run log report the partial export. page_next_page_token advances to the next whole page and will skip unexported items on the current page. To retrieve those items, repeat the current page using its query_page_token and allow enough output budget for the full page. For list_user_replies, deduplicate saved replies by post_id.
For list_user_replies, keep the same user and identity field when continuing with page_next_page_token. Do not reuse tokens from list_user_posts or other operations. An empty page with a next-page token can be continued; an empty token ends pagination.
User replies
{"operation": "list_user_replies","username": "elonmusk","max_items": 20,"auto_paginate": false}
Each reply is one Dataset item under the existing billing rules. post_id identifies the reply itself; reply_to_post_id identifies its parent post. Use the User replies Dataset view to see both IDs and the author.
Intermediate empty pages do not occupy Dataset rows during automatic pagination. If a run stops on an empty page with a continuation token, it writes an empty_page=true summary row so you can continue; that row follows the existing Dataset item billing rules. A terminal empty page writes no row.
Example input
{"operation": "search_posts","keyword": "camping","sort_type": "hot","page_token": "","max_items": 50,"auto_paginate": true}
Billing
Ongoing use requires an Apify paid plan. Free-plan users get a limited SocialDataX API request trial.
Recommended Apify Pay per event setup:
apify-default-dataset-item:$0.0005 / Dataset itemapify-actor-start: keep Apify default$0.00005Pay per event + usage: off