Google Code Search API

deprecated
Google Code Search
From their site: The Google Code Search data API allows client applications to search public source code for function definitions and sample code.