# Company Services Finder (`datascrapers/company-service-finder`) Actor

A project to find company services.

- **URL**: https://apify.com/datascrapers/company-service-finder.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 dataset items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Company Services Finder** creates a structured dataset of company websites and the services listed on those sites. Each dataset item is one company and contains `website` plus a `services` array. Query the source with a US state, a city list, and service `queries`. A live run can search Google, Google Maps, or both. The built-in California sample, Los Angeles and San Francisco with the default accounting queries, returns the saved rows without calling a model. Retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, or XML.

[![Company Services Finder — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/company-service-finder/company-service-finder-value-demo.gif)](https://apify.com/datascrapers/company-service-finder)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | Company websites found from the query list |
| Record unit | One company website |
| Input methods | `state_abbreviation`, `cities_to_do`, `queries` |
| Main identifiers | `website` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run, or the saved California sample |
| Pricing | $2.00 per 1,000 `dataset-item` events. Platform usage is billed separately. |

### Coverage and available records

Live runs accept `openai`, `anthropic`, or `groq` as `ai_company`, a model name, and the matching API key as an input or environment variable. Keys are not written into the dataset. `google_search` and `google_maps_search` can be combined.

The review fixture is exact: state `CA`, cities `Los Angeles` and `San Francisco`, and the five default accounting queries. That input returns the saved rows. Any other city list follows the live search path and needs a provider key.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| website | string | no | Company site. Deduplication key. | https://www.eisneramper.com |
| services | array of strings | yes | Service labels taken from the site | Audit Services |

### Example dataset record

Saved row from the California accounting sample. The service list on the site is longer. These labels are the first entries stored for that website.

```json
{
  "website": "https://www.eisneramper.com",
  "services": [
    "Audit Services",
    "SOC | System & Organization Controls",
    "Artificial Intelligence Consulting",
    "Risk Advisory",
    "Internal Audit Services",
    "Cyber Risk",
    "Technical Accounting"
  ]
}
```

### Query and input reference

| Field | Type | Description |
|---|---|---|
| state_abbreviation | string | US state code. Default `CA`. |
| cities_to_do | array of strings | Cities to search. |
| queries | array of strings | Service queries, such as `cpa firm`. |
| google_search | boolean | Search Google. Default `true`. |
| google_maps_search | boolean | Search Google Maps. Default `false`. |
| ai_company | string | `openai`, `anthropic`, or `groq`. |
| ai_model | string | Model name for a live run. |
| openai_api_key, anthropic_api_key, groq_api_key | string | Provider key for a live run. Not required for the California sample. |

### Retrieve the data through the API

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR-APIFY-TOKEN")
run = client.actor("datascrapers/company-service-finder").call(run_input={
    "state_abbreviation": "CA",
    "cities_to_do": ["Los Angeles", "San Francisco"],
    "queries": [
        "cpa firm",
        "accounting firm",
        "outsourced accounting",
        "outsourced cfo",
        "outsourced controller",
    ],
    "google_search": True,
    "google_maps_search": False,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["website"], len(item.get("services") or []))
```

### Data quality and record handling

Deduplicate on `website`. Service labels are strings copied from the page reading. The same firm can list overlapping service names. The California sample is a stored set, not a live crawl, so those rows do not change until the fixture file changes. Live runs depend on the search engine and the model, and a page with no readable services can be absent.

### Pricing and cost examples

| Event | When it fires | Free | Bronze | Silver | Gold |
|---|---|---:|---:|---:|---:|
| dataset-item | Every company saved | $2.00 / 1,000 | $1.90 / 1,000 | $1.80 / 1,000 | $1.70 / 1,000 |

Platinum and Diamond use the Gold rate. Platform usage is billed separately, including a live search that calls a model.

1,000 saved companies cost $2.00 in event charges on Free and $1.70 on Gold, plus platform usage.

### Limitations and responsible data use

Service labels are whatever the page or the model returned. They are not a certified catalog. Do not send provider API keys in a shared dataset export. Use the rows to compare public service lists. Do not treat a label as an offer or a price.

### Dataset questions

#### What is one record?

One company website and its service labels.

#### Which input returns the saved sample?

State `CA`, cities Los Angeles and San Francisco, and the five default accounting queries.

#### Which field is the key?

`website`.

### Related datasets from Data Scrapers

- [Clutch Scraper](https://apify.com/datascrapers/clutch-scraper)
- [Europages Scraper](https://apify.com/datascrapers/europages-scraper)
- [BBB Scraper](https://apify.com/datascrapers/bbb-scraper)
- [Dice Scraper](https://apify.com/datascrapers/dice-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `state_abbreviation` (type: `string`):

The abbreviation of the state to search in (e.g., 'CA' for California).

## `cities_to_do` (type: `array`):

A list of cities to search for companies in.

## `queries` (type: `array`):

A list of service queries to search for.

## `google_search` (type: `boolean`):

Whether to perform Google search for the services.

## `google_maps_search` (type: `boolean`):

Whether to perform Google Maps search for the services.

## `ai_company` (type: `string`):

Select which AI Company to use for extracting company services.

## `ai_model` (type: `string`):

The AI model to use for extracting company services. (llama-3.3-70b-versatile, gpt-4o, claude-3-5-sonnet-latest etc.)

## `openai_api_key` (type: `string`):

Your OpenAI API key (required if using OpenAI model).

## `anthropic_api_key` (type: `string`):

Your Anthropic API key (required if using Anthropic model).

## `groq_api_key` (type: `string`):

Your Groq API key (required if using Groq model).

## Actor input object example

```json
{
  "state_abbreviation": "CA",
  "cities_to_do": [
    "Los Angeles",
    "San Francisco"
  ],
  "queries": [
    "cpa firm",
    "accounting firm",
    "outsourced accounting",
    "outsourced cfo",
    "outsourced controller"
  ],
  "google_search": true,
  "google_maps_search": false,
  "ai_company": "openai",
  "ai_model": "gpt-4o",
  "openai_api_key": ""
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runStats` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "openai_api_key": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/company-service-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "openai_api_key": "" }

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/company-service-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "openai_api_key": ""
}' |
apify call datascrapers/company-service-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/company-service-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QbP85w5rsPVyiZvqE/builds/lXCx8BjBiuVyYWo5J/openapi.json
