Beginnings of an API?

Maybe this is something to start with.