View Source RocketReach (ExRocketreach v0.1.1)

Client for the RocketReach API. Provides functions to search and lookup contact information for professionals and companies.

This module offers comprehensive functionality for interacting with the RocketReach API, including:

Core Features

  • Account management and API key creation
  • Person lookup and search capabilities
  • Company information retrieval and search
  • Bulk lookup operations
  • NPI contact search
  • Profile-company lookup

Company-Specific Features

  • Technology stack analysis
  • Competitor analysis
  • Industry information
  • Company growth metrics
  • Company size and revenue search
  • Funding information
  • Location-based company search
  • Public trading status verification
  • Organizational structure analysis

Usage Example

client = RocketReach.new("your_api_key")
{:ok, response} = RocketReach.lookup_company(client, %{domain: "example.com"})

API Reference: https://api.rocketreach.co/api/v2

Summary

Functions

Performs bulk lookup operations for multiple queries.

Checks the status of multiple person lookups.

Creates a new API key for the authenticated account.

Retrieves account information for the authenticated user.

Retrieves the technology stack for a company by domain.

Get direct reports for a specific person

Get company leadership team

Retrieves contact information for a healthcare provider using NPI number.

Get company organizational chart by domain

Looks up company information by various parameters.

Looks up detailed information about a person.

Looks up profile-company relationship information.

Creates a new RocketReach API client with the provided API key.

Searches for companies based on specified criteria.

Searches for companies using specific technologies.

Search for all employees at a company with their roles and reporting structure

Searches for people based on specified criteria.

Functions

bulk_lookup(client, queries, opts \\ [])

Performs bulk lookup operations for multiple queries.

Parameters

  • client: RocketReach client struct
  • queries: List of query parameters
  • opts: Optional keyword list with :profile_list and :webhook_id

Returns

  • {:ok, response} containing bulk lookup results
  • {:error, reason} on failure

check_person_status(client, ids)

Checks the status of multiple person lookups.

Parameters

  • client: RocketReach client struct
  • ids: List of person IDs to check

Returns

  • {:ok, response} containing status information
  • {:error, reason} on failure

create_api_key(client)

Creates a new API key for the authenticated account.

Parameters

  • client: RocketReach client struct

Returns

  • {:ok, response} containing the new API key
  • {:error, reason} on failure

get_account(client)

Retrieves account information for the authenticated user.

Parameters

  • client: RocketReach client struct

Returns

  • {:ok, response} on success
  • {:error, reason} on failure

get_company_competitors(client, domain)

get_company_funding(client, domain)

get_company_growth(client, domain)

get_company_industries(client, domain)

get_company_size(client, domain)

get_company_tech_stack(client, domain)

Retrieves the technology stack for a company by domain.

Parameters

  • client: RocketReach client struct
  • domain: Company domain name

Returns

  • {:ok, tech_stack} containing list of technologies
  • {:error, reason} on failure

get_department_structure(client, domain, department)

Get employees by department

get_direct_reports(client, manager_id)

Get direct reports for a specific person

get_leadership_team(client, domain)

Get company leadership team

get_npi_contact(client, npi)

Retrieves contact information for a healthcare provider using NPI number.

Parameters

  • client: RocketReach client struct
  • npi: National Provider Identifier number

Returns

  • {:ok, response} containing provider contact information
  • {:error, reason} on failure

get_org_chart(client, domain)

Get company organizational chart by domain

is_publicly_traded?(client, domain)

lookup_company(client, params)

Looks up company information by various parameters.

Parameters

  • client: RocketReach client struct
  • params: Map of company parameters (e.g., domain, name)

Returns

  • {:ok, response} containing company details
  • {:error, reason} on failure

lookup_person(client, params)

Looks up detailed information about a person.

Parameters

  • client: RocketReach client struct
  • params: Map of search parameters (e.g., email, name, company)

Returns

  • {:ok, response} containing person details
  • {:error, reason} on failure

lookup_profile_company(client, params)

Looks up profile-company relationship information.

Parameters

  • client: RocketReach client struct
  • params: Map of lookup parameters

Returns

  • {:ok, response} containing profile-company information
  • {:error, reason} on failure

new(api_key)

Creates a new RocketReach API client with the provided API key.

Parameters

  • api_key: String representing your RocketReach API key

Returns

  • Req struct configured with base URL and API key header

search_companies(client, query)

Searches for companies based on specified criteria.

Parameters

  • client: RocketReach client struct
  • query: Map containing search criteria

Returns

  • {:ok, response} containing search results
  • {:error, reason} on failure

search_companies_by_location(client, location, radius, unit \\ "mi")

search_companies_by_revenue(client, min_revenue, max_revenue)

search_companies_by_size(client, min_size, max_size)

search_companies_by_tech(client, technologies)

Searches for companies using specific technologies.

Parameters

  • client: RocketReach client struct
  • technologies: List of technology names

Returns

  • {:ok, response} containing matching companies
  • {:error, reason} on failure

search_company_employees(client, domain)

Search for all employees at a company with their roles and reporting structure

search_people(client, query)

Searches for people based on specified criteria.

Parameters

  • client: RocketReach client struct
  • query: Map containing search criteria

Returns

  • {:ok, response} containing search results
  • {:error, reason} on failure