# Company Financials, Valuation & M\&A Scraper (Craft.co) (`foxlabs/craft-intelligence`) Actor

Scrape company financials from Craft.co: revenue, valuation, market cap, M\&A, executives & competitors as JSON. Low-cost Crunchbase / PitchBook alternative for VC/PE deal sourcing & M\&A research.

- **URL**: https://apify.com/foxlabs/craft-intelligence.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Lead generation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Craft.co Company Scraper — Revenue, Valuation, M&A, Executives, Competitors

> **Also known as**: Craft.co scraper · company financials scraper · private company valuation lookup · revenue & income-statement data · M&A history · executive team scraper · B2B company intelligence · competitor discovery · M&A database · company valuation data · venture capital database · private company data.

### What does Craft.co Company Scraper do?

**Craft.co Company Scraper** extracts deep company intelligence from [Craft.co](https://craft.co) profile pages and returns it as clean, structured JSON. Unlike basic firmographics tools, it pulls **multi-year revenue & income statements, private-company valuations, public market cap, full ownership/M&A subsidiary lists, executive teams, and competitor maps** — straight from Craft.co's structured data layer.

Give it a list of companies (names, slugs, or URLs) **or** pick a sector preset and let it **discover competitors recursively** — expanding a handful of seed companies into hundreds or thousands of related firms in one run. Output is ready for CRM, dashboards, LLM/RAG context, and Make/Zapier/n8n pipelines, with full Apify platform support (API access, scheduling, proxy rotation, monitoring).

**Use cases**: VC/PE deal sourcing & due diligence, M&A target research, competitive intelligence, B2B sales prospecting on enterprise accounts, financial benchmarking.

### Quick start — copy-paste recipes

Open the Actor's **Input** tab in Apify Console, switch to **JSON / Editor**, paste one, click **Start**.

**1) Specific companies — just type names** (~$0.004 each)
```json
{ "companyNames": ["Stripe", "Airbnb", "Notion"] }
````

No URLs needed — each name resolves to its Craft.co page automatically. This works great for companies whose name is their slug. For a name shared by several companies it can resolve to the wrong one (e.g. `Notion` lands on a small unrelated company; the well-known one is `notion-labs`) — when in doubt, paste the exact `https://craft.co/...` URL in **companyUrls** instead (which also accepts a bulk `.txt`/`.csv`).

**2) A sector, top 100 companies** (~$0.40)

```json
{ "preset": "saas", "maxResults": 100 }
```

**3) Market discovery — follow the competitor graph** (~$4)

```json
{ "preset": "fintech", "maxDepth": 2, "maxResults": 1000 }
```

Names in **companyNames** auto-resolve; **companyUrls** is for exact URLs and bulk `.txt`/`.csv` uploads.

### How competitor discovery works

By default (`maxDepth: 0`) the Actor scrapes only the companies you list / the preset anchors. Raise `maxDepth` to let it **trace Craft.co's competitor graph at runtime**:

1. **Anchors** — your URLs or a preset's ~14 curated sector leaders (trusted, never filtered).
2. **Recursive traversal** — each company's competitors are enqueued, then their competitors, up to `maxDepth` hops. Crawlee deduplicates automatically.
3. **Industry whitelist** — at depth > 0, discovered companies must match the preset's sector keywords (or your `industryKeywords`), which stops drift into unrelated sectors (e.g. fintech → e-commerce).
4. **Live, not a snapshot** — traversal happens at run time, so new entrants and graph changes are picked up automatically.

**Scope & scale:** the competitor graph spans the broader **tech & software** market — a "B2B Tech & Software" run surfaces SaaS plus adjacent cloud, infrastructure, dev-tools and large software vendors. A built-in blocklist drops pure hardware, semiconductor, telecom and electronics companies so the graph doesn't drift off into them. Reach grows with `maxDepth` (0–4); a single mainstream preset yields on the order of hundreds to a few thousand on-topic companies before competitor lists overlap. `maxResults` is always your hard cost cap.

