small sample api