> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DiscoLike: Count

> Count the companies that match DiscoLike discovery filters (industry, location, size, technology, phrases) for free before pulling the list.

Count the companies that match DiscoLike discovery filters (industry, location, size, technology, phrases) for free before pulling the list.

> [!NOTE]
>
> Tool ID: `discolike_count`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'discolike_count',
  {
    "phrase_match": [
      "example"
    ],
    "negate_phrase_match": [
      "example"
    ],
    "subdomain": [
      "example.com"
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run discolike_count --input '{
  "phrase_match": [
    "example"
  ],
  "negate_phrase_match": [
    "example"
  ],
  "subdomain": [
    "example.com"
  ]
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "count": 123
  }
}
```

Use `deepline describe discolike_count --json` for the latest machine-readable contract.

## Input reference

Estimate the number of matching business profiles based on search criteria.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.phrase_match` | `array` | No | — | Exact text fragments to search for in site content. Up to 20 fragments, each at least 3 characters. Maximum items: 20. |
| `payload.negate_phrase_match` | `array` | No | — | Exact text fragments to exclude from results. Up to 20 fragments, each at least 3 characters. Maximum items: 20. |
| `payload.subdomain` | `array` | No | — | Limit results to specified subdomains. Up to 20, each at least 3 characters. Maximum items: 20. |
| `payload.negate_subdomain` | `array` | No | — | Exclude specified subdomains from results. Up to 20, each at least 3 characters. Maximum items: 20. |
| `payload.tech_stack` | `array` | No | — | Filter to companies using specified vendor domains (up to 20). Maximum items: 20. |
| `payload.negate_tech_stack` | `array` | No | — | Exclude companies using specified vendor domains (up to 20). Maximum items: 20. |
| `payload.category` | `array` | No | — | Filter by industry category (ANY-OF. prefix + to require a category). Valid values: ACCOUNTING, ADVERTISING\_AND\_MARKETING, AGRICULTURE\_AND\_NATURAL\_RESOURCES, ALCOHOL\_AND\_TOBACCO, AUTOMOTIVE, BIG\_DATA\_AND\_ANALYTICS, BIOTECHNOLOGY, BLOCKCHAIN\_AND\_CRYPTOCURRENCY, BUSINESS\_PRODUCTS\_AND\_SERVICES, CLOUD\_COMPUTING, COMPUTER\_HARDWARE\_AND\_SEMICONDUCTORS, CONGLOMERATES\_SHELL\_AND\_HOLDING\_COMPANIES, CONSTRUCTION, CONSUMER\_PRODUCTS, CONSUMER\_SERVICES, CYBERSECURITY, DEFENSE\_AND\_AEROSPACE, E-COMMERCE, See the live schema for the complete constraint. |
| `payload.negate_category` | `array` | No | — | Exclude specified industry categories. Valid values: ACCOUNTING, ADVERTISING\_AND\_MARKETING, AGRICULTURE\_AND\_NATURAL\_RESOURCES, ALCOHOL\_AND\_TOBACCO, AUTOMOTIVE, BIG\_DATA\_AND\_ANALYTICS, BIOTECHNOLOGY, BLOCKCHAIN\_AND\_CRYPTOCURRENCY, BUSINESS\_PRODUCTS\_AND\_SERVICES, CLOUD\_COMPUTING, COMPUTER\_HARDWARE\_AND\_SEMICONDUCTORS, CONGLOMERATES\_SHELL\_AND\_HOLDING\_COMPANIES, CONSTRUCTION, CONSUMER\_PRODUCTS, CONSUMER\_SERVICES, CYBERSECURITY, DEFENSE\_AND\_AEROSPACE, E-COMMERCE, EDUCATION, ENERGY, ENGINEERING, See the live schema for the complete constraint. |
| `payload.min_digital_footprint` | `integer` | No | — | Minimum digital footprint score (0-800). Default 25. Minimum: 0. Maximum: 800. |
| `payload.max_digital_footprint` | `integer` | No | — | Maximum digital footprint score (0-800). Default 800. Minimum: 0. Maximum: 800. |
| `payload.state` | `array` | No | — | Filter by ISO 3166-2 state codes or names (up to 100), listed at [https://docs.discolike.com/states/](https://docs.discolike.com/states/). Requires exactly one country value, which may be a region alias. The state is then resolved against every country the alias covers. A value that resolves under none is rejected. Maximum items: 100. |
| `payload.negate_state` | `array` | No | — | Exclude specified states from results (up to 100). Same format and country rules as state. Maximum items: 100. |
| `payload.country` | `array` | No | — | ISO-3166-1 alpha-2 country codes (e.g., US, GB, DE) or region aliases: EU, LATAM, MENA, APAC, NORDICS, DACH, BENELUX, GCC, ASEAN, CEE, ANZ, EUROPE, ASIA, AFRICA, NORTH\_AMERICA, SOUTH\_AMERICA, OCEANIA, ANTARCTICA. |
| `payload.negate_country` | `array` | No | — | Exclude specified countries from results. Accepts same codes and region aliases as country. |
| `payload.start_date` | `string` | No | — | Minimum company start date (YYYY-MM-DD) or range (YYYY-MM-DD,YYYY-MM-DD). |
| `payload.redirect` | `boolean` | No | `false` | Include domains that redirect to another domain. |
| `payload.social` | `array` | No | — | Filter by social platform presence. Valid values: facebook, instagram, linkedin, pinterest, threads, tiktok, twitter, x, yelp, youtube, googleplay, applestore, amazon, vk, bluesky, xing. Note: 'twitter' is an alias for 'x'. |
| `payload.negate_social` | `array` | No | — | Exclude companies with specified social profiles. Filter by social platform presence. Valid values: facebook, instagram, linkedin, pinterest, threads, tiktok, twitter, x, yelp, youtube, googleplay, applestore, amazon, vk, bluesky, xing. Note: 'twitter' is an alias for 'x'. |
| `payload.language` | `array` | No | — | Filter by site language. Valid values: af (Afrikaans), ar (Arabic), az (Azerbaijani), bg (Bulgarian), bn (Bengali), bs (Bosnian), ca (Catalan), cs (Czech), da (Danish), de (German), el (Greek), en (English), eo (Esperanto), es (Spanish), et (Estonian), eu (Basque), fa (Persian), fi (Finnish), fr (French), ga (Irish), gl (Galician), he (Hebrew), hi (Hindi), hr (Croatian), hu (Hungarian), hy (Armenian), id (Indonesian), is (Icelandic), it (Italian), ja (Japanese), ka (Georgian), ko (Korean), ky See the live schema for the complete constraint. |
| `payload.negate_language` | `array` | No | — | Exclude specified languages from results. Filter by site language. Valid values: af (Afrikaans), ar (Arabic), az (Azerbaijani), bg (Bulgarian), bn (Bengali), bs (Bosnian), ca (Catalan), cs (Czech), da (Danish), de (German), el (Greek), en (English), eo (Esperanto), es (Spanish), et (Estonian), eu (Basque), fa (Persian), fi (Finnish), fr (French), ga (Irish), gl (Galician), he (Hebrew), hi (Hindi), hr (Croatian), hu (Hungarian), hy (Armenian), id (Indonesian), is (Icelandic), it (Italian), ja See the live schema for the complete constraint. |
| `payload.employee_range` | `string` | No | — | Filter by employee count range. Format: 'min,max' (e.g., '1,5000'). Maps to buckets: 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+. |
| `payload.revenue_range` | `string` | No | — | Filter by company revenue. Format: 'min,max' in raw numbers (e.g., '1000000,10000000' for 1M-10M). Maps to buckets: 1B. Unknown-revenue domains (N/A) are included when the range covers the \<1M bucket. |
| `payload.business_model` | `array` | No | — | Filter by business model label. Multi-select with OR semantics. Valid values: B2B, B2C, B2G, G2B, G2C, D2C, C2C, C2B. |
| `payload.negate_business_model` | `array` | No | — | Exclude domains with these business model labels. Filter by business model label. Multi-select with OR semantics. Valid values: B2B, B2C, B2G, G2B, G2C, D2C, C2C, C2B. |
| `payload.exclude_leadgen` | `boolean` | No | `false` | Exclude suspected lead generation sites. Filters out profiles with score \<= 25 that also lack phone, email, and social media presence. Defaults to false for counts so they are not narrower than the filters given. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe discolike_count --json`.

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response for count endpoints. |
| `result.data.count` | `integer` | Yes | — | Number of records matching the query |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response for count endpoints.",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of records matching the query"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.