Use JSON and as consistent an interface as you can come up with.
Think through how you'd rebuild your website using only your APIs.
http://apiwiki.twitter.com/
http://www.flickr.com/services/api/