A thought about building an API