GitHub - joshellington/Cashmachine: Retrieves popular JSON/XML-based APIs and caches them. Requires memcached.

1 min read Original article ↗

Retrieves popular JSON/XML-based APIs and caches them. Requires memcached.

Pass type (xml, json) and/or limit as query parameters. Defaults are type=json and limit=API_DEFAULT.

Twitter

User timelines

http://localhost:9393/twitter/:USERNAME

Search API

http://localhost:9393/twitter/search/:QUERY

Search API - Hashtag

http://localhost:9393/twitter/search/hashtag/:QUERY

Last.fm

Artist events

http://localhost:9393/lastfm/artist/:ARTIST/events/

Make sure to pass the artist name with spaces or %20

Facebook

Photo Album

http://localhost:9393/facebook/photos/:ALBUM_ID

Youtube

Playlist

http://localhost:9393/youtube/playlist/:PLAYLIST_ID

YQL

http://localhost:9393/yql/query/:YOUR_QUERY

TODO

  • Add error support
  • Add expiration time parameter
  • Add Flickr class
  • Add authentication