extracted api