$0.375/1000 Twitter / X API Flat & Simple avatar

$0.375/1000 Twitter / X API Flat & Simple

Pricing

from $0.38 / 1,000 results

Go to Apify Store
$0.375/1000 Twitter / X API Flat & Simple

$0.375/1000 Twitter / X API Flat & Simple

A robust, pay-per-event Apify actor, providing simplified, flattened, noise-free tweet and user objects. Designed for easy integration, strict field filtering, and reliable automation.

Pricing

from $0.38 / 1,000 results

Rating

5.0

(4)

Developer

Practical Tools

Practical Tools

Maintained by Community

Actor stats

8

Bookmarked

201

Total users

8

Monthly active users

15 days ago

Last modified

Share

Cheap & Simple Twitter / X.com API – Apify Actor

A robust, dirt-cheap, affordable, pay-per-use Apify actor that wraps the raw Twitter API endpoints, providing simplified, noise-free tweet and user objects. Designed for easy integration, strict field filtering, and reliable automation.


πŸš€ Features

  • Pay-per-result monetization: Only pay for successful, non-empty results. As low as $0.000375 per result.
  • Comprehensive endpoint support (see below)
  • Unified Twitter API access via Apify
  • Strict field filtering for tweet and user objects (no noise)
  • Production-ready error handling
  • Pagination support via cursor parameter for all list endpoints
  • Advanced search supports queryType (Latest/Top)

Getting Started Guide

I've created a detailed Getting Started Guide, available in Markdown or a PDF file

Complex Advanced Search Query Builder

This little tool will help you create complex API search queries: πŸ‘‰ Twitter search builder

πŸ’Έ Pricing (Tiered Discounts)

This actor uses Apify's tiered pricing model. The more you use Apify, the less you pay per result.

Your Apify PlanPrice per ResultTotal for 1,000 ItemsSavings
Free$0.02$20.00-
Starter$0.000575$0.57597.1% Off
Scale$0.000475$0.47597.6% Off
Business$0.000375$0.37598.1% Off

[!TIP] Pro Tip: Upgrading to even the smallest Apify paid plan (Starter) reduces your costs by over 97% instantly.

  • Trial Quota: Users on the Apify Free plan are strictly limited to a trial quota of 20 results per run. Upgrade to any paid plan for unlimited results.
  • Platform usage is included β€” you are charged per result only, with no separate compute costs on top.

πŸ› οΈ How to Use

1. Via Apify UI

  • Go to the actor page and click "Run".
  • Fill in the input fields:
    • endpoint: (string) The endpoint to call (see list below)
    • parameters: (object) Parameters for the endpoint (see below)

2. Via Apify API

Send a POST request to the actor with a JSON body:

{
"endpoint": "user/info",
"parameters": { "userName": "NASA" }
}

πŸ“₯ Input Schema

{
"endpoint": "string (required)",
"parameters": "object (required)"
}

πŸ“€ Output Schema

  • User object:
    {
    "type": "user",
    "userName": "string",
    "url": "string",
    "id": "string",
    "name": "string",
    "isBlueVerified": true,
    "profilePicture": "string",
    "coverPicture": "string",
    "description": "string",
    "location": "string",
    "followers": 123,
    "following": 123
    }
  • Tweet object:
    {
    "type": "tweet",
    "id": "string",
    "url": "string",
    "text": "string",
    "source": "string",
    "retweetCount": 123,
    "replyCount": 123,
    "likeCount": 123,
    "quoteCount": 123,
    "viewCount": 123,
    "createdAt": "string",
    "lang": "string",
    "bookmarkCount": 123,
    "isReply": true,
    "media": "string",
    "video": {
    "duration_millis": 123,
    "variants": [
    {
    "bitrate": 123,
    "content_type": "string",
    "url": "string"
    }
    ]
    },
    "author": { ...user object... }
    }
  • Array: Most endpoints return an array of user or tweet objects.

