completed API example