# Better features for every account and lead model.

> Add headcount, revenue, funding round, industry, stack, seniority and job history features to scoring models. Batch 10,000 records per job, results as JSONL or CSV.

Turn a bare email or domain into typed firmographic and person features, batch the training set as JSONL, size population base rates with free counts, and pay only for records that match.

## Highlights
- **Typed company features.** `employee_count`, `employee_range`, `revenue_band`, `industry`, `funding_latest_round`, `founded` and `technologies`.
- **Person features.** `seniority` and `department` enums, location, and `history` with start and end months for tenure.
- **Batch as JSONL.** Up to 10,000 lookups per job, async, with results as JSONL or CSV. Misses are free.
- **Free base rates.** `POST /v1/count` returns a population total for any filter set, at no cost. Run one count per segment to split it.
- **Freshness timestamps.** Every person record has `updated_at`, so you know how current each feature is.
- **Quote before you pull.** Add `"dry_run": true` to a batch to get its cost ceiling before it runs.

## Steps
1. **Pick the feature set** — Choose company and person fields that plausibly drive your outcome.
2. **Quote and batch** — Dry-run the training-set batch, then run it with a webhook and JSONL output.
3. **Engineer and validate** — Encode enums, bucket ranges, check missingness and guard against leakage.
4. **Score new records** — Enrich new leads at creation time and snapshot features for the next retrain.

