> ## 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.

# Forager: Organization Search Totals

> Count the companies that match industry, location, headcount, revenue and other filters. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Count the companies that match industry, location, headcount, revenue and other filters.

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

## 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(
  'forager_organization_search_totals',
  {
    "page": 123,
    "organization_ids": [
      123
    ],
    "description": "Example description"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute forager_organization_search_totals --input '{
  "page": 123,
  "organization_ids": [
    123
  ],
  "description": "Example description"
}' --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": {
    "total_search_results": 123
  }
}
```

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

## Input reference

Organization search request serializer.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.page` | `integer` | No | — | — |
| `payload.organization_ids` | `array` | No | — | To get a list of IDs use Organizations lookup endpoint . |
| `payload.description` | `string` | No | — | — |
| `payload.locations` | `array` | No | — | To get a list of IDs use Locations lookup endpoint . |
| `payload.industries` | `array` | No | — | To get a list of IDs use Industries lookup endpoint . |
| `payload.industries_exclude` | `array` | No | — | To get a list of IDs use Industries lookup endpoint . |
| `payload.keywords` | `array` | No | — | To get a list of IDs use Organization keywords lookup endpoint . |
| `payload.employees_start` | `integer` | No | — | — |
| `payload.employees_end` | `integer` | No | — | — |
| `payload.founded_date_start` | `string` | No | — | Format: `date`. |
| `payload.founded_date_end` | `string` | No | — | Format: `date`. |
| `payload.revenue_start` | `integer` | No | — | — |
| `payload.revenue_end` | `integer` | No | — | — |
| `payload.domains` | `array` | No | — | — |
| `payload.domain_rank_start` | `integer` | No | — | — |
| `payload.domain_rank_end` | `integer` | No | — | — |
| `payload.domain_traffic_start` | `integer` | No | — | — |
| `payload.domain_traffic_end` | `integer` | No | — | — |
| `payload.web_technologies` | `array` | No | — | To get a list of IDs use Organization keywords lookup endpoint . |
| `payload.linkedin_public_identifiers` | `array` | No | — | LinkedIn organization "Public identifier/Slug/ID" - "linkedin.com/company/!slug!/". |
| `payload.funding_types` | `array` | No | — | — |
| `payload.funding_total_start` | `integer` | No | — | — |
| `payload.funding_total_end` | `integer` | No | — | — |
| `payload.funding_event_date_featured_start` | `string` | No | — | Format: `date`. |
| `payload.funding_event_date_featured_end` | `string` | No | — | Format: `date`. |
| `payload.job_post_title` | `string` | No | — | This field supports a boolean text search query. |
| `payload.job_post_description` | `string` | No | — | This field supports a boolean text search query. |
| `payload.job_post_is_remote` | `boolean` | No | — | — |
| `payload.job_post_is_active` | `boolean` | No | — | — |
| `payload.job_post_date_featured_start` | `string` | No | — | Format: `date`. |
| `payload.job_post_date_featured_end` | `string` | No | — | Format: `date`. |
| `payload.job_post_locations` | `array` | No | — | To get a list of IDs use Locations lookup endpoint . |
| `payload.job_post_locations_exclude` | `array` | No | — | To get a list of IDs use Locations lookup endpoint . |
| `payload.simple_event_source` | `"product_hunt" \| "form_c_sec_gov" \| "form_d_sec_gov"` | No | — | \* `product_hunt` - Product Hunt \* `form_c_sec_gov` - Form C sec.gov \* `form_d_sec_gov` - Form D sec.gov Allowed: `product_hunt`, `form_c_sec_gov`, `form_d_sec_gov`. |
| `payload.simple_event_reason` | `"report_released" \| "promoted_on_site"` | No | — | \* `report_released` - Report released \* `promoted_on_site` - Promoted on site Allowed: `report_released`, `promoted_on_site`. |
| `payload.simple_event_date_featured_start` | `string` | No | — | Format: `date`. |
| `payload.simple_event_date_featured_end` | `string` | No | — | Format: `date`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Organization search request serializer.",
    "properties": {
      "page": {
        "type": "integer"
      },
      "organization_ids": {
        "type": "array",
        "description": "To get a list of IDs use Organizations lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "description": {
        "type": "string"
      },
      "locations": {
        "type": "array",
        "description": "To get a list of IDs use Locations lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "industries": {
        "type": "array",
        "description": "To get a list of IDs use Industries lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "industries_exclude": {
        "type": "array",
        "description": "To get a list of IDs use Industries lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "keywords": {
        "type": "array",
        "description": "To get a list of IDs use Organization keywords lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "employees_start": {
        "type": "integer"
      },
      "employees_end": {
        "type": "integer"
      },
      "founded_date_start": {
        "type": "string",
        "format": "date"
      },
      "founded_date_end": {
        "type": "string",
        "format": "date"
      },
      "revenue_start": {
        "type": "integer"
      },
      "revenue_end": {
        "type": "integer"
      },
      "domains": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "domain_rank_start": {
        "type": "integer"
      },
      "domain_rank_end": {
        "type": "integer"
      },
      "domain_traffic_start": {
        "type": "integer"
      },
      "domain_traffic_end": {
        "type": "integer"
      },
      "web_technologies": {
        "type": "array",
        "description": "To get a list of IDs use Organization keywords lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "linkedin_public_identifiers": {
        "type": "array",
        "description": "LinkedIn organization \"Public identifier/Slug/ID\" - \"linkedin.com/company/!slug!/\".",
        "items": {
          "type": "string"
        }
      },
      "funding_types": {
        "type": "array",
        "items": {
          "type": "string",
          "description": "* `angel` - Angel * `convertible_note` - Convertible Note * `corporate_round` - Corporate Round * `debt_financing` - Debt Financing * `equity_crowdfunding` - Equity Crowdfunding * `grant` - Grant * `initial_coin_offering` - Initial coin offering (ICO) * `non_equity_assistance` - Non-Equity Assistance * `post_ipo_debt` - Post-IPO Debt * `post_ipo_equity` - Post-IPO Equity * `post_ipo_secondary` - Post-IPO Secondary * `pre_seed` - Pre-Seed * `private_equity` - Private Equity * `product_crowdfunding` - Product Crowdfunding * `secondary_market` - Secondary Market * `seed` - Seed * `series_a` - Series A * `series_b` - Series B * `series_c` - Series C * `series_d` - Series D * `series_e` - Series E * `series_f` - Series F * `series_g` - Series G * `series_h` - Series H * `series_i` - Series I * `series_j` - Series J * `series_unknown` - Venture - Series Unknown * `undisclosed` - Undisclosed",
          "enum": [
            "angel",
            "convertible_note",
            "corporate_round",
            "debt_financing",
            "equity_crowdfunding",
            "grant",
            "initial_coin_offering",
            "non_equity_assistance",
            "post_ipo_debt",
            "post_ipo_equity",
            "post_ipo_secondary",
            "pre_seed",
            "private_equity",
            "product_crowdfunding",
            "secondary_market",
            "seed",
            "series_a",
            "series_b",
            "series_c",
            "series_d",
            "series_e",
            "series_f",
            "series_g",
            "series_h",
            "series_i",
            "series_j",
            "series_unknown",
            "undisclosed"
          ]
        }
      },
      "funding_total_start": {
        "type": "integer"
      },
      "funding_total_end": {
        "type": "integer"
      },
      "funding_event_date_featured_start": {
        "type": "string",
        "format": "date"
      },
      "funding_event_date_featured_end": {
        "type": "string",
        "format": "date"
      },
      "job_post_title": {
        "type": "string",
        "description": "This field supports a boolean text search query."
      },
      "job_post_description": {
        "type": "string",
        "description": "This field supports a boolean text search query."
      },
      "job_post_is_remote": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "job_post_is_active": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "job_post_date_featured_start": {
        "type": "string",
        "format": "date"
      },
      "job_post_date_featured_end": {
        "type": "string",
        "format": "date"
      },
      "job_post_locations": {
        "type": "array",
        "description": "To get a list of IDs use Locations lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "job_post_locations_exclude": {
        "type": "array",
        "description": "To get a list of IDs use Locations lookup endpoint .",
        "items": {
          "type": "integer"
        }
      },
      "simple_event_source": {
        "type": "string",
        "description": "* `product_hunt` - Product Hunt * `form_c_sec_gov` - Form C sec.gov * `form_d_sec_gov` - Form D sec.gov",
        "enum": [
          "product_hunt",
          "form_c_sec_gov",
          "form_d_sec_gov"
        ]
      },
      "simple_event_reason": {
        "type": "string",
        "description": "* `report_released` - Report released * `promoted_on_site` - Promoted on site",
        "enum": [
          "report_released",
          "promoted_on_site"
        ]
      },
      "simple_event_date_featured_start": {
        "type": "string",
        "format": "date"
      },
      "simple_event_date_featured_end": {
        "type": "string",
        "format": "date"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Organization search totals response serializer. |
| `result.data.total_search_results` | `integer` | Yes | — | Minimum: 0. |
| `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": "Organization search totals response serializer.",
        "properties": {
          "total_search_results": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "total_search_results"
        ],
        "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

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