# searchCompany

**Identifier:** `apollo_searchCompany`

**Provider:** [Apollo.io](https://kirha.com/providers/apollo.md)

Search for companies in Apollo with filters like name, location, revenue. If you're looking for a specific company, use the enrichCompany tool instead with a getCompanyDomainUrl to find the company domainUrl if you don't already have it.

## Run it with the CLI

```bash
kirha tools run apollo_searchCompany \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "apollo_searchCompany",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "companyName": {
      "description": "Filter by company name (partial matches accepted)",
      "type": "string"
    },
    "employeeRanges": {
      "properties": {
        "max": {
          "type": "number"
        },
        "min": {
          "type": "number"
        }
      },
      "required": [
        "min",
        "max"
      ],
      "type": "object"
    },
    "excludeLocations": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "hiringForJobTitles": {
      "description": "Buying signal: companies with active job postings matching these titles (e.g., 'sales manager', 'data engineer'). Indicates growth/budget.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "jobPostedAfter": {
      "description": "Buying signal: only companies that posted a job on/after this date (YYYY-MM-DD).",
      "type": "string"
    },
    "jobPostedBefore": {
      "description": "Only companies that posted a job on/before this date (YYYY-MM-DD).",
      "type": "string"
    },
    "keywords": {
      "description": "Keywords associated with companies (e.g., 'mining', 'consulting', 'ai', 'saas' etc.)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "latestFundingAfter": {
      "description": "Buying signal: only companies whose most recent funding round is on/after this date (YYYY-MM-DD).",
      "type": "string"
    },
    "latestFundingBefore": {
      "description": "Latest funding round on/before this date (YYYY-MM-DD).",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "description": "When targeting a specific single company to compose with other tools, prefer getCompanyDomainUrl to get its domainUrl (if missing), then use enrichCompany, searchPeople or peopleEnrichment tools. Avoid searchCompany for this case.",
      "maximum": 10,
      "minimum": 1,
      "type": "number"
    },
    "locations": {
      "description": "Company headquarters locations (cities, states, countries)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "maxActiveJobPostings": {
      "description": "Maximum number of currently active job postings.",
      "type": "number"
    },
    "maxRevenue": {
      "type": "number"
    },
    "maxTotalFunding": {
      "type": "number"
    },
    "minActiveJobPostings": {
      "description": "Buying signal: minimum number of currently active job postings.",
      "type": "number"
    },
    "minRevenue": {
      "type": "number"
    },
    "minTotalFunding": {
      "type": "number"
    },
    "usesTechnologies": {
      "description": "Tech-stack signal: companies currently using any of these technologies (Apollo tech uids/slugs, e.g., 'salesforce', 'aws', 'kubernetes').",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "companies": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "alexaRanking": {
            "type": "number"
          },
          "angellistUrl": {
            "type": "string"
          },
          "apolloCompanyId": {
            "type": "string"
          },
          "blogUrl": {
            "type": "string"
          },
          "crunchbaseUrl": {
            "type": "string"
          },
          "facebookUrl": {
            "type": "string"
          },
          "foundedYear": {
            "type": "number"
          },
          "languages": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "linkedinUid": {
            "type": "string"
          },
          "linkedinUrl": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "primaryDomain": {
            "description": "Primary domain is not guaranteed, if you are looking for the domainUrl, prefer getCompanyDomainUrl to find it.",
            "type": "string"
          },
          "primaryPhone": {
            "additionalProperties": false,
            "properties": {
              "number": {
                "type": "string"
              },
              "sanitizedNumber": {
                "type": "string"
              },
              "source": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "publiclyTradedExchange": {
            "type": "string"
          },
          "publiclyTradedSymbol": {
            "type": "string"
          },
          "sanitizedPhone": {
            "type": "string"
          },
          "twitterUrl": {
            "type": "string"
          },
          "websiteUrl": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "ids": {
      "description": "Apollo company IDs of the results, for getCompanyNews or getCompany",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "companies",
    "ids"
  ],
  "type": "object"
}
```

## Related tools

Other Apollo.io tools that this tool refers to, or that refer to it.

- [`getCompany`](https://kirha.com/providers/apollo/getCompany.md)
- [`getCompanyNews`](https://kirha.com/providers/apollo/getCompanyNews.md)
- [`enrichCompany`](https://kirha.com/providers/apollo/enrichCompany.md)
- [`getCompanyJobPostings`](https://kirha.com/providers/apollo/getCompanyJobPostings.md)
- [`getCompanyDomainUrl`](https://kirha.com/providers/apollo/getCompanyDomainUrl.md)
- [`searchPeople`](https://kirha.com/providers/apollo/searchPeople.md)

-----

[All Apollo.io tools](https://kirha.com/providers/apollo.md) · [< Back to tools list](https://kirha.com/tools.md)