# Crunchbase Recently Funded Monitor (`happitap/crunchbase-recently-funded-monitor`) Actor

- **URL**: https://apify.com/happitap/crunchbase-recently-funded-monitor.md
- **Developed by:** [HappiTap](https://apify.com/happitap) (community)
- **Categories:** Business
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Crunchbase Recently Funded Monitor

An Apify actor that extracts recently funded companies from the Crunchbase Data API with advanced filtering, incremental monitoring, and webhook notifications.

### Features

- **API-based extraction** using official Crunchbase Data API (compliant with ToS)
- **Advanced filtering** by date range, funding stage, amount, geography, and keywords
- **Incremental monitoring** to avoid duplicates and track new funding rounds
- **Webhook notifications** for real-time updates
- **Normalized output schema** for easy integration
- **Rate limiting and retries** for reliable operation

### Input Schema

#### Required Fields

- `mode`: Data access mode (currently only "crunchbase\_api")
- `crunchbaseApiKey`: Your Crunchbase Data API key (stored in secrets)

#### Date Filtering

- `lastNDays`: Number of days to look back (default: 7)
- `announcedAfter`: ISO date string for start date
- `announcedBefore`: ISO date string for end date

#### Funding Filters

- `fundingStages`: Array of funding stages (seed, series\_a, series\_b, etc.)
- `minRaisedUsd`: Minimum funding amount in USD
- `maxRaisedUsd`: Maximum funding amount in USD
- `includeUndisclosed`: Include rounds with undisclosed amounts (default: true)

#### Company Filters

- `hqCountries`: Array of ISO-2 country codes
- `hqRegions`: Array of regions
- `industries`: Array of industries
- `companyKeywords`: Keywords to match in company names/descriptions
- `excludeKeywords`: Keywords to exclude

#### Limits & Pagination

- `maxItems`: Maximum number of rounds to extract (default: 200)
- `maxPages`: Maximum pages to fetch (default: 20)

#### Incremental Monitoring

- `incremental`: Enable incremental mode (default: true)
- `stateKey`: Key for storing state (default: "STATE")
- `notifyOnlyNew`: Only notify for new items (default: true)

#### Output & Webhooks

- `outputMode`: "rounds" or "companies\_latest\_round" (default: "rounds")
- `outputDatasetName`: Custom dataset name
- `webhookUrl`: URL for notifications
- `webhookSecret`: Secret for webhook signatures
- `webhookBatchSize`: Batch size for webhooks (default: 50)
- `webhookOnEachItem`: Send webhook per item (default: false)

#### Performance

- `requestRetries`: Number of retries (default: 5)
- `timeoutSecs`: Request timeout (default: 30)
- `minDelayMs`/`maxDelayMs`: Delays between requests

### Output Schema

Each funding round record contains:

```json
{
  "source": "crunchbase",
  "roundId": "uuid",
  "announcedOn": "2024-01-15",
  "fundingType": "series_a",
  "moneyRaised": {
    "amount": 5000000,
    "currency": "USD",
    "usd": 5000000
  },
  "company": {
    "companyId": "uuid",
    "name": "Company Name",
    "url": "https://www.crunchbase.com/organization/company-name"
  },
  "investors": [
    {
      "investorId": "uuid",
      "name": "Investor Name",
      "url": "https://www.crunchbase.com/organization/investor-name"
    }
  ],
  "scrapedAt": "2024-01-15T10:30:00.000Z",
  "hash": "round-uuid",
  "raw": { /* raw API response */ }
}
```

### Usage Examples

#### Example 1: Last 7 days, US + India, Seed/Series A

```json
{
  "lastNDays": 7,
  "hqCountries": ["US", "IN"],
  "fundingStages": ["seed", "series_a"],
  "maxItems": 500
}
```

#### Example 2: Daily monitoring with webhook

```json
{
  "lastNDays": 3,
  "incremental": true,
  "notifyOnlyNew": true,
  "webhookUrl": "https://your-webhook-endpoint.com/funding",
  "webhookSecret": "your-secret-key"
}
```

#### Example 3: Specific date range and amount filter

```json
{
  "announcedAfter": "2024-01-01",
  "announcedBefore": "2024-01-31",
  "fundingStages": ["series_a", "series_b"],
  "minRaisedUsd": 1000000,
  "maxRaisedUsd": 20000000,
  "hqCountries": ["US"]
}
```

### Setup

1. **Get Crunchbase API Key**: Sign up at [Crunchbase Data Access](https://data.crunchbase.com/)
2. **Store API Key**: Add your API key to Apify secrets as `CRUNCHBASE_API_KEY`
3. **Configure Input**: Set your desired filters and webhook settings
4. **Run Actor**: Execute with your preferred schedule

### Webhook Integration

The actor can send notifications to webhooks with the following features:

- **Batch notifications**: Sends multiple rounds per request
- **Individual notifications**: Option to send one webhook per round
- **HMAC signatures**: Optional SHA256 signatures for security
- **Retry logic**: Built-in retry for failed webhook deliveries

Webhook payload format:

```json
[
  {
    "source": "crunchbase",
    "roundId": "uuid",
    "announcedOn": "2024-01-15",
    "fundingType": "series_a",
    "moneyRaised": { "amount": 5000000, "currency": "USD", "usd": 5000000 },
    "company": { "companyId": "uuid", "name": "Company Name", "url": "..." },
    "scrapedAt": "2024-01-15T10:30:00.000Z"
  }
]
```

### Incremental Monitoring

When `incremental: true`, the actor:

1. **Tracks processed rounds**: Maintains a set of seen round IDs
2. **Uses date cursors**: Stores the last announced date processed
3. **Avoids duplicates**: Filters out previously processed rounds
4. **Overlap window**: Includes 2-day overlap to catch late announcements

This enables scheduled runs without duplicate data.

### Error Handling

The actor includes comprehensive error handling:

- **API rate limits**: Automatic backoff and retry
- **Authentication errors**: Clear messages for invalid API keys
- **Network failures**: Configurable retry logic
- **Partial results**: Saves available data even if some requests fail
- **Detailed logging**: Comprehensive logs for debugging

### Performance Considerations

- **Rate limiting**: Configurable delays between requests
- **Batch processing**: Efficient API usage with pagination
- **Memory efficient**: Streams data to avoid memory issues
- **Timeout handling**: Configurable timeouts for all requests

### Compliance

This actor uses the official Crunchbase Data API, ensuring compliance with Crunchbase Terms of Service. Web scraping is not implemented to respect robots.txt and API usage guidelines.

### Development

The actor is built with:

- **Node.js 18+**: Modern JavaScript runtime
- **Apify SDK**: Reliable actor framework
- **Axios**: HTTP client with retry logic
- **Moment.js**: Date handling
- **Crypto**: Webhook signature generation

### License

ISC License - see LICENSE file for details.

### Support

For issues and questions:

- Check the actor logs for detailed error messages
- Verify your Crunchbase API key and permissions
- Ensure webhook endpoints are accessible and properly configured

# Actor input Schema

## `mode` (type: `string`):

Method to access Crunchbase data

## `crunchbaseApiKey` (type: `string`):

Your Crunchbase Data API key (stored in secrets)

## `announcedAfter` (type: `string`):

ISO date string (YYYY-MM-DD) - only rounds announced after this date

## `announcedBefore` (type: `string`):

ISO date string (YYYY-MM-DD) - only rounds announced before this date

## `lastNDays` (type: `integer`):

Number of days to look back for funding rounds (overrides announcedAfter if not set)

## `fundingStages` (type: `array`):

Filter by funding stages

## `minRaisedUsd` (type: `integer`):

Minimum funding amount in USD

## `maxRaisedUsd` (type: `integer`):

Maximum funding amount in USD

## `includeUndisclosed` (type: `boolean`):

Include funding rounds with undisclosed amounts

## `hqCountries` (type: `array`):

Filter by company headquarters countries (ISO-2 codes)

## `hqRegions` (type: `array`):

Filter by company headquarters regions

## `industries` (type: `array`):

Filter by industries

## `companyKeywords` (type: `array`):

Keywords to match in company names/descriptions

## `excludeKeywords` (type: `array`):

Keywords to exclude from company names/descriptions

## `maxItems` (type: `integer`):

Maximum number of funding rounds to extract

## `maxPages` (type: `integer`):

Maximum number of pages to fetch

## `incremental` (type: `boolean`):

Enable incremental monitoring to avoid duplicates

## `stateKey` (type: `string`):

Key for storing incremental state

## `notifyOnlyNew` (type: `boolean`):

Only notify/send webhook for new items in incremental mode

## `outputMode` (type: `string`):

Output format: rounds (one per funding round) or companies\_latest\_round (one per company)

## `outputDatasetName` (type: `string`):

Custom name for the output dataset

## `webhookUrl` (type: `string`):

URL to send notifications to

## `webhookSecret` (type: `string`):

Secret for webhook signature verification

## `webhookBatchSize` (type: `integer`):

Number of items to send per webhook batch

## `webhookOnEachItem` (type: `boolean`):

Send webhook for each individual item

## `requestRetries` (type: `integer`):

Number of times to retry failed API requests

## `timeoutSecs` (type: `integer`):

Request timeout in seconds

## `minDelayMs` (type: `integer`):

Minimum delay between requests in milliseconds

## `maxDelayMs` (type: `integer`):

Maximum delay between requests in milliseconds

## Actor input object example

```json
{
  "mode": "crunchbase_api",
  "announcedAfter": "2024-01-01",
  "lastNDays": 7,
  "fundingStages": [
    "seed",
    "series_a",
    "series_b"
  ],
  "includeUndisclosed": true,
  "hqCountries": [
    "US"
  ],
  "maxItems": 200,
  "maxPages": 20,
  "incremental": true,
  "stateKey": "STATE",
  "notifyOnlyNew": true,
  "outputMode": "rounds",
  "webhookBatchSize": 50,
  "webhookOnEachItem": false,
  "requestRetries": 5,
  "timeoutSecs": 30,
  "minDelayMs": 100,
  "maxDelayMs": 1000
}
```

# 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 = {
    "announcedAfter": "2024-01-01"
};

// Run the Actor and wait for it to finish
const run = await client.actor("happitap/crunchbase-recently-funded-monitor").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 = { "announcedAfter": "2024-01-01" }

# Run the Actor and wait for it to finish
run = client.actor("happitap/crunchbase-recently-funded-monitor").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 '{
  "announcedAfter": "2024-01-01"
}' |
apify call happitap/crunchbase-recently-funded-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,happitap/crunchbase-recently-funded-monitor"
        }
    }
}

```

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/aLk8bngKcbnRgsJq2/builds/EbyTrfMbmxGKy0dYR/openapi.json
