Twitter/X Setup (Auto Sources)

What are Auto Sources?

Auto Sources enables you to collect data from platforms using Datastreamer's intelligent provider selection system. Instead of choosing a specific data provider, you define your data requirements and Auto automatically selects the best provide(s) to fulfill your request.

For more details on Auto Source Selection: Read More


Troubleshooting

Job fails or returns no data

  • Verify your requirements are not too restrictive (may exclude all providers)
  • Check that the date range is valid and contains available data
  • Review Job logs for provider-specific errors

Unexpectedly high costs

  • Review the number of documents collected in your Job
  • Verify filters are correctly excluding unwanted data
  • Consider using Committed Usage Discounts for predictable, high-volume jobs

Provider switch detected in logs

  • This is normal behavior and indicates Auto mode's resilience at work
  • Your data collection continues transparently
  • No action is required

Twitter Advanced Search Logic

Auto sources adapt your query to the providers' query logic and language. As a result, the basis of Twitter/X's Advanced Search formatting is used.

Here is a quick reference on creating advanced search queries. For greater details, you can view X's advanced search on their platform at https://x.com/search-advanced

⚠️

Note: Dates are not to be included in the query.

As the Job system handles the scheduling, range, and selection of the right providers for historical searches, including dates inside the query may cause Job completion errors or selection to be limited to few providers.

ItemX ExampleExplanation
Phrases"dog house"Phrases in which the exact format of the word is expected.
NOT-mouseNegation, not including this word
Fromfrom:catContent from these handles (note the lack of @ symbol)
Toto:dogContent to these handles (note the lack of @ symbol)
Hashtags(#dogsrule)Hashtags are nested in parantheses, and unlike some profile usages, always require the # symbol.
Languagelang:enFilter content to be from a specific language using the ISO 2-letter standard. (Note, only a few languages are supported by X, and this list has been known to change.)
Reply Filteringfilter:repliesFilter to only replies (default is replies and posts)
Min Repliesmin_replies:100Filter to only showing results with a minimum of 100 replies
Min Likesmin_faves:100Filter to only showing results with a minimum of 100 likes
Min Retweetsmin_retweets:100Filter to only showing results with a minimum of 100 retweets (reposts)
Link post togglefilter:linksOnly show posts with links (default is both with and without links)

X/Twitter uses alternate Boolean-like logic as part of the core search logic. Examples to help guide are below:

Understanding X's FormatX Query StructuringBoolean Equivalent
Using negation(cat OR dog) - mouse(cat OR dog) NOT mouse
AND vs OR treatment(cat OR dog) ferret(cat OR dog) AND ferret
Spaces are treated as ANDcat dogcat AND dog
More complex query(cat OR dog) mouse from:parrot(cat OR dog) AND mouse AND from:parrot