An external utility needs to retrieve products from Magento by SKU–either one at a time or in batches, ideally returning the product with all attribute values, photo URLs, categories, etc.
So far I haven't found a direct, simple reference for doing a "hello world" product query against one of the stock APIs–so even that would be useful. Or, given the need to retrieve a "full" product would I just be better served writing my own endpoint to retrieve and serve the required info?
Best Answer
None of Magento APIs provide access to "full" product. Using REST API would be easier so go for it if it does not matter. Your application needs to authenticate as an admin user (not customer), see example here.
Here are APIs that you need with examples (note that SKU should work as well as product ID in
:productId
place-holder below:GET http://magentohost/api/rest/products/:productId
GET http://magentohost/api/rest/products/:productId/images
GET http://magentohost/api/rest/products/:productId/categories
To retrieve in batches:
GET http://magentohost/api/rest/products
Of course you may implement custom API for single product, but it would be pretty complex and slow. If number of calls is not that critical, better to use existing APIs.