The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to

Skip to end of metadata
Go to start of metadata

Ushahidi Java SDK

A Java wrapper for the Ushahidi API. It's simply a Java library that wraps the raw HTTP calls to the Ushahidi APIs. The goal of this SDK is to ease Ushahidi API integration into your applications and to support all the Ushahidi public and admin APIs that are there. For more information on the Ushahidi API, see; The project is hosted on


The Ushahidi Java SDK is built using Apache Ant

Run the following command to build a JAR file of the SDK with all the dependencies.
ant dist

And to compile all the source codes, run
ant compile


Create UshahidiApi object

The UshahidiApi class allows you to access the various task implemented by this SDK through the object you will create.

Fetch all categories

Pull all visible categories that have been submitted to the Ushahidi platform

Attach news article

Add a news article to an existing report

Add comment

Add a comment to an existing report. You need to know the report ID to be able to add the comment

Submit Report

Submit a new report to the Ushahidi deployment


You can download the latest release from the projects github's download page . It has a single Jar file that you can include in your project.


You can find the Javadoc which contains all the relevant documentation on the classes and the packages in the doc directory found in the root folder of the project.

To generate recent version of the Javadoc, run
ant javadoc

Clean up

To clean up the generated distribution file and Javadoc in the root folder, run
ant clean

How to help

You can help on this project by using the SDK and giving feedback on how to improvement it. Also, you can browse through the issue tracker to find out which issue you can contribute a fix.