API

New Envato Marketplace API

Wednesday, April 22nd, 2009

The Envato Marketplace, which includes sites like FlashDen and ThemeForest, has just come out with their own API. This API is an  interface which will allow developers to build applications and software that can easily utilize Envato user and item data. This allows me to get information in either XML 0r JSON.  So like my integration with WordPress and Flash, I could make a flash application that displays my sellable items from Envato Marketplace onto my Blog.  Its pretty cool.  Here is an example:

With this link,  it shows the xml created from the API of the newest files I have uploaded to GraphicRiver.net up to 10 (I only have one up so its only showing that one).

Here is the Envato Marketplace API Documentation.

Here is an API example. After clicking the link, look toward the bottom of the side navigation, I have some of my sellable items from the marketplace listed using the API.

Here is the code I inserted into the sidebar.php file in my wordpress files. I added it right after the last ‘<?php endif; ?>’. Don’t forget for it to work you have to download the Envato Recent Files Plugin, upload that to your plugins folder, and activate it.

<h2>Latest Sellable Items</h2>
	<li><?php echo envato_recent_items('your_marketplace_username', 'envato_sitename', 1, true, $ref='your_marketplace_username'); ?></li>
	<li><?php echo envato_recent_items('scottrockers', 'graphicriver', 1, true, $ref='scottrockers'); ?></li>

Cya