Skip to content

Count API

Get a count of companies matching your search criteria before running a full Discover query. Use this to preview result volume and refine filters before committing to a full search.

GET https://api.discolike.com/v1/count
ParameterDescription
phrase_matchExact text to search (up to 20 phrases, each at least 3 characters)
negate_phrase_matchExact text to exclude (up to 20, each at least 3 characters)
tech_stackVendor domains to include (up to 20)
negate_tech_stackVendor domains to exclude (up to 20)
subdomainLimit results to these subdomains (up to 20, each at least 3 characters)
negate_subdomainSubdomains to exclude (up to 20, each at least 3 characters)
ParameterDescription
countryISO-3166-1 alpha-2 country codes (e.g., US, GB, DE). Also accepts region codes that auto-expand to member countries: ANZ, APAC, ASEAN, BENELUX, CEE, DACH, EMEA, EU, GCC, LATAM, MENA, NORDICS.
negate_countryCountries to exclude
stateState/province filter. Accepts ISO 3166-2 codes (e.g. CA, BY) or full names (e.g. California, Bayern). Requires exactly one country value: passing more than one rejects state. That single value may be a region alias (e.g. EU, APAC, DACH), in which case states are resolved against every country the alias expands to. Supported for 120+ countries; see States.
negate_stateStates to exclude (same format and country rule as state, up to 100)
geoCircular search area written lat,lon or lat,lon,radius (e.g. 30.27,-97.74, 30.27,-97.74,30mi). Repeatable: pass it once per circle. The radius is a number optionally suffixed with km or mi, a bare number meaning kilometres; it defaults to 50km and may not exceed 1000km
bboxBounding box written min_lat,min_lon,max_lat,max_lon. Repeatable: pass it once per box. Longitudes may wrap the antimeridian by setting min_lon above max_lon
latLatitude of a search centre. Must be supplied together with lon
lonLongitude of a search centre. Must be supplied together with lat
radiusSearch radius around lat/lon: a number optionally suffixed with km or mi (50, 50km, 30mi). A bare number is kilometres. Defaults to 50km, maximum 1000km

Every geo circle, every bbox and the circle formed by lat/lon/radius are OR’d together, up to 10 shapes in total, and the combined area is AND’d with the rest of the filters.

ParameterDescription
min_digital_footprintMinimum score (0-800, default: 0 — counts include every score unless you set a floor). Must not exceed max_digital_footprint. Capped at the highest score reachable by a company founded on start_date
max_digital_footprintMaximum score (0-800, default: 800)
start_dateCompany start date (YYYY-MM-DD or range YYYY-MM-DD,YYYY-MM-DD)
categoryIndustry filter (see Industries)
negate_categoryIndustries to exclude
sub_industrySecond-level industry label, scoped to a category. Accepts a bare label (ROOFING) or a qualified key (CONSTRUCTION/ROOFING), case-insensitive, up to 50 values. A bare label whose parent is unambiguous adds that parent to category. See Sub-Industries for all 217 values.
negate_sub_industrySub-industries to exclude. Same label format, but validated for taxonomy membership only: it never adds to or is checked against category, and a bare label that exists under several categories excludes it under all of them.
employee_rangeEmployee count range as min,max (e.g., 1,5000). Buckets: 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+
revenue_rangeCompany revenue range as min,max in raw integers (e.g., 1000000,10000000). Use + on max for unbounded. Buckets: <1M, 1-10M, 10-100M, 100M-1B, >1B. N/A swept in when range covers <1M
business_modelBusiness-model labels: B2B, B2C, B2G, G2B, G2C, D2C, C2C, C2B (OR semantics)
negate_business_modelBusiness-model labels to exclude
ParameterDescription
socialRequired social presence: facebook, linkedin, twitter, instagram, etc.
negate_socialSocial profiles to exclude
languageSite language 2-letter codes (see Languages)
negate_languageLanguages to exclude
redirectInclude redirecting domains (0 or 1, default: 0)
exclude_leadgenExclude suspected lead generation sites; filters out low-score profiles that also lack phone, email, and social media presence (default: false — unlike Discover, counts include them unless you opt in)

Count applies the same limits as Discover for the parameters it shares; see the Discover validation table. Malformed employee_range or revenue_range values are silently dropped rather than rejected.

FieldTypeDescription
countIntegerNumber of matching profiles
Terminal window
curl "https://api.discolike.com/v1/count?phrase_match=enterprise+software&country=US" \
-H "x-discolike-key: API_KEY"

Sizing several metro areas at once:

Terminal window
curl "https://api.discolike.com/v1/count?category=CONSTRUCTION&geo=30.27,-97.74,30mi&geo=32.78,-96.80,30mi" \
-H "x-discolike-key: API_KEY"
{
"count": 1542
}