better api example