---
title: Extract Emails
slug: extract-emails
docTags: 
createdAt: 2021-07-26T08:55:33.000Z
---

Extracts a list of unique emails from a given text



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/text/extractemails",
  "name": "Extract Emails API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "Ri5EPGtg5i8DV9PrWdKzA",
        "code": "{\n\t\"output\": [{\n\t\t\t\"email\": \"captain@marvel.com\"\n\t\t},\n\t\t{\n\t\t\t\"email\": \"black.widow@marvel.com\"\n\t\t}\n\t]\n}",
        "language": "200"
      },
      {
        "id": "1mSQTGO-bry-j09E9SsS4",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "Ri5EPGtg5i8DV9PrWdKzA"
  },
  "examples": {
    "languages": [
      {
        "id": "WRP1k8p3fFCUuLF8G5vVo",
        "code": "{\r\n\t\"input\": \"I would like to include captain@marvel.com and black.widow@marvel.com in our conversations\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "WRP1k8p3fFCUuLF8G5vVo"
  },
  "description": "Call the following API to extract all emails from a given response",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::




### Remarks

Extract the emails from any given response that can be used in the next API