### Pay-as-you-go vs a $$$$ data subscription

| | Crunchbase / PitchBook | This Actor (Craft.co) |
|---|---|---|
| **Access** | Annual contract, seat licenses | Pay-as-you-go — no contract, no login |
| **Cost** | $$$$ per year | $4 per 1,000 companies (~$0.004 each) |
| **Freshness** | Periodic DB updates | **Live** — scraped the moment you run it |
| **Financials** | Gated behind premium tiers | Revenue, valuation, market cap & M\&A included |
| **Export** | Limited seats / credits | Full JSON, CSV, Excel — yours to keep |

Stop paying for a yearly seat to look companies up one at a time. Pull the exact companies — or a whole sector — you need, on demand, and own the data.

### Why use Craft.co Company Scraper?

- **VC / PE sourcing & due diligence** — private valuations, multi-year revenue, funding totals, and executive teams for a whole sector in one run.
- **M\&A research** — each company's subsidiary / acquisition list with links to the acquired entities' Craft.co profiles.
- **Competitive intelligence** — pull a prospect's competitor list and recursively map an entire market with `maxDepth`.
- **Sales prospecting & ABM** — segment by revenue, employee count, industry, and geography; enrich enterprise target accounts.
- **Financial benchmarking** — quarterly/annual income statements with gross-profit margins across peers.
- **LLM context** — feed structured financials + leadership + competitors into RAG pipelines.

### How to use

1. Open the Actor's **Input** tab in Apify Console.
2. **Either** pick a sector preset (`saas`, `fintech`, `ai-ml`) from the **Quick start** dropdown, **or** type plain company names in **Company names** (one per line — no URLs), **or** paste exact URLs / upload a `.txt`/`.csv` in **Company URLs**. You can combine them — they merge and dedupe.
3. Optionally raise **Competitor discovery depth** to expand into related companies (use with a preset or industry whitelist to stay on-topic).
4. Toggle **competitors / M\&A / executives** as needed (all on by default).
5. Set **Maximum companies** as your cost cap (default 100, max 100,000).
6. Click **Start**. Download as JSON, CSV, Excel, HTML, or XML from the **Output / Storage** tab.

### Output

Each row is one company profile. Money fields come three ways: a raw number for sorting/charts, a **compact** string (`$14.00B`) for scanning, and an **exact** string (`$14,000,000,000`). Example (Stripe, trimmed):

```json
{
  "url": "https://craft.co/stripe",
  "name": "Stripe",
  "description": "Stripe is a technology company that develops a financial infrastructure platform...",
  "website": "https://stripe.com",
  "foundedYear": 2010,
  "ownership": "private",
  "stockTicker": null,
  "headquarters": "South San Francisco, CA, United States",
  "headquartersCity": "South San Francisco",
  "headquartersState": "CA",
  "headquartersCountry": "United States",
  "employees": 11158,
  "employeeHistory": [{ "date": "2025-03-01", "count": 11158 }],
  "revenue": 14000000000,
  "revenueFormatted": "$14.00B",
  "revenueExact": "$14,000,000,000",
  "revenueCurrency": "USD",
  "incomeStatements": [
    { "period": "2022-12-31", "revenue": 14000000000, "netIncome": null, "grossProfitMargin": null, "currency": "USD" }
  ],
  "valuation": 95000000000,
  "valuationFormatted": "$95.00B",
  "valuationExact": "$95,000,000,000",
  "valuationDate": "2021-03-15",
  "marketCap": null,
  "marketCapFormatted": null,
  "marketCapExact": null,
  "totalFunding": 9897843617,
  "totalFundingFormatted": "$9.90B",
  "totalFundingExact": "$9,897,843,617",
  "industries": ["Technology", "automation", "fintech", "platform"],
  "industriesText": "Technology, automation, fintech, platform",
  "social": { "twitter": "http://twitter.com/stripe", "linkedin": "https://www.linkedin.com/company/stripe" },
  "executives": [
    { "name": "Patrick Collison", "title": "Co-Founder, CEO & Board Member" },
    { "name": "John Collison", "title": "Co-Founder, President & Board Member" }
  ],
  "competitors": [
    { "name": "Adyen", "url": "https://craft.co/adyen", "revenue": null },
    { "name": "Checkout.com", "url": "https://craft.co/checkout-com", "revenue": null }
  ],
  "acquisitions": [
    { "company": "Paystack", "date": null, "amount": null, "url": "https://craft.co/paystack" }
  ],
  "offices": [
    { "city": "South San Francisco", "state": "CA", "country": "United States", "countryCode": "US", "isHq": true }
  ],
  "scrapedAt": "2026-05-21T11:17:20.298Z"
}
```

