A facility for retrieving content. The facility invokes an API, as part of the invocation passing to the API: (1) information identifying one or more units of content to return; and (2) an indication that an entity on behalf of which the invocation is performed attests that the entity is compliant with a license that applies to the identified units of content. The facility receives a response to the API invocation that contains the identified units of content.