api samaples