Twitter FEED API - Source Code
[This API is no longer available. It has been split into multiple APIs, including the Twitter Ads API, Twitter Search Tweets API, and Twitter Direct Message API.
This profile is maintained for historical, research, and reference purposes only.]
The Twitter micro-blogging service includes two RESTful APIs. The Twitter REST API methods allow developers to access core Twitter data. This includes update timelines, status data, and user information. The Search API methods give developers methods to interact with Twitter Search and trends data. The API presently supports the following data formats: XML, JSON, and the RSS and Atom syndication formats, with some methods only accepting a subset of these formats.

- Summary
- SDKs (73)
- Articles (282)
- How To(11)
- Source Code(25)
- Libraries(38)
- Developers (822)
- Followers (2349)
- Changelog (1)
Sample Source Code (25)
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
Title | Description | |
---|---|---|
![]() | Twitter API Python-Snippers Source Code | This Python source code provides snippets of code to set the API authentication, fetch data, add rows to account table, create database, create table in database, iterate over handles and hit the API with each iteration. |
![]() | Twitter API Follow Button JavaScript Source Code | This JavaScript source code for Twitter API provides code for Follow Button functions, such as loading the Follow Button asynchronously, enabling the user's followers count with the Follow Button, customizing the Follow Button size, setting language preference, specifying width and alignment of Follow Button, and deactivating the user's screen name showing, |
![]() | Twitter API Tweet Button JavaScript Source Code | This JavaScript sample code for Twitter API provides code for different Tweet Button functions, such as creating a default tweet button, using query to string to set URL via properties, configuring using data attributes, and sharing a short URL. |
![]() | Twitter API Cookbook Python Source Code | This Python source code for Twitter API is based on "Mining the Social Web (Second Edition) and provides sample code for accessing Twitter's API for development and oAuth access for production purposes, discovering trending topics, searching for tweets, constructing convenient function calls, saving and restoring JSON data with flat-text files, using MongoDB, sampling the Twitter firehose with the Streaming API, collecting time-series data, extracting tweet entities, finding the most popular tweet and tweets in a collection of tweets, tabulating frequency analysis, finding users who have retweeted a status, extracting a retweet attribution, making robust Twitter requests, resolving user profile information, extracting tweet entities from arbitrary text, getting friends and followers for a user, analyzing user's friends and followers, harvesting a user's tweet, crawling a friendship graph, analyzing tweet content, summarizing link targets, and analyzing a user's favorite tweet. |
![]() | Twitter API Mining Twitter: Exploring Trending Topics, Discovering What People are Talking About, and More Source Code | This Python source code for Twitter API is based on "Mining the Social Web (2nd Edition)", and supplies code samples for authorizing application access, retrieving trends, displaying API responses as pretty-printed JSON, computing intersections of two set trends, collecting search results, extracting text, screen names, and hashtags from tweets, creating frequency distributions from words in tweets, using prettytable to display tuples in tabular format, calculation of lexical diversity, finding popular retweets, looking up authors of retweets, plotting frequencies of words, generating histograms of words, screen names, and hashtags, and generating histograms of retweets counts. |
![]() | Nest and Twitter Server Side Integration | Nest provides sample code showing a server side integration between Nest and Twitter. With the code, developers can pair a Twitter account to their own Nest account. To start developers will need a Twitter API key and access tokens for both Twitter and Nest accounts. Developers can also learn how to handle authorization and erros, implement listeners to respond to changes in Nest data, use Scala to interact with Nest, read and write thermostat, away, ETA, smoke alarm batter, smoke and CO states and update their Twitter status based on data from the Nest service. |
![]() | Python Yahoo! Weather app for Twitter Deprecated | Asks for a 5-digit zipcode entry, then retrieves and sends weather info from weather.yahooapis.com to a Twitter account. |
![]() | Twitter Friends Followers Widget | A jQuery plugin that you can embed anywhere to display pictures of your Twitter followers or friends (whom you follow) and their latest tweets. |
![]() | Twitter Integration in phpLD | Allows you to integrate twitter with phpLD, and show all of your latest tweets to your users. |
![]() | jQuery Twitter API | jQuery Twitter API aims to give Web developers the ability to request Twitter public informations from a simple JavaScript function call. |
![]() | TwitterLand Ruby Gem Deprecated | All the best Twitter-related APIs in one gem |
![]() | Cache Your Twitter Tweets in PHP Deprecated | TwitterCacher: Optimize your Twitter apps with this smart Twitter caching library in PHP. |
![]() | Twitter Scala Experiments Deprecated | Experiments with such things as Scala, the scala.swing package, and the Twitter API. At GitHub. |
![]() | Building an Application with the Twitter API | In this article, we look at a short Python script that tweets when the Dow Jones Industrial Average, or any stock or index you like, makes a big jump. |
![]() | SWX Twitter API Deprecated | SWX is the easiest way to build Flash applications that use Twitter. SWX stands for SWF Data Exchange Format. It’s a new, native, data format for Flash that uses simple SWF files to store and exchange data. |
![]() | .NET Wrapper for Twitter API Deprecated | Twitteroo: a .NET wrapper around the twitter API |
![]() | HTML Wrapper for Twitter API | Twitter2HTML: an html wrapper around the twitter api |
![]() | Twittery - Ruby Wrapper to Twitter | Twittery is a lightweight Ruby class that interfaces with Twitter's API to make interacting with Twitter simple as possible. |
![]() | Twyt - Python Interface to Twitter | Twyt is a BSD licensed Twitter API interface for Python. It provides an interface to the remote Twitter API functions and classes to allow easy manipulation of the returned sets of data, such as status messages and user information. |
![]() | Scripting Twitter with Perl | Twitter direct message with Perl and LWP (libwww-perl), for a much more convenient solution. I designed it to be used like a sort of universal paging service. |
![]() | TwitterShell | Twitter::Shell gives you access to Twitter from your shell! |
![]() | arc90 PHP Twitter API Client Deprecated | A PHP wrapper around the Twitter API. |
![]() | Twitter4J Deprecated | Java wrapper for the Twitter API. |
![]() | Twitter4R - Ruby Twitter Binding Deprecated | Twitter4R v0.2.0 now provides 100% Twitter REST API coverage for Ruby. This is the open source project providing Ruby bindings for the Twitter REST API. Most appropriate for pure Ruby and Ruby on Rails projects. |
![]() | Ruby Twitter Gem Deprecated | Command line twits and an API wrapper in Ruby. |