An API for open educational resources