English | Japanese

Introduction

Twitter4J is a Java library for TwitterAPI.
With Twitter4J, you can easily integrate your Java application with the Twitter service.

Twitter4J is featuring:
100% Pure Java - works on any Java Platform version 1.4.2 or later
Works on Android platform
Zero dependency : No additinal jars required
Built-in OAuth support
Out-of-the-box gzip support for faster performance

System Requirements

OS: Windows or any flavor of Unix that supports Java.
JVM: Java 1.4.2 or later

How To Use

Just add twitter4j-2.0.10.jar to your application classpath.
If you are familiar with Java language, the JavaDoc should be the shortest way for you to get started.
twitter4j.Twitter class is the one you may want to look first.

Download

Download
twitter4j-2.0.10.zip

Source Code

The archive contains jar file along with source code.
You can also browse the project repository at:

Fisheye: http://yusuke.homeip.net/fisheye/browse/svn/twitter4j/trunk
Or you can check out the latest source code anonymously with a subversion client as follows:
svn checkout http://yusuke.homeip.net/svn/twitter4j/trunk twitter4j
git clone git://github.com/yusuke/twitter4j.git

Maven Integration

You can integrate Twitter4j easily by including following lines into your pom.xml.

   <dependencies>
<dependency>
<groupId>net.homeip.yusuke</groupId>
<artifactId>twitter4j</artifactId>
<version>[2.0,)</version>
</dependency>
...
</dependencies>

Mailing list

Any comment, bug report, feature request or patch is highly welcomed.
Feel free to post your comments to the mailing list.
Google Groups
Subscribe to Twitter4J
Email:
Visit this group

Known bugs and feature requests will be filed to the Jira site.
Go to Jira

License

Twitter4J is released under a BSD-style license.

Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the Yusuke Yamamoto nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at The JSON License.

Donation

Twitter4J is an opensourced software and free of charge.
You can use Twitter4J freely for any commercial and non-commercial projects.
If you feel Twitter4J makes your life easier, please do consider making a donation!

 - Okay, Twitter4J looks to be interesting
- Okay, Twitter4J is one of my favorite library
- Okay, Twitter4J is making me rich