Skip to content
B2BenrichA ContactLevel company

B2B market sizing with live counts, not guesses

Size a market from real company and contact counts by segment, without pulling a single record, for planning, territories or fundraising.

Dag Holmen · Updated · 5 min read

View as Markdown

B2B market sizing often starts with a figure from an analyst report and a percentage someone picked. The result is hard to check and harder to plan around. If you sell to companies, there's a more direct way: count them. How many companies sit in each segment you sell to, and how many of the people you sell to work there.

With an API, those counts come back in seconds and you never pull a record. This guide covers which B2Benrich endpoints return counts, a short script that builds a grid by industry, size and region, and how to use the grid for territory planning and planning decks.

Two counts, two endpoints

You want to countEndpointRead
CompaniesPOST /v1/search/companiestotal_count in the search response
People at those companiesPOST /v1/search/prospector/counttotal_count

Company search returns records plus total_count, so ask for one small page and read the total. The Prospector count endpoint returns only the count. It takes contact_filters and company_filters, so "finance directors at software companies in Canada" is one call. It counts people, not companies.

The two endpoints name some filters differently. Company search uses headquarters_country_name. Prospector's company filter for the same idea is hq_country. Both use industry_linkedin and employee_count_range.

One gap to plan for: the technologies filter is on Prospector, not company search. You can count people at companies that use a tool, but counting the companies themselves means pulling Prospector results and counting unique company_id values. The technographic data guide shows how.

Pick the dimensions

Most planning questions come down to three:

  • Industry: industry_linkedin
  • Size: employee_count_range, or revenue_range on company search
  • Region: country for the overall market, state for territories

Get the allowed values for each from POST /v1/search/meta/{field}, for example /v1/search/meta/industry_linkedin and /v1/search/meta/hq_country. The values in the script below are placeholders. Because the two endpoints use different country fields, test one company search with your country string before you run the whole grid.

Keep the lists short. The grid grows fast: 5 industries × 4 size bands × 3 countries is 60 cells, and two counts per cell is 120 calls.

A script that builds the grid

This Python script loops over every combination and writes one row per cell, with a company count and a buyer count:

import csv, itertools, os, requests

BASE = "https://api.b2benrich.com"
HEADERS = {"X-Api-Key": os.environ["B2BENRICH_API_KEY"], "Content-Type": "application/json"}

def post(path, body):
    r = requests.post(f"{BASE}{path}", json=body, headers=HEADERS, timeout=30)
    r.raise_for_status()
    return r.json()

# Placeholders: copy exact values from /v1/search/meta/{field}
industries = ["Software Development", "Financial Services", "Hospitals and Health Care"]
sizes = ["51-200", "201-500", "501-1000"]
countries = ["United States", "Canada", "United Kingdom"]
buyer = {"job_function": "Finance", "job_level": "Director"}

with open("market-grid.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerow(["industry", "size", "country", "companies", "buyers"])
    for industry, size, country in itertools.product(industries, sizes, countries):
        companies = post("/v1/search/companies", {
            "industry_linkedin": industry,
            "employee_count_range": size,
            "headquarters_country_name": country,
            "page": 1,
            "page_size": 1,
        })["total_count"]
        buyers = post("/v1/search/prospector/count", {
            "contact_filters": buyer,
            "company_filters": {
                "industry_linkedin": industry,
                "employee_count_range": size,
                "hq_country": country,
            },
        })["total_count"]
        w.writerow([industry, size, country, companies, buyers])

Open the CSV in a spreadsheet and pivot it any way you like. Save the script and its value lists in your repo, so the next run uses the same definitions.

Reading the grid

A few rows might look like this. The numbers are made up.

IndustrySizeCountryCompaniesBuyers
Software Development51-200United States9,1406,020
Software Development51-200Canada1,210690
Financial Services201-500United Kingdom6401,150

Look at three things.

  • Buyers per company. A ratio well below 1 can mean the role often doesn't exist at that size. Above 1 means you'll be dealing with more than one person per account. Treat it as rough, since the two counts come from different endpoints.
  • Empty or tiny cells. Check the filter value first. A misspelled industry returns zero, not an error.
  • Where the mass is. A handful of cells often hold most of the market. That's where first campaigns and first hires go.

Only add cells together when they can't overlap. Size bands and countries are clean cuts, so summing across them is safe. Counts filtered on two different technologies aren't, because one company can run both.

Territory planning with counts

Sales territory sizing is the same grid cut by geography. The goal is territories with similar numbers of accounts and buyers, not similar land area.

  1. Count companies per state with headquarters_state_name on company search. Test a value first, as with countries.
  2. Count buyers per state with Prospector, putting state_name in contact_filters if reps sell by where the buyer sits. Values come from /v1/search/meta/state_name.
  3. Group states until each territory has roughly the same total, or the same weighted total if some segments are worth more to you.
  4. Save the counts with the date, so next year's rebalance compares real numbers.

Headquarters and buyer location aren't the same. A company based in New York can run its finance team from Texas. Decide which one your territories follow before you count.

Market size for a planning deck

For a board or fundraising slide, the counts give you the account base. Multiply by your own average contract value and show the working.

Anyone can check a number with filters behind it, and you can rerun it next quarter. Counts move as companies grow and people change jobs, so always date them.

Repeat runs are cheap. B2Benrich is unlimited API usage for $500 a month with no credits, so running a 120-call grid every quarter doesn't change your bill.

From counts to a list

A grid tells you where to aim. When a segment earns a campaign, the same filters pull the records. TAM mapping with an API covers paging, dedupe and storage. The prospecting API and company search API guides cover each endpoint in detail.

Frequently asked questions

What is B2B market sizing?
B2B market sizing estimates how many companies and buyers could purchase what you sell, usually broken down by segment. Counting real companies and contacts that match your filters gives a figure you can check, instead of a share of an analyst estimate.
How do I count companies by industry?
Send an industry_linkedin value to /v1/search/companies and read total_count from the response. Get the exact industry strings from /v1/search/meta/industry_linkedin first, since filters match exact values.
How do I size a sales territory with data?
Count companies and buyers per state or region, then group areas until each territory has a similar number of accounts. Decide up front whether territories follow company headquarters or where the buyer is based.
Does the Prospector count endpoint count companies or people?
People. /v1/search/prospector/count returns how many contacts match your contact and company filters. For company counts, read total_count from /v1/search/companies.
How often should I re-run market counts?
Quarterly works for planning, and before any territory or budget decision. Save the filters and dates with each run so you can compare one period with the next.

Get your API key.

Sign up, make your first call and start building your lists.

We’ll email you a link to log in. · Read the docs