Cannot figure out how to use api