Get 'purchasable' from ElementAPI The elementApi docs state you can use custom elementTypes via plugins.  I am using craft commerce which states it creates the custom elementType 'purchasable'

I've tried:

return [
'endpoints' =&gt; [
    'category.json' =&gt; [
        'elementType' =&gt; 'purchasable',
        'criteria' =&gt; [
            // 'category' =&gt; 'products', // randomly trying stuff here!
            // 'section' =&gt; 'products',
            // 'type' =&gt; 'products',
        ],
        'transformer' =&gt; function(EntryModel $entry) {
            return [
                'title' =&gt; $entry-&gt;title,
                'url' =&gt; $entry-&gt;url,
            ];
        },
    ]
]]


I've tried many variations on the word purchasable, as we as random guesses like 'product', 'item' etc etc

I should mention I am able to JSON back with all categories, Entries etc etc

I am sure this is possible, as craft, craftcommerce and elementApi are all made by the same guys!

Any help would be amazing
Try

return [
'endpoints' =&gt; [
    'products.json' =&gt; [
        'elementType' =&gt; 'Commerce_Product',
        'criteria' =&gt; [
            // 'category' =&gt; 'products', // randomly trying stuff here!
            // 'section' =&gt; 'products',
            // 'type' =&gt; 'products',
        ],
        'transformer' =&gt; function(Commerce_ProductModel $product) {
            return [
                'title' =&gt; $product-&gt;title,
                'url' =&gt; $product-&gt;url,
            ];
        },
    ]
]]