ProductLayer SDK for Android
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

ProductLayer SDK for Android

productlayer logo

The ultimate product information API, enabling a new breed of product-centric apps. This project contains the Android SDK. We also provide SDKs for iOS and Java.

See ProductLayer in action in our app.




compile 'com.productlayer.ply-android-sdk:0.5.1'
compile 'com.productlayer.ply-android-common:0.5.1'



Get your API key from

PLYRestClientConfig config = new PLYRestClientConfig();
config.apiKey = "YOUR_API_KEY";

Create the PLYAndroid client

PLYAndroid client = new PLYAndroid(config);

Make an API call

ProductService.searchProductsByBrand(client, "Apple", null, null,
    new PLYCompletion<Product[]>() {
        public void onSuccess(Product[] result) {
            // display results

        public void onError(QueryError error) {

This will run asynchronously, querying our API for all products by brand Apple.

To view the full functionality of our API please visit


The demo app showcases some of the components found in the common library:

  • ScannerActivity, a barcode scanner and lookup of a product on ProductLayer
  • GlobalTimelineFragment, a feed of the latest products and opinions
  • ProductFragment, everthing about a specific product: facts, opinions, images

The common library includes even more components to facilitate usage of the SDK: adapters, dialogs, views as well as full-blown UI fragments.