Blog
When to chain enrichment providers, and when one primary API is cheaper
A waterfall chains enrichment providers to lift coverage, and every extra hop bills. Here is the marginal cost arithmetic, the dedup problem, and when one primary API wins.
A waterfall sounds like free coverage. Ask provider A, and whatever A cannot answer, pass to provider B, then to C. Nobody argues with the shape of it. The argument is about the second hop’s price, and almost everyone computes that price wrong, because they compare it against the first hop’s sticker price instead of against the records it actually adds.
The arithmetic is short, and it usually says something less flattering about hop two than the vendor’s coverage page does.
A waterfall is two different purchases wearing one name
Before any of the cost math, separate the two things a second provider can buy you, because they justify completely different spend.
Coverage. Provider A returns nothing for some share of your list. Provider B might. You are buying rows you would otherwise not have, and the right test is price per added row.
Failover. Provider A is down, or degrading, and you want traffic to keep resolving. You are buying continuity on records you could already get, and the right test is what an outage costs you. We watched one vendor slide from a 0.3% failure rate to 100% over six weeks in when your enrichment provider goes dark, so this is not a hypothetical purchase.
These get conflated constantly, and the conflation is expensive in both directions. A failover provider is sized by your downtime tolerance and may sit idle for months, which is fine, that is what insurance looks like. A coverage provider runs on every batch and has to earn its place on every batch. Decide which one you are buying before you price it.
The rest of this post is about coverage. Failover is a reliability budget, not a data budget.
The number that decides it is cost per incremental record
Say provider A resolves some fraction of your list. The second hop never sees that fraction; it only ever sees the residue. So hop two’s cost and hop two’s benefit both shrink by the same factor, and that factor cancels out.
What survives the cancellation is this: the cost of one added record from hop two is hop two’s cost per attempt divided by hop two’s hit rate on the residue. Position in the chain does not enter into it. A provider is not cheap because it runs third.
That gives you one comparison to make, and it is not price against price. It is cost per incremental record against what a record is worth to you. If a resolved contact is worth a dollar to your pipeline, a hop costing two dollars per added record is a bad hop no matter how low its per-call price is.
A miss is not always free, which changes the order
Here is where the waterfall model most often breaks, and it is a billing detail rather than a data one.
Triguna bills one credit per answered lookup, at $0.005 per credit, and a 404 is an answered lookup. Searching for an identifier that turns out to have no record is the same retrieval as finding one, so it costs the same. The full per-status split is on the pricing page, and the reasoning is in why a lookup returns 404. Credits are decimal rather than whole, so read X-Credits-Charged as a number and not with parseInt.
Plug that into the formula and the two billing models separate hard:
CREDIT_USD = 0.005
def cost_per_incremental_record(usd_per_attempt, hit_rate_on_residue, miss_bills=True):
if hit_rate_on_residue <= 0:
return None
if miss_bills:
# Every attempt bills, hit or miss, so the hit rate divides the price.
return usd_per_attempt / hit_rate_on_residue
# Only answered hits bill, so the sticker price is already the marginal price.
return usd_per_attempt
# Replace 0.20 with a hit rate you measured on your own residue.
print(cost_per_incremental_record(1 * CREDIT_USD, 0.20)) # 0.025
print(cost_per_incremental_record(1 * CREDIT_USD, 0.20, False)) # 0.005
When misses bill, a low residual hit rate multiplies the effective price by one over that hit rate. At a hit rate of one in five, a hop is five times its sticker price per record added. When misses are free, the sticker price is the marginal price and the hit rate does not matter to cost at all, only to throughput.
The honest conclusion for us is not the flattering one. A provider that bills on miss belongs where its hit rate is highest, which is first, on the whole list. Put Triguna last in a chain and you are paying full price for a stack of 404s on identifiers three other vendors already failed to resolve. That is the worst possible use of per-answer billing, and we would rather you knew the shape of it before you wired it up than discovered it on an invoice.
Two corollaries worth stating plainly. If you do run Triguna as a later hop, clean the residue first, because resolving identifiers before they reach the wire is the only lever that removes the miss charge entirely. And a 429 is free, so pacing a hop costs nothing while hammering it costs the full miss price, which is the same point which enrichment errors to retry makes about retry loops re-buying their own failures.
Dedup is the cost nobody budgets
Two providers answering about the same person will hand you two records under two identifier schemes, and nothing in either response tells you they are the same entity. That is a data modelling problem you inherit the moment you add hop two, and it does not show up in anyone’s pricing comparison.
Triguna returns entity_urn as a bare string next to the mutable public_identifier, and the urn is the field the profile owner cannot edit. Keying your rows on it rather than on the slug is the whole argument in key enriched records on the stable identifier, and in a multi-provider setup it stops being a nicety. Without one key per entity that survives a rename, every provider you add is another source of duplicate rows, and duplicates are worse than missing rows because they inflate your counts while looking like coverage.
Budget the join, not just the call. In practice that means picking one identifier space as canonical, mapping every other provider into it on ingest, and refusing to store a record you could not map. A record you cannot join to the rest of your data is not coverage.
Which field wins when two providers both answer
Overlap is the normal case, not the edge case, and the overlap is rarely a clean match. One provider has a current title and a stale company; another has the company right and no title at all. Every Triguna field is nullable, which is the normal shape of the data rather than a caveat, and designing for partial records walks through telling “no data” apart from “we never asked”.
Resolve that with per field precedence, not per provider precedence. Provider trust is not uniform across a record: the vendor you trust for employment history is often not the one you trust for headcount. A single ranked list of providers quietly applies your best source’s reputation to its worst field.
Store the raw payload from every hop so you can change those rules later without re-buying the data. That is the argument in store the raw payload, and it compounds with each provider you add, because precedence rules are the part of a waterfall you will revise most often.
You cannot tune a waterfall you do not log
A chain you cannot attribute is a chain you cannot optimise, and this is the failure we have actually lived. Across 130,220 calls against a third party provider we logged four coarse outcomes and never stored the status code or the error body, so everything that was not a 404 or a 429 collapsed into one failed bucket. We could not answer basic questions about our own traffic, including how much of that failure rate was simply the same entities retried about four times each. The full postmortem is what 130,220 enrichment API calls taught us.
For a waterfall, one line per call with the provider name, the status code, the credits charged, and the hop index is the minimum. Log one line per enrichment call covers the single provider version; the multi-provider version needs the hop index too, or you cannot separate “hop three is bad” from “hop three only ever sees garbage”.
With that log you can answer the only questions that matter: what did each hop add, what did each hop cost, and which hops are paying for misses. Those three columns retire a provider faster than any evaluation call.
When one primary API is the right answer
Chaining is not the default. It earns its place, and often it does not.
- The residue is small. If hop one resolves most of your list, hop two is operating on a thin slice. Coverage gains on a thin slice are thin in absolute terms however good the percentage looks, and the integration cost is fixed regardless.
- Cost per incremental record exceeds the value of a record. Compute it, compare it, and be willing to get a bad answer.
- The operational cost is real and recurring. A second provider is a second contract, a second schema, a second rate limiter, a second auth scheme, a second failure mode, and a mapping layer that needs maintaining forever. None of that appears in the per-call price and all of it appears in your week.
- The chain reintroduces the cost it was meant to cut. A second provider that also bills on miss is spending twice on the same hard records.
- You have not cleaned the input yet. Deduplicating the input list and resolving identifiers before the run are the only levers that shrink the credit line itself, which is why they sit at the top of the list in what an enrichment run costs. A waterfall over a dirty list buys coverage you could have had for nothing.
That last point is the common case. Most teams reaching for hop two have a hop one problem, and the hop one problem is usually identifiers rather than coverage.
How to measure it on your own list
Resist evaluating this on a vendor’s sample. Run it on your residue, and run it small.
- Take a real sample of hop one’s misses. Not a random sample of your list, the actual residue, several hundred records. This is the only input that produces a meaningful hit rate.
- Resolve identifiers on it first. Otherwise you are measuring your own data hygiene and attributing it to a vendor.
- Run the candidate hop over it once. Signup gives you fifty free credits with no card, which is enough to measure a hit rate and a cost per record on real traffic before committing to anything.
- Sum
X-Credits-Chargedrather than trusting the count. Every response carries it, including the errors, and it is the only number that reconciles. Parse it as a float. - Divide cost by records added, not by calls made. Then compare that against what a record is worth. Keep the hop only if it clears.
- Re-run it quarterly. Coverage drifts, prices change, and providers degrade slowly rather than all at once. A hop that cleared last quarter is not evidence about this one.
One more thing the API cannot do for you: there is no people or company search endpoint and no employee listing, so a waterfall cannot widen a list, only resolve one you already have. If what you need is more entities rather than more fields, a chain of enrichment providers is the wrong tool entirely, and what LinkedIn data APIs actually return sets out where that line sits.
Next
- Pricing: one credit per answered lookup or page, and which status codes cost nothing.
- What an enrichment run costs: estimate a run, then reconcile it against the headers.
- Key records on the stable identifier: the join key a multi-provider setup depends on.
- When your enrichment provider goes dark: failover is a different purchase from coverage.
- Proxycurl alternatives compared: the single provider comparison, if you are still choosing hop one.
- Start with fifty free credits at app.triguna.ai/signup, no card.