## APIs used
| API | Endpoint | Credits | Charged | Reference |
|---|---|---|---|---|
| Company enrich | `POST /v1/companies/enrich` | 1 credit | If matched | [docs](https://dizo.ai/docs/company-enrich.md) |
| Person enrich | `POST /v1/people/enrich` | 2 credits (+1 email, +10 phone) | If matched | [docs](https://dizo.ai/docs/people-enrich.md) |
| Batch | `POST /v1/batch` | Same as each item | Per item, same rules | [docs](https://dizo.ai/docs/batch.md) |
| Count (TAM) | `POST /v1/count` | Free | Never | [docs](https://dizo.ai/docs/count.md) |
| Domain to company | `GET /v1/companies/{domain}` | 1 credit | Only if found | [docs](https://dizo.ai/docs/domain-to-company.md) |


## Why GTM models are usually feature-starved

A data scientist asked to build a lead or account score tends to inherit a thin table. There is an email, maybe a company name typed by the lead, a form source, a few product events and an outcome. The fields that most plausibly explain whether a company buys, such as size, growth, industry, stack and the seniority of the person who showed up, are missing or filled in by hand and inconsistent. The model ends up leaning on behavioural signals alone, which works for warm leads and fails on everything else.

Adding third-party firmographics fixes the coverage problem but introduces new ones: inconsistent schemas, unknown freshness, unclear cost per row and, if you are not careful, leakage that makes the backtest look far better than production. This page covers which Dizo fields make useful features, how to pull them at training-set scale, and the modelling traps to avoid.

## The features available

Company records give you the account-level signal. From company enrich or domain to company you get typed fields you can encode directly. Person records give you the lead-level signal. All field names and types are listed on the [data fields](/data/fields) page.

Domain to company also returns SIC and NAICS codes, company type and recent news, 68 data points per company. Use the `fields` parameter on lookups that support it to return only the columns your pipeline consumes, which keeps payloads small and schemas stable.

- **`employee_count`** (integer, estimated headcount), **`employee_range`** (headcount band) and **`revenue_band`** (estimated range): size features; bucket or log-transform headcount.
- **`hq`** (object: city, state, country): geography features; country and state one-hot well at the account level.
- **`industry`** (slug) and **`technologies`** (string array): categorical and multi-hot features.
- **`funding_latest_round`** (enum, angel through series_j, or other) and **`founded`** (year): maturity features.
- **`seniority`** (enum: c_level, vp, director, manager, senior, mid_level, entry_level, other) and **`department`** (enum): who the lead is.
- **`history`** (array with company, title, from and to months): tenure in role and prior employers.
- **`updated_at`** (datetime): record freshness, useful for filtering or weighting.

## Pulling the training set

For a historical lead table, deduplicate first. Many leads share a company, so enrich unique domains once with `POST /v1/companies/enrich` and join back. Then enrich people with `POST /v1/people/enrich`, passing the email, or a name plus `company_domain` where there is no email. Person enrich costs 2 credits if matched, and leave `include` off unless you need contact data, since email and phone add 1 and 10 credits.

Send each set through `POST /v1/batch`, which takes up to 10,000 request bodies per job, charges the same per item as the underlying endpoint and charges nothing for misses. Set `format: "jsonl"`, a `webhook_url` for `batch.completed`, and `max_credits` as a hard ceiling. Before running, send the same request with `"dry_run": true` to get the cost quote. Results stay available for seven days via `GET /v1/batch/{id}`, so land them in your warehouse promptly. See [batch jobs](/features/batch-jobs) for details.

## Feature engineering that holds up

Most of the fields are enums or ranges, which is convenient. Seniority and department one-hot cleanly. Revenue band is ordinal, so encode it as an ordered integer rather than a set of unrelated categories. Headcount is heavy-tailed; a log transform or the bands used by the company filters, such as `51-200` and `201-500`, usually behave better than the raw count. Technologies is a long-tail multi-label field: keep the most frequent ones in your population as binary columns and fold the rest into a count.

Treat a missing match as information, not just a null. A lead whose email matches no person, or whose domain matches no company, is often a personal address, a very small business or a typo, and those groups usually convert differently. Add explicit `matched` flags for the person and company lookups and let the model use them. Derive tenure from `history`: months since the current role started is often a stronger feature than title.

## Leakage and point-in-time pitfalls

The biggest trap is time. Enrichment returns the current state of a record, not its state when the lead arrived. If you enrich leads from 18 months ago today, a company that bought your product and then grew will show today's headcount, and a lead who was promoted after a successful rollout will show the new title. The model learns that large, senior, growing accounts convert, partly because converting made them that way. The backtest looks excellent and production disappoints.

Mitigate it in three ways. Prefer features that change slowly, such as industry and founding year, for long lookbacks. Use `history` start and end months to reconstruct the title and employer a person held at the lead date. And, most importantly, start snapshotting features at the moment each new lead is scored, so the next retrain uses true point-in-time values. Keep `updated_at` alongside each snapshot to know how fresh it was.

## Base rates and population priors for free

Scoring models work better when you know the population, not just your own leads. `POST /v1/count` takes the same filters as search and returns a total, at no cost. To split the population by country, seniority, department, industry or `employee_range`, run one count per segment; each is still free. That gives you the denominator: how many companies in each segment exist, compared with how many reached your funnel. Segments with high conversion and low penetration are where an account model should point sales.

Counts do not tell you how many records have an email or phone. Contact data only arrives from lookups, which are charged only if found, so estimate reachability by running the email finder on a small sample of a segment and measuring the find rate before you enrich the rest. The count endpoint is limited to five requests per second per key, so cache the results of a sweep across segments rather than calling it inside a scoring loop.

## Scoring in production

Once the model is trained, enrichment moves into the lead pipeline. On lead creation, call company enrich on the email domain and person enrich on the address, write the features and the raw response to your warehouse with a timestamp, and score. Use an `Idempotency-Key` per lead so that retries never double-charge, and send `max_credits` on each request. Misses are free and should map to the same `matched` flags the model saw in training.

Evaluate the enriched model against the behaviour-only baseline on a time-based split, not a random one, so the test set comes after the training set the way production does. Report lift by match status as well as overall: if the gain comes entirely from matched leads, the unmatched segment still needs its own treatment. After launch, monitor the match rate and the distribution of key features each month. A sudden drop in company matches usually means a new lead source with personal addresses, not a model problem.

For an agent that explains scores to sales, the same lookups are exposed as MCP tools at `https://mcp.dizo.ai/mcp`, such as `dizo_enrich_company` and `dizo_enrich_person`. An assistant can fetch the features behind a score and describe them in plain language. Keep that key on `data:read` with a monthly cap. See [lead scoring](/use-cases/lead-scoring) for the full pipeline.

## What it costs

Here is a hypothetical training set. You have 20,000 historical leads across 12,000 unique domains. Company enrich matches 90% of domains: 10,800 credits. Person enrich matches 75% of emails: 15,000 × 2 = 30,000 credits. The training set costs 40,800 credits. Bought as a single purchase of $856.80, that falls in the $500 to $1,999 tier at $0.021 per credit.

Ongoing scoring for 2,000 new leads a month with the same match rates uses 1,800 company credits plus 3,000 person credits, or 4,800 credits a month: $120 at $0.025, or $100.80 at $0.021. Monitoring for drift may mean re-enriching a sample each quarter, which you can price exactly with a dry run. Credits are valid for 12 months. Current tiers are on the [pricing](/pricing) page.

## Acceptable use and getting started

Dizo data covers professional, business-context information for legitimate business purposes. Its acceptable use terms specifically exclude consumer credit, employment and insurance eligibility decisions, so a model that scores leads or accounts for sales is in scope, while one that decides whether to hire or lend to someone is not. Opt-outs reach the API within 24 hours and are permanent, so periodic re-enrichment will reflect removals. The [trust page](/trust) covers the rest.

[Sign up](/signup) for live keys and 250 free credits, enough to enrich a pilot sample and check feature lift before committing to a full training set. Test keys return synthetic data now, so you can build the batch pipeline and schema in advance.

## FAQ

### Which Dizo fields make the most useful features?
That depends on your outcome, but size, revenue band, industry, technologies and latest funding round at the company level, and seniority, department and tenure at the person level, are common starting points. Test lift on a sample before enriching everything.

### Do I pay for leads that do not match?
No. Company enrich and person enrich charge only when a record is matched. Unmatched rows are free, and you should keep them as a matched flag in the feature set.

### Can I enrich data as it was at a past date?
Lookups return the current record. Person history includes start and end months, which lets you reconstruct a role at a past date, but firmographics such as headcount are current. Snapshot features at scoring time for clean retrains.

### How do I pull a large training set?
Use the batch endpoint with up to 10,000 items per job, JSONL output and a completion webhook. Quote it first with dry_run, and set max_credits as a ceiling.

### Can I use Dizo features in a hiring or credit model?
No. Dizo's acceptable use terms exclude consumer credit, employment and insurance eligibility decisions. Lead and account scoring for sales and marketing is the intended use.

### How fresh are the features?
Active profiles are re-checked on a rolling cycle of about 30 days, and frequently requested records sooner. Each person record carries updated_at, so you can see when it was last refreshed.