You can download the dataset in JSON, CSV, Excel, HTML, or XML formats.

### Data table

| Field | Description |
|---|---|
| `name` / `description` / `website` / `crunchbase` | Identity + links |
| `foundedYear` | Founding year (integer) |
| `ownership` | `public` or `private` |
| `stockTicker` | Exchange symbol when public (e.g. `ABNB`, `SHOP.TO`); `null` for private |
| `headquarters` + `headquartersCity` / `State` / `Country` | HQ as a string + structured parts |
| `employees` / `employeeHistory[]` | Latest headcount + history (`{ date, count }`) |
| `revenue` / `revenueFormatted` / `revenueExact` / `revenueCurrency` | Latest revenue: raw number + `$14.00B` + `$14,000,000,000` + ISO currency |
| `incomeStatements[]` | Multi-period financials: `period`, `revenue`, `netIncome`, `grossProfitMargin`, `currency` |
| `valuation` / `valuationFormatted` / `valuationExact` / `valuationDate` | Private post-money valuation (mostly `null` for public companies) |
| `marketCap` / `marketCapFormatted` / `marketCapExact` | Public market cap (mostly `null` for private companies) |
| `totalFunding` / `totalFundingFormatted` / `totalFundingExact` | Total raised |
| `industries[]` / `industriesText` | Industry tags as array + comma-joined string |
| `social` | LinkedIn, Twitter, Facebook, YouTube, Instagram (present ones only) |
| `executives[]` | Executive team — `{ name, title }` (toggle) |
| `competitors[]` | `{ name, url, revenue }` — competitor revenue is **often `null`** on Craft.co (toggle) |
| `acquisitions[]` | Subsidiaries / acquisitions — `{ company, date, amount, url }`; **`date` and `amount` are usually `null`** (Craft.co rarely lists deal terms) (toggle) |
| `offices[]` | All office locations — `{ city, state, country, countryCode, isHq }` |
| `scrapedAt` | ISO timestamp |

### Pricing / Cost estimation

Pay-per-result: **$4 per 1,000 companies** (~$0.004 each). Craft.co charges no third-party fee — you only pay Apify for processing and proxy. Apify's free tier includes $5/month of credits (~1,250 companies before you pay anything).

- 1 company ≈ $0.004
- 100 companies ≈ $0.40
- 1,000 companies ≈ $4
- 10,000 companies ≈ $40

Datacenter proxy is sufficient — no residential needed.

### Tips

- **Bulk lists**: paste a `.txt`/`.csv` (one company per line) into **Company URLs**.
- **Concurrency**: default `5` is the sweet spot. Higher (10+) is faster but Craft.co's per-session 403 rate climbs sharply, wasting compute — not recommended.
- **Discovery depth**: start at `1`, raise to `2-3` only when you need a wider market sweep; each level multiplies the pool, runtime, and cost.
- **Schedule** with Apify Scheduler to refresh a watchlist weekly.

### FAQ, disclaimers & support

**Is Craft.co data publicly accessible?** Yes — Craft.co company profile pages are public. This Actor reads publicly available pages, no login. Always verify your use complies with Craft.co's Terms of Service.

