# Company Office Locations by Domain (`b2bdata/office-locations`) Actor

Office locations by domain: give company domains, get one row per company with the office addresses on its company page (country, city, state, postal code, street) and the headquarters flagged. Free plan: 100 domains per run. Pay per company, misses free. No login or cookies.

- **URL**: https://apify.com/b2bdata/office-locations.md
- **Developed by:** [Open Enrich](https://apify.com/b2bdata) (community)
- **Categories:** Lead generation, Marketing, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.10 / 1,000 company locations delivereds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Office Locations by Domain

Company office locations by domain: give a list of company domains, get one row per company with the office addresses listed on its company page (country, city, state, postal code, street) and the headquarters flagged. No login, no cookies. You pay only for a company row you receive.

**No login | Domains, URLs or emails in | One company per row, every listed office inside | Shared domains skipped, never guessed | Unknown domains = free | JSON/CSV export**

> **Domain in, offices out.** You hold a domain in a CRM or a target list and need to know where the company has offices: for territory routing, field sales, event planning or market-entry research. This actor returns the addresses the company lists on its public company page, with the headquarters first. It does not map every site a company owns: it is the list the company chose to publish, which can be a single address.

[See all actors by b2bdata](https://apify.com/b2bdata)

***

### 💳 Pricing and plans

One event, `company-locations`, charged once per company row delivered, whether the company lists 1 office or 100. Prices per 1,000 companies (set on the Pricing tab):

| Event | When it is charged | Free plan | Gold plan |
|---|---|---|---|
| `company-locations` | A company row with its office list is delivered to your dataset | $1.496 | $1.096 |

Bronze and Silver prices are on the Pricing tab. Higher Apify plans only lower the price. Unknown domains, skipped domains, companies whose page lists no address, failed lookups, unreadable entries and notices are free. An empty run costs only the $0.0005 start fee.

**Plan-credit math.** The free plan's $5 monthly credit covers about 3,340 companies at the Free price.

#### Success-only billing

You are charged only for a company row you receive. A domain with no company on file gets one free notice row (`reason: "unknown_domain"`). A domain that several unrelated companies share, with no clear owner, gets one free notice row (`reason: "no_confident_match"`). A company with no company page (`no_company_page`), a page that cannot be found (`page_not_found`) or a page with no usable address (`no_locations_listed`) gets one free notice row. An entry that is not a domain, a repeat, or a lookup that fails is listed in `MISSES` with its position and a reason and costs nothing.

#### The free plan

Free Apify accounts get up to 100 domains looked up per run, and as many runs as their Apify credit covers. Nothing is stored on our side. When a list is longer, the first 100 valid domains are looked up and one free notice row (`reason: "free_plan_limit"`) says how many were not looked up; they are not charged. Run again with the rest, or use a paid Apify plan for no per-run limit.

#### Keep a run small while you test

`limit` caps the whole run (default and maximum 1,000). Try one domain with `limit: 1`, read the row, then scale up. Each domain takes two lookups at about 60 a minute, so 1,000 domains take about 35 minutes.

***

### ⚡ Why this office locations actor?

- **Start from the domain.** `stripe.com`, `https://www.stripe.com/about` and `jane@stripe.com` all become `stripe.com`. No company-name matching and no LinkedIn URL needed.
- **One row per company, all offices inside.** Cost per run is predictable: one charge per company, not per address.
- **Headquarters first, countries counted.** Every row carries `hqCity`, `hqCountry`, `locationCount` and a sorted `countries` list, so you can filter a sheet without opening the address list.
- **It does not guess on shared domains.** Public email domains, website builders and blog platforms are declared by many unrelated companies. Those return a free notice, not a random company.
- **Success-only.** Unknown domains, skipped domains, empty pages, bad entries, repeats and notices are free.

***

### 🎯 Use cases: turn a domain column into office footprints

- **Territory routing.** Which accounts have an office in your region, not only a headquarters there.
- **Field sales and events.** Find target accounts with an office in the city of a trade show or road trip.
- **Market-entry research.** Count the countries and cities a competitor lists offices in.
- **Agent workflows.** An AI agent holds a domain and needs the company's listed offices in a single call.

***

### 🚀 Quick start: office locations for a list of domains

#### 1. One domain

```json
{ "items": ["stripe.com"], "limit": 1 }
```

#### 2. A list, in any form

```json
{ "items": ["openai.com", "https://www.shopify.com/about", "sales@airbnb.com"] }
```

Each entry becomes its bare domain before the lookup.

***

### ⚙️ Inputs

| Key | Type | Default | What it does |
|---|---|---|---|
| `items` | array of strings | required | Company domains, website URLs or email addresses. A company name is not a domain and is listed in `MISSES` as `invalid_domain`. The same domain written twice is looked up once. Free plan: 100 domains per run. Maximum 1,000 entries. |
| `limit` | integer | 1,000 | Most companies delivered in the whole run, which also caps what is charged. Maximum 1,000. Domains not reached are listed in `MISSES`. |
| `includeAudit` | boolean | false | Adds an `audit` object to each row. |

Any other field stops the run before a lookup with `remove unsupported fields: ...`. Nothing is charged.

***

### 📤 Output

One result row per company. Rows keep input order. Empty values are left out of each address.

| Key | Type | Meaning, and when it is missing |
|---|---|---|
| `domain` | string | The domain from your entry, cleaned |
| `name` | string | Company name |
| `linkedinUrl` | string | Public company page URL |
| `hqCity` | string | City of the address flagged as headquarters. Missing when no address is flagged |
| `hqCountry` | string | ISO-2 country of that address. Missing when no address is flagged |
| `locationCount` | integer | Number of addresses in `locations` after exact repeats are removed |
| `countries` | array of strings | Distinct ISO-2 country codes of the addresses, sorted |
| `locations` | array of objects | The addresses, headquarters first, then in the order the page lists them. Each has `country`, `city`, `state`, `postalCode`, `address` (street line) and `isHq`. Fields the page leaves empty are left out |
| `locationsUpdatedAt` | string | When the company page data was last refreshed, as the data reports it |
| `matchType` | string | How the company was chosen for the domain: `only_company`, `name_matches_domain` or `largest_by_headcount` |
| `audit` | object | Only with `includeAudit`: `requestId`, `latencyMs`, `candidates`, `inputRaw` |

Example output (the shape is real, the values are shortened):

```json
{
  "domain": "stripe.com",
  "name": "Stripe",
  "linkedinUrl": "https://www.linkedin.com/company/stripe",
  "hqCity": "South San Francisco",
  "hqCountry": "US",
  "locationCount": 14,
  "countries": ["AU", "BR", "FR", "GB", "IE", "IN", "JP", "MX", "NL", "SG", "US"],
  "locations": [
    { "country": "US", "city": "South San Francisco", "state": "CA", "postalCode": "94080", "address": "354 Oyster Point Blvd", "isHq": true },
    { "country": "IE", "city": "Dublin 2", "state": "County Dublin", "postalCode": "D02 R624", "address": "Wilton Place", "isHq": false }
  ],
  "locationsUpdatedAt": "2026-11-07T17:02:50.682Z",
  "matchType": "name_matches_domain"
}
```

#### How to read the rows

- **It is the company's own list, not a census.** What we saw on 2026-11-09: Stripe lists 14 addresses, Microsoft 45, Unilever 22 after one exact repeat is removed, BBC 55, Siemens 100, and Shopify only its Ottawa headquarters. A small company often lists one address. A short list does not mean a short footprint.
- **Long lists may be cut.** Siemens came back with exactly 100 addresses. We do not know whether that is a limit of the data, so treat 100 as "at least 100".
- **Addresses are as written on the page.** Some entries have no city, a city spelled in the local language, or a street line that holds a whole address. One Stripe entry pairs the city Paulínia with a São Paulo street. We return what the page says and do not correct it.
- **One headquarters, flagged by the page.** In all 7 company pages we read, exactly one address was flagged as headquarters and it came first. If a page flags none, `hqCity` and `hqCountry` are left out.
- **`matchType` tells you how sure to be about the company.** `only_company`: exactly one company declares the domain. `name_matches_domain`: the company is named like the domain and is not dwarfed by another. `largest_by_headcount`: no company is named like the domain, but one has at least 50 employees and ten times the runner-up. `only_company` is the weakest: check `name` and `linkedinUrl` before you act on it.
- **Refused on purpose.** A domain declared by several unrelated companies of similar size (public email domains such as `gmail.com`, website builders) returns a free notice. A real owner whose name differs from its domain can be skipped this way, free.

#### Other records in the run

- **`MISSES`** (key-value store): `[{index, input, reason}]` for every entry without a result row. Reasons: `unknown_domain`, `no_confident_match`, `no_company_page`, `page_not_found`, `no_locations_listed`, `invalid_domain`, `duplicate_input` (the same domain as an earlier entry; `duplicateOf` names it), `not_looked_up_limit` (the run `limit` was reached first), or `Upstream HTTP <code>` / `Upstream unavailable`.
- **`errors-office-locations`** (key-value store): the lookups that failed for a technical reason, so you can re-run only those domains.
- **`RUN_SUMMARY`**: counts (requested, valid, looked up, companies delivered, how many per `matchType`).
- **Notice rows** (`type: "notice"`) appear for an unknown domain, a shared domain with no clear owner, a company without a page or addresses, a free-plan list longer than 100 (`free_plan_limit`), a reached `limit` (`limit_reached`), a reached spend limit (`charge_limit_reached`) or invalid input (`invalid-input`). Notices are never charged.

#### What is NOT returned

- Street-level coverage of every site, plant or store a company runs: only the addresses its company page lists
- Employee counts per office
- People at the company (use [people-at-company](https://apify.com/b2bdata/people-at-company))
- Email addresses or phone numbers (use [email-finder](https://apify.com/b2bdata/email-finder))
- Company size, industry or description (use [company-by-domain](https://apify.com/b2bdata/company-by-domain))
- A company from a name (use [company-name-to-domain](https://apify.com/b2bdata/company-name-to-domain) to get the domain first)

***

### 🛡️ Reliable results

**Our data promise.** We work to keep the data current, and we stand behind it. If a company is missing, the wrong company comes back or an address looks wrong, open the Issues tab with your run link. We review every report and sort it out with you, case by case.

- **No data is free and visible.** Every domain without a row is in `MISSES` with its position and a reason and is never charged.
- **No guesses on shared domains.** A domain with no clear owner returns a free notice.
- **No empty rows.** A company page with no usable address is a free notice, not a charged row.
- **Repeats are charged once.** The same domain written twice is one row.
- **Bounded pace.** Lookups run at about 60 a minute, two per domain, so a long list takes time. The run timeout is one hour.
- **Typos fail early.** An unsupported input field, a bad `limit` or a list above 1,000 entries stops the run before any charge.

***

### 🤖 For AI agents (MCP)

This actor runs through the Apify MCP server. Prompt to copy:

> "Use b2bdata/office-locations with items=\["stripe.com"] and limit=1. Return hqCity, hqCountry, countries and the list of locations."

**When to use it.** You hold a company domain and need the office addresses the company lists, with the headquarters flagged.
**When not to.** You need company size or industry (use b2bdata/company-by-domain), people (use b2bdata/people-at-company) or a domain from a company name (use b2bdata/company-name-to-domain).
**Input contract.** `items` array of domains, URLs or emails (at most 1,000); optional `limit` 1-1,000.
**Output contract.** One row per domain with `domain`, `name`, `hqCity`, `hqCountry`, `locationCount`, `countries`, `locations[]`, `matchType`. Output is deterministic and schema-stable. Domains without a credible company or without addresses are a free notice row and listed in `MISSES`.
**Smoke test.** `limit: 1` on a well-known domain returns one row.
**Error cases.** `No valid domains` means no entry was a domain. `remove unsupported fields`, a bad number or too many entries ends the run SUCCEEDED with one free `invalid-input` notice row and nothing charged.

***

### 🔌 Integrations: send results anywhere

1. **API.** Fetch rows from the run's default dataset: `GET /v2/datasets/{datasetId}/items?format=json`. The `locations` list is nested, so use JSON for one row per address or flatten it in your tool.
2. **Webhook** on run success to push rows to your own endpoint.
3. **n8n, Make, Zapier.** Use the native Apify nodes: run the actor, then read the dataset.
4. **Google Sheets, Airtable, HubSpot, Salesforce, Clay.** Join on `domain` and map `hqCountry`, `countries` and `locationCount` to account fields.

***

### 🕐 Schedule examples

- **Quarterly territory refresh.** A schedule with a saved task that points at your account-domain list.
- **New-account enrichment.** A webhook from your CRM starts a run with the new domains.

***

### 🔗 Related actors

- `b2bdata/company-by-domain`: name, industry, employee count and LinkedIn page for a domain. [Open](https://apify.com/b2bdata/company-by-domain)
- `b2bdata/people-at-company`: the people at a company, one row per person, by domain. [Open](https://apify.com/b2bdata/people-at-company)
- `b2bdata/company-name-to-domain`: the domain for a company name. [Open](https://apify.com/b2bdata/company-name-to-domain)
- `b2bdata/headcount-by-department`: how many people a company has per team. [Open](https://apify.com/b2bdata/headcount-by-department)

[See all actors by b2bdata](https://apify.com/b2bdata)

***

### ❓ FAQ

#### Data and coverage

**How do I get a company's office locations from its domain?**
Put the domain in `items` and run. You get one row with the headquarters, the countries and the list of addresses on the company page.

**Why does a company return only one address?**
Many companies list only their headquarters. The row carries what the page lists, nothing more.

**Why did a domain return a notice instead of a company?**
Either no company is on file, several unrelated companies share the domain and none stands out, or the company page has no address. All are free and are in `MISSES` with the reason.

**Can I look up a company by name?**
No. A name is not a domain and is listed as `invalid_domain`. Use `b2bdata/company-name-to-domain` first.

**Do I need a LinkedIn account or cookies?**
No. It is a lookup without login, cookies or an account to ban.

#### Pricing

**What do I pay when a domain has no data?**
Only the $0.0005 start fee per run. Unknown domains, skipped domains, empty pages, bad entries, repeats and notices are free. A company is one charge whether it lists 1 office or 100.

***

### 🛟 Support

Use the **Issues** tab on this actor's Apify page for bugs, questions and feature requests. We answer within 48 hours on working days. Please include the run ID and the input you used. Published on Apify by b2bdata. Not affiliated with, endorsed by, or sponsored by any company or person named in the examples above.

# Changelog

This Actor's version history is a separate document: https://apify.com/b2bdata/office-locations/changelog.md

# Actor input Schema

## `items` (type: `array`):

Company domains to look up. Example: \["stripe.com", "https://www.shopify.com/about", "jane@openai.com"]. A website URL or an email address is reduced to its domain; a company name is not a domain and is listed in the MISSES record as invalid_domain. Each domain is looked up once; repeats are listed in MISSES as duplicate_input. A domain with no company on file, shared by unrelated companies with no clear owner, or whose company page lists no address returns one free notice row. Free plan: 100 domains per run. Maximum 1000 per run.

## `limit` (type: `integer`):

Most companies delivered in the whole run, which also caps what is charged. Domains not reached are listed in MISSES and are not charged. Default and maximum 1000.

## `includeAudit` (type: `boolean`):

Adds requestId, latencyMs, candidates (how many companies the data holds for the domain) and inputRaw to each row under audit. Omit for clean rows.

## Actor input object example

```json
{
  "items": [
    "stripe.com"
  ],
  "limit": 1000,
  "includeAudit": false
}
```

# Actor output Schema

## `companies` (type: `string`):

One row per domain with a credible company and at least one address: headquarters, office count, countries and the list of addresses

## `summary` (type: `string`):

Counts, match types and stop reason for this run

# 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 = {
    "items": [
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2bdata/office-locations").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 = { "items": ["stripe.com"] }

# Run the Actor and wait for it to finish
run = client.actor("b2bdata/office-locations").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 '{
  "items": [
    "stripe.com"
  ]
}' |
apify call b2bdata/office-locations --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2bdata/office-locations"
        }
    }
}
```

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/Ea2I55qefdrWM4J2P/builds/GqAQmrVXLy8PJYSqU/openapi.json
