# RB2B (/integrations/rb2b)





{/* MANUAL-CONTENT-START:intro */}

Use [RB2B](https://rb2b.com/) to resolve IP addresses into hashed emails, mobile advertising IDs, or company domains, and enrich hashed emails or LinkedIn profiles into business contact data. Other actions find LinkedIn profiles by name and company domain, look up contact email or phone details, report last-active dates, and check remaining credits.

Connect an RB2B API key and inspect the returned match before adding a contact to another system.

{/* MANUAL-CONTENT-END */}

## Use the block [#usage-instructions]

Resolve IP addresses, hashed emails, and LinkedIn profiles into person-level identity and B2B enrichment data using the RB2B API. Convert IPs to hashed emails, MAIDs, and company domains; enrich emails into LinkedIn profiles, business profiles, and mobile IDs; and look up emails or phone numbers from LinkedIn. Requires an RB2B API key.

## Actions [#actions]

### RB2B Credit Check [#rb2b-credit-check]

Check the number of API credits remaining on your RB2B account.

<ReferenceDetails>
  #### Input [#input]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |

  #### Output [#output]

  | Parameter | Type | Description |
  | - | - | - |
  | `credits_remaining` | number | Number of API credits remaining on the account |
</ReferenceDetails>

### RB2B IP to HEM [#rb2b-ip-to-hem]

Convert an IP address (and optional user agent) into hashed email addresses (HEM) with accuracy scores.

<ReferenceDetails>
  #### Input [#input-1]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `ip_address` | string | Yes | The IP address to resolve (IPv4 or IPv6) |
  | `user_agent` | string | No | Optional user agent string to improve match accuracy |
  | `include_sha256` | boolean | No | Whether to include SHA-256 hashes in addition to MD5 hashes |

  #### Output [#output-1]

  | Parameter | Type | Description |
  | - | - | - |
  | `results` | array | Up to 3 hashed email matches for the IP address |
  | ↳ `md5` | string | MD5 hash of the matched email |
  | ↳ `sha256` | string | SHA-256 hash of the matched email (only when include\_sha256 is true) |
  | ↳ `score` | number | Match accuracy score (0 = probabilistic, 1 = deterministic) |
</ReferenceDetails>

### RB2B IP to MAID [#rb2b-ip-to-maid]

Resolve an IP address (and optional user agent) into mobile advertising identifiers (MAIDs) observed over the last 60 days.

<ReferenceDetails>
  #### Input [#input-2]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `ip_address` | string | Yes | The IP address to resolve (IPv4 or IPv6) |
  | `user_agent` | string | No | Optional user agent string to improve match accuracy |

  #### Output [#output-2]

  | Parameter | Type | Description |
  | - | - | - |
  | `results` | array | Mobile advertising identifiers observed for the IP address |
  | ↳ `device_id` | string | The mobile advertising identifier |
  | ↳ `device_type` | string | The identifier type (e.g. AAID, IDFA) |
</ReferenceDetails>

### RB2B IP to Company [#rb2b-ip-to-company]

Identify the company domains associated with an IP address, ranked by confidence.

<ReferenceDetails>
  #### Input [#input-3]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `ip_address` | string | Yes | The IP address to resolve (IPv4 or IPv6) |

  #### Output [#output-3]

  | Parameter | Type | Description |
  | - | - | - |
  | `results` | array | Company domain matches for the IP address |
  | ↳ `domain` | string | Company domain associated with the IP |
  | ↳ `percentage` | string | Confidence percentage for the match |
</ReferenceDetails>

### RB2B Email/HEM to Business Profile [#rb2b-emailhem-to-business-profile]

Return a full business profile (name, title, company, industry, seniority and more) for an email address or MD5-hashed email.

<ReferenceDetails>
  #### Input [#input-4]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `email` | string | Yes | A plaintext email address or an MD5 hash of the email |

  #### Output [#output-4]

  | Parameter | Type | Description |
  | - | - | - |
  | `first_name` | string | First name |
  | `last_name` | string | Last name |
  | `title` | string | Job title |
  | `seniority` | string | Seniority level |
  | `linkedinurl` | string | Personal LinkedIn profile URL |
  | `link_email` | string | Linked business email address |
  | `work_email_confirmed` | string | Whether the work email is confirmed |
  | `personal_emails` | array | Associated personal emails (hashed or plaintext depending on input) |
  | `current_company` | string | Current company name |
  | `current_company_url` | string | Current company website |
  | `current_company_linkedinurl` | string | Current company LinkedIn URL |
  | `current_industry` | string | Current industry |
  | `functional_area` | string | Functional area |
  | `country` | string | Country |
  | `company_employee_count` | string | Company employee count |
  | `company_employee_range` | string | Company employee range band |
  | `company_revenue_range` | string | Company revenue range band |
  | `md5` | string | MD5 hash of the resolved email |
</ReferenceDetails>

### RB2B Email/HEM to Best LinkedIn URL [#rb2b-emailhem-to-best-linkedin-url]

Return the most recently active LinkedIn profile URL for an email address or MD5-hashed email.

<ReferenceDetails>
  #### Input [#input-5]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `email` | string | Yes | A plaintext email address or an MD5 hash of the email |

  #### Output [#output-5]

  | Parameter | Type | Description |
  | - | - | - |
  | `linkedin_url` | string | Best LinkedIn profile URL for the email |
</ReferenceDetails>

### RB2B Email/HEM to LinkedIn Slug [#rb2b-emailhem-to-linkedin-slug]

Return the LinkedIn slug (the profile identifier portion of the URL) for an email address or MD5-hashed email.

<ReferenceDetails>
  #### Input [#input-6]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `email` | string | Yes | A plaintext email address or an MD5 hash of the email |

  #### Output [#output-6]

  | Parameter | Type | Description |
  | - | - | - |
  | `linkedin_slug` | string | LinkedIn slug for the email |
</ReferenceDetails>

### RB2B Email/HEM to MAID [#rb2b-emailhem-to-maid]

Return up to five mobile advertising identifiers (MAIDs) associated with an email address or MD5-hashed email.

<ReferenceDetails>
  #### Input [#input-7]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `email` | string | Yes | A plaintext email address or an MD5 hash of the email |

  #### Output [#output-7]

  | Parameter | Type | Description |
  | - | - | - |
  | `results` | array | Mobile advertising identifiers associated with the email |
  | ↳ `device_id` | string | The mobile advertising identifier |
  | ↳ `device_type` | string | The identifier type (e.g. AAID, IDFA) |
</ReferenceDetails>

### RB2B Email to Last Active Date [#rb2b-email-to-last-active-date]

Return the last known active date for an email address.

<ReferenceDetails>
  #### Input [#input-8]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `email` | string | Yes | The email address to look up |

  #### Output [#output-8]

  | Parameter | Type | Description |
  | - | - | - |
  | `results` | array | Activity records for the email |
  | ↳ `email` | string | The email address |
  | ↳ `last_active` | string | Date the email was last seen active (YYYY-MM-DD) |
  | `match_count` | number | Number of matches found |
  | `credits_charged` | number | Credits charged for this request |
  | `credits_exhausted` | boolean | Whether the account is out of credits |
</ReferenceDetails>

### RB2B LinkedIn to Business Profile [#rb2b-linkedin-to-business-profile]

Return a full business profile (name, title, company, emails and more) for a LinkedIn profile.

<ReferenceDetails>
  #### Input [#input-9]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `linkedin_slug` | string | Yes | The LinkedIn profile slug or URL |

  #### Output [#output-9]

  | Parameter | Type | Description |
  | - | - | - |
  | `first_name` | string | First name |
  | `last_name` | string | Last name |
  | `full_name` | string | Full name |
  | `headline` | string | LinkedIn headline |
  | `title` | string | Job title |
  | `seniority` | string | Seniority level |
  | `country` | string | Country |
  | `current_industry` | string | Current industry |
  | `functional_area` | array | Functional areas |
  | `linkedin_url` | string | Personal LinkedIn profile URL |
  | `business_email` | string | Business email address |
  | `personal_email` | string | Personal email address |
  | `company` | object | Current company details |
  | ↳ `name` | string | Company name |
  | ↳ `industry` | string | Company industry |
  | ↳ `website_url` | string | Company website URL |
  | ↳ `linkedin_url` | string | Company LinkedIn URL |
</ReferenceDetails>

### RB2B LinkedIn to Best Personal Email [#rb2b-linkedin-to-best-personal-email]

Return the personal email with the most recent known network activity for a LinkedIn profile.

<ReferenceDetails>
  #### Input [#input-10]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `linkedin_slug` | string | Yes | The LinkedIn profile slug or URL |

  #### Output [#output-10]

  | Parameter | Type | Description |
  | - | - | - |
  | `email` | string | Best personal email for the LinkedIn profile |
</ReferenceDetails>

### RB2B LinkedIn to Personal Email [#rb2b-linkedin-to-personal-email]

Return the personal email addresses associated with a LinkedIn profile.

<ReferenceDetails>
  #### Input [#input-11]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `linkedin_slug` | string | Yes | The LinkedIn profile slug or URL |

  #### Output [#output-11]

  | Parameter | Type | Description |
  | - | - | - |
  | `emails` | array | Personal email addresses for the LinkedIn profile |
</ReferenceDetails>

### RB2B LinkedIn to Hashed Emails [#rb2b-linkedin-to-hashed-emails]

Return the business and personal hashed emails (MD5 and SHA-256) associated with a LinkedIn profile.

<ReferenceDetails>
  #### Input [#input-12]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `linkedin_slug` | string | Yes | The LinkedIn profile slug or URL |

  #### Output [#output-12]

  | Parameter | Type | Description |
  | - | - | - |
  | `linkedin_slug` | string | The LinkedIn slug |
  | `business_md5_array` | array | MD5 hashes of business emails |
  | `business_sha256_array` | array | SHA-256 hashes of business emails |
  | `personal_md5_array` | array | MD5 hashes of personal emails |
  | `personal_sha256_array` | array | SHA-256 hashes of personal emails |
</ReferenceDetails>

### RB2B LinkedIn to Mobile Phone [#rb2b-linkedin-to-mobile-phone]

Return the mobile phone number with the most recent known network activity for a LinkedIn profile.

<ReferenceDetails>
  #### Input [#input-13]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `linkedin_slug` | string | Yes | The LinkedIn profile slug or URL |

  #### Output [#output-13]

  | Parameter | Type | Description |
  | - | - | - |
  | `mobile_phone` | string | Mobile phone number for the LinkedIn profile |
</ReferenceDetails>

### RB2B LinkedIn Slug Search [#rb2b-linkedin-slug-search]

Find a LinkedIn profile URL from a first name, last name, and company domain.

<ReferenceDetails>
  #### Input [#input-14]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | RB2B API key |
  | `first_name` | string | Yes | The person’s first name |
  | `last_name` | string | Yes | The person’s last name |
  | `company_domain` | string | Yes | The company domain (e.g. example.com) |

  #### Output [#output-14]

  | Parameter | Type | Description |
  | - | - | - |
  | `linkedin_url` | string | LinkedIn profile URL for the person |
</ReferenceDetails>
