Skip to main content
QUICK REVIEW

[Paper Review] When is it Biased? Assessing the Representativeness of Twitter's Streaming API

Fred Morstatter, Jürgen Pfeffer|arXiv (Cornell University)|Jan 30, 2014
Mobile Crowdsensing and CrowdsourcingComputer Science14 references45 citations
TL;DR

This paper proposes a method to detect bias in Twitter's Streaming API without relying on expensive Firehose data by using the publicly available Sample API as a representative proxy. It identifies time periods where Streaming API trends significantly deviate from true Twitter activity, showing high consistency across geographically and temporally distinct queries, thus enabling researchers to detect bias using only open data sources.

ABSTRACT

Twitter has captured the interest of the scientific community not only for its massive user base and content, but also for its openness in sharing its data. Twitter shares a free 1% sample of its tweets through the "Streaming API", a service that returns a sample of tweets according to a set of parameters set by the researcher. Recently, research has pointed to evidence of bias in the data returned through the Streaming API, raising concern in the integrity of this data service for use in research scenarios. While these results are important, the methodologies proposed in previous work rely on the restrictive and expensive Firehose to find the bias in the Streaming API data. In this work we tackle the problem of finding sample bias without the need for "gold standard" Firehose data. Namely, we focus on finding time periods in the Streaming API data where the trend of a hashtag is significantly different from its trend in the true activity on Twitter. We propose a solution that focuses on using an open data source to find bias in the Streaming API. Finally, we assess the utility of the data source in sparse data situations and for users issuing the same query from different regions.

Motivation & Objective

  • To address the lack of affordable methods for detecting bias in Twitter’s Streaming API, which is widely used but potentially unrepresentative.
  • To develop a method that detects time periods of significant bias in Streaming API data without requiring access to the full Firehose.
  • To evaluate the representativeness of the Sample API as a reference for detecting bias in Streaming API results.
  • To assess whether identical queries yield consistent results across different geographic locations and time intervals.
  • To provide researchers with a practical, open-source alternative to Firehose-based validation for bias detection in social media data.

Proposed method

  • Leverages the Twitter Sample API—a publicly accessible, 1% random sample of all tweets—as a reference dataset to compare against Streaming API results.
  • Compares tweet ID sets from identical queries issued simultaneously from the USA and Austria to assess geographic consistency.
  • Compares overlapping 10-minute intervals of consecutive Streaming API queries to evaluate temporal stability across time.
  • Uses the Jaccard similarity coefficient to quantify overlap between tweet ID sets from different queries, measuring representativeness.
  • Applies statistical analysis to Jaccard scores across multiple queries to detect significant deviations indicating bias.
  • Validates the method on high-traffic queries, identifying time windows where Streaming API trends diverge meaningfully from the Sample API baseline.

Experimental results

Research questions

  • RQ1Can the Sample API serve as a reliable proxy for detecting bias in the Streaming API without Firehose access?
  • RQ2Are Streaming API results consistent across different geographic regions for the same query?
  • RQ3Do identical queries issued at different times yield similar results in the Streaming API?
  • RQ4What time periods exhibit significant bias in Streaming API data relative to true Twitter activity?
  • RQ5How effective is the proposed method in sparse data scenarios where query volume is low?

Key findings

  • The Sample API demonstrates high representativeness, with median Jaccard similarity of 0.976 across geographic comparisons between the USA and Austria.
  • Temporal comparisons show near-identical results: USA queries had a median Jaccard score of 0.996 and mean of 0.995 with a standard deviation of only 0.003.
  • Austria-based queries showed a higher standard deviation (0.186) but still maintained a high mean Jaccard score (0.942), indicating strong consistency.
  • The method successfully identifies time periods where Streaming API trends deviate significantly from the Sample API baseline, indicating potential bias.
  • The approach is most effective for high-volume queries; performance degrades in sparse data scenarios due to limited signal in the Sample API.
  • The study confirms that Streaming API results are highly consistent across regions and time windows, supporting the validity of the reference method.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.