API samples