Here are some basic samples demonstrating the Spore API. These are written in Flash using ActionsScript 3.0. Click the "download source code" link to get the .fla projects for each sample.
This is a very simple sample that shows how to get some stats about Spore.com
This sample displays assets from a sporecast.
This sample gets all the information about an asset and shows how you can get the small PNG for an asset, if you know it's id.
This sample gets buddies for a user. Click on a buddy to get their buddies.
This sample searches assets belonging special feeds like "Featured" and "Most Popular"
Assets For User (RSS)
This sample gets all the assets for a user.Use the arrows to scroll through the assets.
It also shows how to get the XML and PNGS for an asset.
This sample gets achievements for a user. It then looks up the achievement icon, name and text.
Achievement Icon: Get the official Spore achievement icon for a given achievement id
Achievement Text: Look up the official Spore achievement name and text in an XML map file