**Why are some fields `null`?** Financial depth varies. Public companies and well-tracked startups are richest; small private companies often have sparse financials. Specifically, **acquisition dates/amounts and competitor revenue are frequently `null`** because Craft.co lists the relationship without the figures — the Actor returns exactly what the page exposes, never invented values.

**Can missing revenue/employees be filled from another source?** Optionally. Set **`enrichFromOwler: true`** and any company missing revenue/employees on Craft.co is looked up on [Owler.com](https://www.owler.com) and backfilled — but **only when Owler's domain matches the company's own website**, so a coincidental name match (e.g. `linear` → *Linear Technology*, the semiconductor maker) is rejected rather than merged. Backfilled values are clearly tagged: `revenueSource: "owler"`, `revenueIsEstimate: true`, `employeesSource`, and a verified `owlerUrl`. Owler figures are range-based estimates, not Craft.co filings. This fetches a second page per missing-data company, so it roughly doubles cost/time for those rows — leave it off if you only want Craft.co's own data.

**Public vs private companies** — public companies expose `marketCap` (valuation usually `null`); private companies expose `valuation` (market cap `null`). Both expose revenue when available.

**A page returned no data / occasional misses** — Craft.co occasionally serves an anti-bot challenge to a single session; the Actor retires that session and retries. A small fraction of stubborn pages (~0.5% at scale) may still fail and are written to the dataset as an `error` row for transparency.

**Layout changed and the Actor broke?** Open an issue in the **Issues** tab — selectors are updated to track Craft.co's structure. For feedback, feature requests, or a custom solution, use the Issues tab.

### 🔗 foXLabs B2B Intelligence Suite

Three company-intelligence scrapers that work better together — match results by company **domain** for a 360° view:

| Actor | Best for |
|---|---|
| [**Owler** — Company Data, Revenue, Competitors & Funding](https://apify.com/foxlabs/owler-intelligence) | Firmographics, competitors, funding & news |
| [**Craft.co** — Financials, Valuation & M\&A](https://apify.com/foxlabs/craft-intelligence) | Revenue/income statements, valuation, acquisitions, executives |
| [**Built In** — Tech Stack, Employees & Jobs](https://apify.com/foxlabs/builtin-intelligence) | Tech stack, exact headcount & hiring signals |
| [**Indian Company Data**](https://apify.com/foxlabs/indian-company-data) | 🇮🇳 India: CIN, directors, financials & charges (MCA/Tofler) |
| [**Company Data Enrichment**](https://apify.com/foxlabs/company-enrichment) | Bulk firmographics by name/domain — industry, HQ, size, revenue |
| [**Free Company Lookup**](https://apify.com/foxlabs/company-lookup-free) | 🆓 Quick basics — domain, industry, HQ, logo (start here) |

***

### Keywords / search terms

Craft.co, Craft.co scraper, Craft.co API, company data, company intelligence, company financials, revenue data, private company valuation, market cap, income statement, M\&A history, acquisitions, executive team, competitive intelligence, competitor analysis, B2B firmographics, VC sourcing, PE due diligence, sales prospecting, lead generation, account-based marketing, CRM enrichment, business intelligence, company knowledge graph.

# Actor input Schema

## `preset` (type: `string`):

Auto-fills well-known company anchors, then (with Discovery depth > 0) follows Craft.co's competitor graph. NOTE: the graph spans the broader tech/software space — a 'B2B Tech & Software' run also surfaces adjacent cloud, infra, dev-tools and large software vendors, not only narrow SaaS. A built-in blocklist drops pure hardware/semiconductor/telecom/electronics. Or leave blank and paste your own companies below.

## `companyNames` (type: `array`):

Just type company names — one per line. We turn each into its Craft.co page automatically (e.g. `Stripe` → craft.co/stripe). Easiest way to scrape a specific list — works great for companies whose name is their slug. ⚠ A bare name maps to craft.co/<name>; if several companies share a name it can land on the wrong one (e.g. `Notion` → a small unrelated company; the well-known one is `notion-labs`). When in doubt, paste the exact Craft.co URL in the field below instead.

## `companyUrls` (type: `array`):

Use this when a name doesn't resolve, or to upload a .txt/.csv of many companies. Full URLs only here, e.g. `https://craft.co/stripe`.

## `includeCompetitors` (type: `boolean`):

Each company's competitor list with revenue + employees.

## `includeAcquisitions` (type: `boolean`):

Full acquisition history — target, date, amount.

## `includeLeadership` (type: `boolean`):

Executive team — name + title.

## `maxResults` (type: `integer`):

Hard cap. PPE $4/1K. 100 ≈ $0.40.

## `maxConcurrency` (type: `integer`):

Craft.co rate-limits header-bare requests; gotScraping headers pass but keep concurrency moderate (5-10). Max 20.

## `maxDepth` (type: `integer`):

How far to follow Craft.co's competitor graph for a live, broad pool (not a static anchor list):
• 0 = only the companies you list / preset anchors — no discovery
• 1 = + each company's direct competitors
• 2 = + competitors-of-competitors (DEFAULT for presets — densest live sweep)
• 3 = one hop further (market-wide)
• 4 = exhaustive crawl
With a preset, discovery is ON by default (depth 2) so every run reflects today's market. Set 0 to scrape only an exact company list. 'Maximum companies' is always your hard cost cap (raise it for more density).

## `industryKeywords` (type: `array`):

Only applied when depth > 0. Discovered companies whose industry tags match none of these keywords are skipped — this stops drift into unrelated sectors (e.g. fintech → e-commerce). Presets fill this automatically.

## `enrichFromOwler` (type: `boolean`):

OFF by default. When ON, companies whose revenue/employees are missing on Craft.co are looked up on Owler.com and backfilled ONLY when Owler's domain matches the company's website (so a wrong-name match like 'linear' → Linear Technology is rejected, never merged). Backfilled values are tagged `revenueSource:"owler"` + `revenueIsEstimate:true` and a verified `owlerUrl` is added. Note: this fetches a second page per missing-data company, so it roughly doubles cost/time for those rows.

## `proxyConfiguration` (type: `object`):

Apify Datacenter proxy is sufficient (residential not needed).

## Actor input object example

```json
{
  "preset": "",
  "companyNames": [
    "Stripe",
    "Airbnb",
    "Notion"
  ],
  "companyUrls": [],
  "includeCompetitors": true,
  "includeAcquisitions": true,
  "includeLeadership": true,
  "maxResults": 100,
  "maxConcurrency": 5,
  "maxDepth": 2,
  "industryKeywords": [],
  "enrichFromOwler": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "companyNames": [
        "Stripe",
        "Airbnb",
        "Notion"
    ],
    "companyUrls": [],
    "maxResults": 100,
    "maxConcurrency": 5,
    "maxDepth": 2,
    "industryKeywords": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": []
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/craft-intelligence").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 = {
    "companyNames": [
        "Stripe",
        "Airbnb",
        "Notion",
    ],
    "companyUrls": [],
    "maxResults": 100,
    "maxConcurrency": 5,
    "maxDepth": 2,
    "industryKeywords": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": [],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/craft-intelligence").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "companyNames": [
    "Stripe",
    "Airbnb",
    "Notion"
  ],
  "companyUrls": [],
  "maxResults": 100,
  "maxConcurrency": 5,
  "maxDepth": 2,
  "industryKeywords": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}' |
apify call foxlabs/craft-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=foxlabs/craft-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Company Financials, Valuation & M&A Scraper (Craft.co)",
        "description": "Scrape company financials from Craft.co: revenue, valuation, market cap, M&A, executives & competitors as JSON. Low-cost Crunchbase / PitchBook alternative for VC/PE deal sourcing & M&A research.",
        "version": "0.3",
        "x-build-id": "G0o7Ho4388oOPswmF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/foxlabs~craft-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-foxlabs-craft-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/foxlabs~craft-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-foxlabs-craft-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/foxlabs~craft-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-foxlabs-craft-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "preset": {
                        "title": "Quick start: sector preset",
                        "enum": [
                            "",
                            "saas",
                            "fintech",
                            "ai-ml"
                        ],
                        "type": "string",
                        "description": "Auto-fills well-known company anchors, then (with Discovery depth > 0) follows Craft.co's competitor graph. NOTE: the graph spans the broader tech/software space — a 'B2B Tech & Software' run also surfaces adjacent cloud, infra, dev-tools and large software vendors, not only narrow SaaS. A built-in blocklist drops pure hardware/semiconductor/telecom/electronics. Or leave blank and paste your own companies below.",
                        "default": ""
                    },
                    "companyNames": {
                        "title": "Company names or slugs (no URL needed)",
                        "type": "array",
                        "description": "Just type company names — one per line. We turn each into its Craft.co page automatically (e.g. `Stripe` → craft.co/stripe). Easiest way to scrape a specific list — works great for companies whose name is their slug. ⚠ A bare name maps to craft.co/<name>; if several companies share a name it can land on the wrong one (e.g. `Notion` → a small unrelated company; the well-known one is `notion-labs`). When in doubt, paste the exact Craft.co URL in the field below instead.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "companyUrls": {
                        "title": "Or paste full Craft.co URLs (for tricky slugs / bulk file)",
                        "type": "array",
                        "description": "Use this when a name doesn't resolve, or to upload a .txt/.csv of many companies. Full URLs only here, e.g. `https://craft.co/stripe`.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "includeCompetitors": {
                        "title": "Include competitors",
                        "type": "boolean",
                        "description": "Each company's competitor list with revenue + employees.",
                        "default": true
                    },
                    "includeAcquisitions": {
                        "title": "Include M&A / acquisitions",
                        "type": "boolean",
                        "description": "Full acquisition history — target, date, amount.",
                        "default": true
                    },
                    "includeLeadership": {
                        "title": "Include key executives",
                        "type": "boolean",
                        "description": "Executive team — name + title.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Maximum companies",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Hard cap. PPE $4/1K. 100 ≈ $0.40.",
                        "default": 100
                    },
                    "maxConcurrency": {
                        "title": "Concurrent fetches",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Craft.co rate-limits header-bare requests; gotScraping headers pass but keep concurrency moderate (5-10). Max 20.",
                        "default": 5
                    },
                    "maxDepth": {
                        "title": "Competitor discovery depth",
                        "minimum": 0,
                        "maximum": 4,
                        "type": "integer",
                        "description": "How far to follow Craft.co's competitor graph for a live, broad pool (not a static anchor list):\n• 0 = only the companies you list / preset anchors — no discovery\n• 1 = + each company's direct competitors\n• 2 = + competitors-of-competitors (DEFAULT for presets — densest live sweep)\n• 3 = one hop further (market-wide)\n• 4 = exhaustive crawl\nWith a preset, discovery is ON by default (depth 2) so every run reflects today's market. Set 0 to scrape only an exact company list. 'Maximum companies' is always your hard cost cap (raise it for more density).",
                        "default": 2
                    },
                    "industryKeywords": {
                        "title": "Industry whitelist (discovery only)",
                        "type": "array",
                        "description": "Only applied when depth > 0. Discovered companies whose industry tags match none of these keywords are skipped — this stops drift into unrelated sectors (e.g. fintech → e-commerce). Presets fill this automatically.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "enrichFromOwler": {
                        "title": "Backfill missing revenue/employees from Owler (estimate)",
                        "type": "boolean",
                        "description": "OFF by default. When ON, companies whose revenue/employees are missing on Craft.co are looked up on Owler.com and backfilled ONLY when Owler's domain matches the company's website (so a wrong-name match like 'linear' → Linear Technology is rejected, never merged). Backfilled values are tagged `revenueSource:\"owler\"` + `revenueIsEstimate:true` and a verified `owlerUrl` is added. Note: this fetches a second page per missing-data company, so it roughly doubles cost/time for those rows.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Datacenter proxy is sufficient (residential not needed).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": []
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
