examples using the api