Programming with an API attempt