extract c api