> ## Documentation Index
> Fetch the complete documentation index at: https://docs.harvestapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Profile by email

> Find the LinkedIn profile of the person behind a work email address (reverse email lookup).

## Find the LinkedIn profile behind a work email

Give a work email address and get the LinkedIn profile of the person who uses it (reverse email lookup).

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  email: 'john.smith@acme.com',
});
fetch(`https://api.harvestapi.io/linkedin/profile-by-email?${params.toString()}`, {
  headers: { 'X-API-Key': '<api-key>' },
})
  .then((response) => response.json())
  .then((data) => console.log(data));
```

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.harvestapi.io/linkedin/profile-by-email?email=john.smith%40acme.com' \
  --header 'X-API-Key: <api-key>'
```

```python Python theme={null}
import requests

url = "https://api.harvestapi.io/linkedin/profile-by-email"

params = {"email": "john.smith@acme.com"}

headers = {"X-API-Key": "<api-key>"}

response = requests.request("GET", url, headers=headers, params=params)

print(response.text)
```


## OpenAPI

````yaml GET /linkedin/profile-by-email
openapi: 3.0.1
info:
  title: HarvestAPI LinkedIn API reference
  description: HarvestAPI LinkedIn API reference
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.harvestapi.io
security:
  - ApiKeyAuthHeader: []
paths:
  /linkedin/profile-by-email:
    get:
      summary: Find a LinkedIn profile by email
      description: >-
        Find the LinkedIn profile of the person behind a work email address
        (reverse email lookup).
      parameters:
        - name: email
          in: query
          required: true
          description: The email address to look up, e.g. `john.smith@acme.com`
          schema:
            type: string
            format: email
      responses:
        '200':
          description: Profile by email response
          content:
            application/json:
              schema:
                type: object
                properties:
                  element:
                    $ref: '#/components/schemas/ProfileByEmail'
                  status:
                    type: integer
                  error:
                    type: string
                  query:
                    type: object
                    properties:
                      email:
                        type: string
                        description: The email address looked up, lowercased
                      companyId:
                        type: string
                        description: >-
                          ID of the LinkedIn company found for the email domain.
                          Only when the profile was searched
                      companyUniversalName:
                        type: string
                        description: Universal name of that company
              example:
                element:
                  id: ACoAABx7Ld0BqT1o3dXc9zKfP2uWm4hYs8vNe5Q
                  publicIdentifier: john-smith-4b21a7
                  linkedinUrl: https://www.linkedin.com/in/john-smith-4b21a7
                  name: John Smith
                  position: Head of Sales at Acme
                  location:
                    linkedinText: Austin, Texas, United States
                  photo: >-
                    https://media.licdn.com/dms/image/v2/C4E03AQH7example/profile-displayphoto-shrink_100_100/0/1600000000000
                status: 200
                query:
                  email: john.smith@acme.com
                  companyId: '12345678'
                  companyUniversalName: acme
        '400':
          description: >-
            The `email` parameter is missing or is not a work email address with
            a name: personal email addresses (`gmail.com`, `outlook.com`, ...)
            and role addresses such as `info@` are rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No profile found. The `error` text says why: no LinkedIn company has
            a website on the email's domain, or no matching person was found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  query:
                    type: object
                    properties:
                      email:
                        type: string
              example:
                status: 404
                error: >-
                  Profile not found: no LinkedIn company found for the domain
                  acme.com
                query:
                  email: john.smith@acme.com
components:
  schemas:
    ProfileByEmail:
      required:
        - id
        - linkedinUrl
      type: object
      properties:
        id:
          type: string
          description: LinkedIn profile ID
        publicIdentifier:
          type: string
          nullable: true
          description: >-
            The part of the profile URL after /in/. Null when the profile was
            found in our database and its public identifier is not known;
            `linkedinUrl` then uses the profile ID
        linkedinUrl:
          type: string
          format: uri
        name:
          type: string
          description: >-
            Only when the profile was found by the search, like `position`,
            `location` and `photo`. A profile found in our database comes with
            its ID and URL only
        position:
          type: string
          description: The profile's headline
        location:
          type: object
          properties:
            linkedinText:
              type: string
        photo:
          type: string
          format: uri
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    ApiKeyAuthHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.