ScraperCity logo

Integration Guide

ScraperCity + EmailBison

Import leads from the Lead Database into EmailBison campaigns through the API. Leads land in your sequences running on dedicated IP pools, ready to send.

How It Works

EmailBison exposes a full REST API for managing leads and campaigns. You create leads through the API, then attach them to a campaign. Once attached, leads start receiving your sequence steps based on the campaign schedule.

The integration is two API calls: one to ScraperCity to pull contacts matching your ICP, and one to EmailBison to import those contacts into a campaign. You can do this manually with curl, automate it with a script, or wire it up through n8n.

What You Need

ScraperCity API Key

From app.scrapercity.com/dashboard/api-docs. Requires the $649/mo plan.

EmailBison API Token

Settings > Developer API > New API Token. Use the api-user type. Token is shown once.

EmailBison Base URL

Your workspace URL + /api. Example: https://dedi.emailbison.com/api

Campaign ID

The numeric ID of the campaign you want to load leads into. Find it in the EmailBison campaign URL.

Step by Step

1

Pull leads from ScraperCity

curl -s "https://app.scrapercity.com/api/v1/database/leads?title=VP+of+Sales&industry=computer%20software&hasEmail=true&limit=100" \
  -H "Authorization: Bearer $SCRAPERCITY_API_KEY"
2

Create each lead in EmailBison

For each contact from the ScraperCity response, POST to the EmailBison leads endpoint:

curl -X POST "https://dedi.emailbison.com/api/leads" \
  -H "Authorization: Bearer $EMAILBISON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "first_name": "Jane",
    "last_name": "Chen",
    "company": "SaaSCorp",
    "custom_variables": {
      "title": "VP of Sales",
      "linkedin": "https://linkedin.com/in/janechen",
      "industry": "Computer Software"
    }
  }'

This creates the lead in your EmailBison workspace. Note the lead ID in the response for the next step.

3

Attach leads to a campaign

Add the leads to your target campaign by ID:

curl -X POST "https://dedi.emailbison.com/api/campaigns/6/leads" \
  -H "Authorization: Bearer $EMAILBISON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "lead_ids": [101, 102, 103, 104, 105]
  }'

Leads added to an active campaign sync within 5 minutes and begin receiving sequence steps according to your campaign schedule.

Using ScraperCity Data for Personalization

Any field you include in custom_variables when creating the lead becomes available as a Liquid variable in your EmailBison sequence. This means you can personalize every email with data pulled directly from ScraperCity.

{{title}}=VP of Sales

Hi {{first_name}}, as a {{title}} at {{company}}...

{{industry}}=Computer Software

I work with other {{industry}} companies...

{{city}}=San Francisco

Next time I am in {{city}}...

{{linkedin}}=linkedin.com/in/...

Saw your profile on LinkedIn...

Closing the Loop with Webhooks

EmailBison sends webhook events for key actions: email sent, reply received, interested, unsubscribed, bounced, and tag attached. You can subscribe to these in Settings > Webhooks.

This means you can build a full loop: ScraperCity sources the leads, EmailBison sequences them, and webhooks notify your CRM or spreadsheet when someone replies or shows interest. Use n8n or Zapier to catch the webhook and route the data wherever it needs to go.

FAQ

Get API access to the Lead Database: