This feature is currently in private beta. Please reach out to us on Slack if you’re interested in trying it out

Overview

Your own data can only get you so far. It’s common for data pipelines to enrich first party data with third party data in order to get a more complete picture. This is usually a complicated engineering task and involves running additional infrastructure but in Vinyl enrichment is supported directly in the transform layer.

Common use cases for enrichment include:

  • Zipcode to city mapping
  • IP address to location mapping
  • Email to company mapping
  • Phone number to company mapping
  • Weather enrichment

We support enrichment through managed data broker services. These services are provided by third party vendors and are integrated directly into Vinyl. You can bring your own API key. Some initial providers that we support in private beta are:

How to Enrich Data

Enriching data is as easy as passing in the provider to your existing model.

Let’s say you have a SaaS product postgres database with users in it that you’d like to enrich with third party data from Apollo.

idnameemail
1Alex Johnsonalex.johnson@example.com
2Bethany Kimbethany.kim@example.com
3Carlos Smithcarlos.smith@example.com
4Diana Cruzdiana.cruz@example.com
5Ethan Wongethan.wong@example.com

We can use Vinyl’s ApolloEnrichment provider to enrich the data for matching columns and transform the data.

my_project/customer_models.py
from vinyl import model
from vinyl.enrichment import ApolloEnrichment
from my_project.sources import PostgresProductUsers

@model(deps=[PostgresProductUsers, ApolloEnrichment])
def enriched_users(users, apollo):
    users.enrich(apollo, on='email', cols=['company', 'title', 'website', 'location', 'size'])
    return users
idnameemailcompanytitlewebsitelocationsize
1Alex Johnsonalex.johnson@example.comTech InnovationsProduct Managertechinnovations.comNew York, NY101-500
2Bethany Kimbethany.kim@example.comGlobal SolutionsSenior Developerglobalsolutions.bizSan Francisco, CA501-1000
3Carlos Smithcarlos.smith@example.comCreative MediaCreative Directorcreativemedia.coLos Angeles, CA51-100
4Diana Cruzdiana.cruz@example.comHealth PlusHR Specialisthealthplus.orgChicago, IL1001-5000
5Ethan Wongethan.wong@example.comEco VenturesEnvironmental Analystecoventures.netAustin, TX11-50