Introduction: The 1% Bottleneck
Social media researchers face a significant technical hurdle: the "Twitter API bottleneck." The standard Sample API provides only a 1% random slice of global activity. For languages like French, which accounts for approximately 1.8% of global tweets, this results in a data stream too sparse to track specific news events effectively. While the Filter API allows tracking specific keywords, it often misses informal conversations, leading to representativity bias. This research proposes two strategies to capture high-volume, representative datasets that bridge the gap between formal news and social media discourse.
Methodology: Bridging the News-Twitter Gap
The first approach, Vocabulary-Constrained Collection, aims to bridge the gap between formal news language and the informal nature of Twitter.
As illustrated in the workflow above, the system extracts keywords and named entities from Agence France Presse (AFP) news dispatches. To account for "Twitter-speak," these keywords are expanded using a Continuous Bag of Words (CBOW) model trained on a French Twitter corpus. This allows the system to identify synonyms and abbreviations (e.g., "fh" for François Hollande). To ensure data quality, the system uses time-series analysis for query validation; if a keyword does not produce a "peak" in volume corresponding to the news event, it is discarded as noise.
The "Smart Filter" for Volume
The second approach, Random Tweets Collection, bypasses the 1% limit by using the Filter API with "neutral" frequent words. To maximize efficiency and minimize overlap across multiple API tokens, the researchers cluster the 200 most frequent French words based on co-occurrence. Spreading these clusters across different connections allows for a much larger unique volume of tweets than the standard Sample API provides.
Results: Volume and Statistical Fidelity
The optimized clustering method yielded a volume 50 to 75 times higher than the standard 1% Sample API. Crucially, the researchers used Kullback-Leibler (KL) divergence to prove that their collected datasets maintained a word distribution nearly identical to the true random sample.
As shown in the figure above, the KL-divergence remains low and stable over time, indicating that the "Smart Filter" approach successfully captures a representative slice of the Twitter stream despite the increased volume. The stability of these metrics suggests the method is robust against daily fluctuations in platform activity.
Conclusion
This research demonstrates that by combining semantic expansion with strategic word clustering, researchers can effectively reconstruct a significant portion of the Twitter stream. Future work will focus on developing manual labeling interfaces for better precision measurement and expanding the methodology to multimodal data including images and videos.
Summary updated