“api” source code snippets