Code Examples

Code examples to help you integrate Gnip's social data into your app


PowerTrack / Firehose Stream

Connect to PowerTrack and Firehose streams.


PowerTrack Rule Management

Add, delete, and list rules on PowerTrack.


Search API (30 Day)

Send Search and Counts requests.


Search API (Full Archive)

Send Search and Counts requests.


Historical PowerTrack

Create and manage Historical PowerTrack jobs.


Engagement API

Request engagement metrics for specific Tweet IDs.


Audience API

Request audience demographics for specific UserID groupings.


Data Collector Stream

Connect to the streaming endpoint of Data Collector streams.


Data Collector Polling

Retrieve collected data with GET polling.


Data Collector Rule Management

Add, delete, and list rules on Data Collector feeds.