# Kompass Company Directory

> Companies in a Kompass directory listing (country, region, district, sector, activity or company type), with the listing's total and its narrowing links.
> ReefAPI engine `kompass` · 3 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/kompass/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/kompass/v1/companies — 2 credits
Companies in a Kompass directory listing (country, region, district, sector, activity or company type), with the listing's total and its narrowing links.

**Parameters:**
- `url` (string, required) — A Kompass directory URL (paths /r/, /s/, /a/, /d/, /x/, /y/), or a facet url from a previous answer.
- `page` (string, optional) — Page 1-40. Kompass shows at most 40 pages per listing.

**Returns:** rows (kompass_id, name, url, location, city, country, country_code, company_types, certified, description, activities, logo_url), returned, total, page, has_more, title, facets

**Example request body:**
```json
{
  "url": "https://us.kompass.com/r/california-united-states/us_06/"
}
```

### POST https://api.reefapi.com/kompass/v1/search — 2 credits
Kompass keyword search for a product, service or company name.

**Parameters:**
- `query` (string, required) — Product, service or company name, up to 80 characters.
- `country` (string, optional) — Two-letter Kompass edition (us, fr, de, gb, ...). Default us; results are international.
- `search_type` (string, optional) — product (default) or company_name.
- `only_country` (string, optional) — true applies the site's own country filter (the `country` edition), so total and rows cover that country only.
- `location` (string, optional) — A city; each row then carries city_match (Kompass has no city filter for a keyword search).
- `page` (string, optional) — Page 1-40.

**Returns:** rows (+ city_match with location), returned, total, total_counts, page, has_more, country_filter, facets

**Example request body:**
```json
{
  "query": "valves"
}
```

### POST https://api.reefapi.com/kompass/v1/company — 2 credits
A Kompass company profile: address, phone, email, website, founding year, employees, registry details, executives and classified activities.

**Parameters:**
- `url` (string, required) — A company url from a companies or search row.

**Returns:** kompass_id, name, url, description, address, latitude, longitude, phone, phone_local, fax_local, email, website, links, founded, employees, logo_url, products_and_services, details, executives, people, registry_id, registry_type, siret, vat_id, legal_form, activities

**Example request body:**
```json
{
  "url": "https://fr.kompass.com/c/constellium-paris/fra00s04z/"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=kompass
- Human docs page: https://reefapi.com/docs/kompass
- Overview page: https://reefapi.com/kompass-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
