List All Products

Returns a paged list of products that are viewable by the authenticated account.

Request

Parameters
Method GET
Base URL https://api.xively.com
API Endpoint /v2/products
Headers
X-ApiKey API_KEY_HERE
Body
JSON
XML
CSV
  • GET/v2/products

    This request does not require body data
    
  • XML format not available for this call
    
  • CSV format not available for this call
    

Response

Parameters
Status Code 200 OK
Headers
No Headers
Body
JSON
XML
CSV
  •  {  
        "totalResults": 6,  
        "products": [  
            {  
                "description": "",  
                "name": "AppImpTest",  
                "product_id": "_cDD-xSpd4Sga4qkfFn8",  
                "secret": "312f80a68b459f1c8ea02cde727de421ae58b828",  
                "state": "develop",  
                "devices_count": 1,  
                "activated_devices_count": 1,  
                "feed_defaults": {  
                    "title": "AppImpTest",  
                    "description": "testing devices",  
                    "private": "false"  
                },  
                "user": "USERNAME"  
            },  
            {  
                "description": "this product is for testing",  
                "name": "AppImpTestProduct",  
                "product_id": "sUnhxcXc2umoOeXTRM7R",  
                "secret": "ee2ab38f9b85b6b2c1b150b1d416b3fa2683dc72",  
                "state": "deploy",  
                "devices_count": 4,  
                "activated_devices_count": 1,  
                "feed_defaults": {  
                    "title": "AppImpTest",  
                    "description": "testing devices",  
                    "tags": [  
                        "device:type=AppImpTest"  
                    ],  
                    "private": "false",  
                    "datastreams": [  
                        {  
                            "id": "cycles"  
                        },  
                        {  
                            "id": "lastRun"  
                        },  
                        {  
                            "id": "onHand"  
                        }  
                    ]  
                },  
                "user": "USERNAME"  
            },  
            {  
                "description": "this is a device on xively",  
                "name": "HowCosmWorks",  
                "product_id": "d4Oz0Bqn8qBvEH5ZwUUj",  
                "secret": "6f904d4fa3d0e99aa129ca68b5662b2344c804a7",  
                "state": "deploy",  
                "devices_count": 1,  
                "activated_devices_count": 0,  
                "feed_defaults": {  
                    "title": "HowCosmWorks",  
                    "tags": [  
                        "device:type=HowCosmWorks"  
                    ],  
                    "private": "true",  
                    "datastreams": [  
                        {  
                            "id": "channel1"  
                        },  
                        {  
                            "id": "demo"  
                        }  
                    ]  
                },  
                "user": "USERNAME"  
            },  
            {  
                "description": "this is a device on cosm",  
                "name": "HowCosmWorks",  
                "product_id": "VcAKMzq7JKIGw4K_IrAB",  
                "secret": "3e4caa330d52faf5df81ee36d9db673a137522af",  
                "state": "develop",  
                "devices_count": 1,  
                "activated_devices_count": 1,  
                "feed_defaults": {  
                    "title": "HowCosmWorks",  
                    "tags": [  
                        "device:type=HowCosmWorks"  
                    ],  
                    "private": "true",  
                    "datastreams": [  
                        {  
                            "id": "channel1"  
                        },  
                        {  
                            "id": "demo"  
                        }  
                    ]  
                },  
                "user": "USERNAME"  
            },  
            {  
                "description": "weather node using jeenode. sensors: temp, humidity, wind, pressure, light.",  
                "name": "Weather Node",  
                "product_id": "0SWwQ2dVYvbD9V-chnPO",  
                "secret": "7463601bb582f1702e2845269a5bb72e194f8979",  
                "state": "develop",  
                "devices_count": 1,  
                "activated_devices_count": 1,  
                "feed_defaults": {  
                    "title": "Weather Node",  
                    "private": "true"  
                },  
                "user": "USERNAME"  
            },  
            {  
                "description": "this is a device on cosm",  
                "name": "API Example",  
                "product_id": "h5wT2IlOMrd09r_qd1jm",  
                "secret": "836842cd3b57dce99afef7805c078a0821a88725",  
                "state": "deploy",  
                "devices_count": 1,  
                "activated_devices_count": 0,  
                "feed_defaults": {  
                    "title": "Demo Unit",  
                    "tags": [  
                        "device:type=API Example"  
                    ],  
                    "private": "true",  
                    "datastreams": [  
                        {  
                            "id": "channel1"  
                        },  
                        {  
                            "id": "demo"  
                        }  
                    ]  
                },  
                "user": "USERNAME"  
            }  
        ]  
    }  
    
  • XML format not available for this call
    
  • CSV format not available for this call