πŸ“š Supported Endpoints & Usage

EndpointDescriptionParameters (required)Example Input
user/infoGet user info by usernameuserName (string){ "endpoint": "user/info", "parameters": { "userName": "NASA" } }
user/last_tweetsGet latest tweets by useruserName (string), cursor (optional){ "endpoint": "user/last_tweets", "parameters": { "userName": "NASA", "cursor": "NEXT_CURSOR" } }
user/followersGet followers of a useruserName (string), cursor (optional){ "endpoint": "user/followers", "parameters": { "userName": "NASA", "cursor": "NEXT_CURSOR" } }
user/followingsGet users followed by a useruserName (string), cursor (optional){ "endpoint": "user/followings", "parameters": { "userName": "NASA", "cursor": "NEXT_CURSOR" } }
user/mentionsGet tweets mentioning a useruserName (string), cursor (optional){ "endpoint": "user/mentions", "parameters": { "userName": "NASA", "cursor": "NEXT_CURSOR" } }
tweet/by_idsGet tweets by IDstweet_ids (string, comma-separated){ "endpoint": "tweet/by_ids", "parameters": { "tweet_ids": "1920130001699062027" } }
tweet/repliesGet replies to a tweettweet_id (string), cursor (optional){ "endpoint": "tweet/replies", "parameters": { "tweet_id": "1920130001699062027", "cursor": "NEXT_CURSOR" } }
tweet/quotesGet quotes of a tweettweet_id (string), cursor (optional){ "endpoint": "tweet/quotes", "parameters": { "tweet_id": "1920130001699062027", "cursor": "NEXT_CURSOR" } }
tweet/retweetersGet users who retweeted a tweettweetId (string), cursor (optional){ "endpoint": "tweet/retweeters", "parameters": { "tweetId": "1920130001699062027", "cursor": "NEXT_CURSOR" } }
tweet/advanced_searchAdvanced tweet searchquery (string, required), queryType (enum: Latest, Top, required, default: Latest), cursor (optional){ "endpoint": "tweet/advanced_search", "parameters": { "query": "from:NASA", "queryType": "Latest", "cursor": "NEXT_CURSOR" } }
list/tweetsGet tweets from a listlistId (string), cursor (optional){ "endpoint": "list/tweets", "parameters": { "listId": "YOUR_LIST_ID", "cursor": "NEXT_CURSOR" } }

πŸ§‘β€πŸ’» Example Usage

Input JSON (Apify UI or API):

{
"endpoint": "tweet/advanced_search",
"parameters": { "query": "from:NASA", "queryType": "Latest", "cursor": "NEXT_CURSOR" }
}

Sample Output:

{
"type": "user",
"userName": "NASA",
"url": "https://twitter.com/NASA",
"id": "123456789",
"name": "Muzli",
"isBlueVerified": true,
"profilePicture": "https://...",
"coverPicture": "https://...",
"description": "Curated design inspiration",
"location": "Internet",
"followers": 100000,
"following": 1
}

⚠️ Error Handling

If a call cannot be completed, the run fails with a plain-language status message explaining why β€” for example a rejected API key, a user or tweet that does not exist, or an upstream rate limit. No error object is written to the dataset, so anything you read from the dataset is always a valid result.

  • Transient failures (rate limits, 5xx responses, network timeouts) are retried automatically up to 3 times with exponential backoff.
  • Permanent failures (bad API key, missing user/tweet) fail fast without burning retries.
  • Partial results are kept. If pagination fails midway, everything fetched up to that point stays in the dataset and the status message reports how many items were returned.

Check the run's status message, or the Log tab, to see the reason for a failure.


πŸ™‹ Support

  • For questions or issues, use the Apify actor page "Issues" tab or contact the maintainer.

Actor ID: gdN28kzr6QsU4nVh8
Pricing: Pay per result β€” $0.02 on the Apify Free plan, down to $0.000375 on Business. See the Pricing section above.