> ## 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 a set of website, technology and category filters before pulling the full list. Includes SDK V2 examples, schemas, and cost.

Count the companies that match a set of website, technology and category filters before pulling the full 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 tools execute discolike_count --input '{
  "phrase_match": [
    "example"
  ],
  "negate_phrase_match": [
    "example"
  ],
  "subdomain": [
    "example.com"
  ]
}' --json
```

## 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 allowed. |
| `payload.negate_phrase_match` | `array` | No | — | Exact text fragments to exclude from results. Up to 20 fragments allowed. |
| `payload.subdomain` | `array` | No | — | Limit results to specified subdomains. Maximum 10 allowed. |
| `payload.negate_subdomain` | `array` | No | — | Exclude specified subdomains from results. Maximum 10 allowed. |
| `payload.tech_stack` | `array` | No | — | Filter to companies using specified vendor domains (up to 20). |
| `payload.negate_tech_stack` | `array` | No | — | Exclude companies using specified vendor domains (up to 20). |
| `payload.category` | `array` | No | — | Filter by industry category. Valid values: ACCOUNTING (Professional services related to financial record-keeping, analysis, reporting, auditing, tax, and related advisory/consulting services for businesses and individuals. Includes large multidisciplinary accounting networks and the Big Four (Deloitte, PwC, EY, KPMG), even when they also provide broader consulting services.), ADVERTISING\_AND\_MARKETING (The creation and execution of promotional strategies for products, services, or brands, See the live schema for the complete constraint. |
| `payload.negate_category` | `array` | No | — | Exclude specified industry categories. Valid values: ACCOUNTING (Professional services related to financial record-keeping, analysis, reporting, auditing, tax, and related advisory/consulting services for businesses and individuals. Includes large multidisciplinary accounting networks and the Big Four (Deloitte, PwC, EY, KPMG), even when they also provide broader consulting services.), ADVERTISING\_AND\_MARKETING (The creation and execution of promotional strategies for products, services, or See the live schema for the complete constraint. |
| `payload.min_digital_footprint` | `integer` | No | `50` | Minimum digital footprint score (0-800). Default 50. Minimum: 0. Maximum: 800. |
| `payload.max_digital_footprint` | `integer` | No | `800` | Maximum digital footprint score (0-800). Default 800. Minimum: 0. Maximum: 800. |
| `payload.state` | `array` | No | — | Filter by state codes. Not supported with multiple countries. |
| `payload.negate_state` | `array` | No | — | Exclude specified states from results. |
| `payload.country` | `array` | No | — | Filter by ISO-3166-1 alpha-2 country codes (e.g., US, GB, DE). Also accepts region aliases: EU, LATAM, MENA, APAC, NORDICS, DACH, BENELUX, GCC, ASEAN, CEE, ANZ. |
| `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. 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. Note: 'twitter' is an alias for 'x'. |
| `payload.language` | `array` | No | — | Filter by site language. Valid values: ar (Arabic), az (Azerbaijani), bg (Bulgarian), bn (Bengali), 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), hu (Hungarian), id (Indonesian), it (Italian), ja (Japanese), ko (Korean), ky (Kyrgyz), lt (Lithuanian), lv (Latvian), ms (Malay), nb (Norwegian Bokmål), nl (Dutch), pb See the live schema for the complete constraint. |
| `payload.negate_language` | `array` | No | — | Exclude specified languages from results. Filter by site language. Valid values: ar (Arabic), az (Azerbaijani), bg (Bulgarian), bn (Bengali), 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), hu (Hungarian), id (Indonesian), it (Italian), ja (Japanese), ko (Korean), ky (Kyrgyz), lt (Lithuanian), lv (Latvian), ms 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 | `true` | Exclude suspected lead generation sites. Filters out profiles with score \<= 25 that also lack phone, email, and social media presence. |

> [!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

* [DiscoLike provider guide](https://deepline.com/docs/providers/discolike/guide.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.