remove code blocks from api calls