1. A method performed by one or more processors, the method comprising: receiving a request for a client library for an API, the request including an API identifier, a target programming language, and a target operating system platform; retrieving a machine-readable description of the API based on the identifier for the API; building a model of the API based on the machine-readable description; generating an API library source code in the target programming language; receiving a sample template for a generic sample application; expanding the sample template by incorporating a data structure in the target programming language to generate one or more code samples using the API library source code; and storing in a unique Web location the generated code samples for later download.