Enrich API Documentation
  • Introduction
    • Authentication
    • Rate Limit
    • Credit Usage
  • Reference
    • Check Credit Usage
    • Email to Profile data
    • Email to IP
    • Email Finder
    • Profile URL to Work Email V2
    • Profile URL to Personal Email
    • Verify Emails—Even Behind Catch-Alls
    • Company Lookup
    • Company Funding and Traffic
    • Linkedin Public Profile Enrichment
    • Phone Number Finder
    • Find post details by URL
    • Search Posts
    • Bulk enrichment
    • Email to Phone Number
    • Email to Person Lite
    • Reverse email append
    • Disposable/Spam Email Check
    • IP to Company
    • Logo API
    • Search People Activities
    • Search Company Activities
    • Search Post Reactions
    • Search Post Reactions by URL
    • Search Post Comments
    • Search Post Comments by URL
    • Search Company
    • Search Similar Companies
    • Search People
    • Sales Pointer - Dynamic Filters
    • Sales Pointer - People
    • Sales Pointer - People by URL
    • Sales Pointer - Company
    • Sales Pointer - Company by URL
    • Search Company Employees
    • Search Jobs
    • Web search
    • Serp Search
    • News Search
    • Maps Search
    • Places Search
    • Videos Search
    • Shopping Search
    • Image Search
  • Changelog
Powered by GitBook
On this page
  1. Reference

Search Company Employees

Search for company employees by job title, location, company id or other criteria.

cURL 'https://api.enrich.so/v1/api/search-company-employees' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "country": "United States",
    "city": "San Francisco",
    "state": "California",
    "companyIds": [12345],
    "jobTitles": ["Software Engineer"],
    "page": 1,
    "page_size": 10
}'
const axios = require('axios');

const payload = {
    country: "United States",
    city: "San Francisco",
    state: "California",
    companyIds: [12345],
    jobTitles: ["Software Engineer"],
    page: 1,
    page_size: 10
};

axios.post('https://api.enrich.so/v1/api/search-company-employees', payload, {
    headers: {
        accept: 'application/json',
        Authorization: 'Bearer <token>',
        'Content-Type': 'application/json'
    }
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error.response ? error.response.data : error.message);
  });
import requests

url = 'https://api.enrich.so/v1/api/search-company-employees'

payload = {
    country: "United States",
    city: "San Francisco",
    state: "California",
    companyIds: [12345],
    jobTitles: ["Software Engineer"],
    page: 1,
    page_size: 10
}

headers = {
    'accept': 'application/json',
    'authorization': 'Bearer <token>',
    'Content-Type': 'application/json'
}

response = requests.post(url, json=payload, headers=headers)

if response.status_code == 200:
    print(response.json())
else:
    print(f"Error: {response.status_code}, {response.text}")
OkHttpClient client = new OkHttpClient();

        MediaType mediaType = MediaType.parse("application/json");
        String payload = "{\n" +
                "  \"country\": \"United States\",\n" +
                "  \"city\": \"San Francisco\",\n" +
                "  \"state\": \"California\",\n" +
                "  \"companyIds\": [12345],\n" +
                "  \"jobTitles\": [\"Software Engineer\"],\n" +
                "  \"page\": 1,\n" +
                "  \"page_size\": 10\n" +
                "}";

        RequestBody body = RequestBody.create(mediaType, payload);

        Request request = new Request.Builder()
                .url("https://api.enrich.so/v1/api/search-company-employees")
                .post(body)
                .addHeader("accept", "application/json")
                .addHeader("authorization", "Bearer <token>")
                .addHeader("Content-Type", "application/json")
                .build();

        Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'
require 'json'

url = URI("https://api.enrich.so/v1/api/search-company-employees")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'

payload = {
  country: "United States",
  city: "San Francisco",
  state: "California",
  companyIds: [12345],
  jobTitles: ["Software Engineer"],
  page: 1,
  page_size: 10
}

request.body = payload.to_json

response = http.request(request)
if response.code == '200'
  puts response.body
else
  puts "Error: #{response.code}, #{response.body}"
end
<?php

$curl = curl_init();

$data = [
    "country" => "United States",
    "city" => "San Francisco",
    "state" => "California",
    "companyIds" => [12345],
    "jobTitles" => ["Software Engineer"],
    "page" => 1,
    "page_size" => 10
];

curl_setopt_array($curl, [
    CURLOPT_URL => "https://api.enrich.so/v1/api/search-company-employees",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => json_encode($data),
    CURLOPT_HTTPHEADER => [
        "accept: application/json",
        "authorization: Bearer <token>",
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}

Example response

Status Code: 200 OK

{
    "success": true,
    "message": "Company Employee records found.",
    "data": {
        "current_page": 1,
        "total_page": 3000,
        "page_size": 2,
        "profiles": [
            {
                "profile_identifier": "ananya-roy-123456789",
                "given_name": "Ananya",
                "family_name": "Roy",
                "current_position": "Research Scientist at QuantumLab",
                "profile_image": "https://randomuser.me/api/portraits/women/21.jpg",
                "external_profile_url": "https://www.linkedin.com/in/ananya-roy-123456789/",
                "residence": {
                    "city": "Bengaluru",
                    "country": "India"
                },
                "expert_skills": [
                    "Quantum Computing",
                    "Data Analysis",
                    "Algorithm Development",
                    "Scientific Research"
                ]
            },
            {
                "profile_identifier": "daniel-smith-987654321",
                "given_name": "Daniel",
                "family_name": "Smith",
                "current_position": "Creative Director at InnovateDesign",
                "profile_image": "https://randomuser.me/api/portraits/men/32.jpg",
                "external_profile_url": "https://www.linkedin.com/in/daniel-smith-987654321/",
                "residence": {
                    "city": "San Francisco",
                    "country": "USA"
                },
                "expert_skills": [
                    "Graphic Design",
                    "UX/UI Design",
                    "Brand Identity",
                    "Team Leadership",
                    "Creative Direction",
                    "Visual Storytelling",
                    "Marketing Strategy"
                ]
            }
        ]
    },
    "total_credits": 50000,
    "credits_used": 2547.75,
    "credits_remaining": 47452.25
}

Status code: 404 NOT FOUND

{
    "message": "We couldn't find the results for your query"
}
PreviousSales Pointer - Company by URLNextSearch Jobs

Last updated 1 month ago