# YC Companies Scraper (`moving_beacon-owner1/yc-companies-scraper`) Actor

Scrapes Y Combinator's public company API, capturing company names, YC batch, status, descriptions, websites, company profile URLs, logos, team sizes, industries, tags, locations, regions, and hiring status, with filters for batch and keyword, configurable page and record limits

- **URL**: https://apify.com/moving_beacon-owner1/yc-companies-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 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/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

## Y Combinator Company Directory Scraper

An Apify Actor that collects startup and company information from Y Combinator's public company API.

**Data Source:** https://api.ycombinator.com/v0.1/companies

### Features

- **Public API Integration:** Retrieves company records from Y Combinator's public company API.
- **Batch Filtering:** Collect companies from a specific YC batch, such as `W24`, `S23`, or other supported batch values.
- **Keyword Search:** Filters collected companies by name, description, one-liner, tags, industries, and batch.
- **Rich Company Data:** Extracts company profiles, descriptions, websites, industries, locations, team sizes, and hiring information.
- **Pagination Support:** Fetches multiple API pages, with 25 companies per page.
- **Automatic Deduplication:** Prevents duplicate company records using their source IDs.
- **Retry Handling:** Retries transient HTTP errors and failed requests.
- **Configurable Request Delays:** Adds randomized delays between requests to reduce request frequency.
- **Run Summary:** Saves collection statistics and HTTP response statuses in the Apify Key-Value Store.
- **No Authentication Required:** No login, API key, browser, or proxy is required.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `batch` | String | `""` | YC batch filter, such as `W24` or `S23`. Leave empty for all batches. |
| `query` | String | `""` | Optional keyword filter applied locally to company names, descriptions, one-liners, tags, industries, and batches. |
| `pages` | Integer | `2` | Number of API pages to fetch. Each page contains up to 25 companies. |
| `limit` | Integer | `40` | Maximum number of matching company records to collect. |
| `delay` | Float | `0.8` | Base delay between requests in seconds. Actual delay is randomized between the base value and 1.5 times that value. |
| `timeout` | Float | `30` | HTTP request timeout in seconds. |
| `retries` | Integer | `3` | Maximum number of attempts for failed or transient requests. |

### Example Input

#### Collect companies from a specific YC batch

```json
{
    "batch": "W24",
    "query": "",
    "pages": 5,
    "limit": 100,
    "delay": 0.8,
    "timeout": 30,
    "retries": 3
}
```

#### Search companies by keyword

```json
{
    "batch": "",
    "query": "artificial intelligence",
    "pages": 10,
    "limit": 100,
    "delay": 0.8,
    "timeout": 30,
    "retries": 3
}
```

#### Collect companies across available batches

```json
{
    "batch": "",
    "query": "",
    "pages": 20,
    "limit": 500,
    "delay": 1,
    "timeout": 30,
    "retries": 3
}
```

### Output Dataset

Each company is saved as an individual record in the default Apify Dataset.

| Field | Type | Description |
|---|---|---|
| `source_id` | String | Unique company ID from the YC API. |
| `name` | String | Company name. |
| `slug` | String | Company URL slug. |
| `batch` | String | Y Combinator batch, such as `W24` or `S23`. |
| `status` | String | Company status provided by the API. |
| `one_liner` | String | Short company description. |
| `description` | String | Full company description, when available. |
| `website` | String | Official company website. |
| `yc_url` | String | Y Combinator company profile URL. |
| `logo_url` | String | Company logo image URL. |
| `team_size` | String | Company team size. |
| `industry` | String | First industry listed for the company. |
| `industries` | String | All available industries, separated by semicolons. |
| `tags` | String | Company tags, separated by semicolons. |
| `locations` | String | Company locations, separated by semicolons. |
| `regions` | String | Company regions, separated by semicolons. |
| `is_hiring` | String | `yes` if the API includes the hiring badge; otherwise `no`. |
| `badges` | String | Available company badges, separated by semicolons. |
| `scraped_at` | String | UTC timestamp when the record was collected. |

#### Example Output

```json
{
    "source_id": "12345",
    "name": "Example AI",
    "slug": "example-ai",
    "batch": "W24",
    "status": "Active",
    "one_liner": "Building AI tools for businesses",
    "description": "A company developing artificial intelligence solutions.",
    "website": "https://example.com",
    "yc_url": "https://www.ycombinator.com/companies/example-ai",
    "logo_url": "https://example.com/logo.png",
    "team_size": "11-50",
    "industry": "Artificial Intelligence",
    "industries": "Artificial Intelligence; B2B",
    "tags": "AI; SaaS; Enterprise",
    "locations": "San Francisco",
    "regions": "United States",
    "is_hiring": "yes",
    "badges": "isHiring",
    "scraped_at": "2026-11-16T09:00:00+00:00"
}
```

*Note: This is an illustrative output structure. Actual values depend on the records returned by the YC API.*

### Run Summary

After execution, the actor saves a run summary in the Apify Key-Value Store under the key `SUMMARY`.

The summary includes:

| Field | Description |
|---|---|
| `source` | YC API endpoint used for collection. |
| `batch` | Selected batch or `all`. |
| `query` | Applied keyword filter. |
| `pages_requested` | Number of pages configured. |
| `pages_fetched` | Number of pages successfully fetched. |
| `total_pages` | Total page count reported by the API, when available. |
| `raw_companies_scanned` | Total raw company records scanned before filtering. |
| `records_collected` | Number of matching unique records collected. |
| `http_statuses` | HTTP response statuses received during requests. |
| `scraped_at` | UTC timestamp of the run summary. |

### How It Works

1. Reads the actor input parameters.
2. Connects to the public Y Combinator company API.
3. Requests company records page by page.
4. Applies the optional batch filter through the API request.
5. Normalizes company information into structured records.
6. Applies the keyword filter locally.
7. Removes duplicate records using company source IDs.
8. Stops when the configured record limit or available page count is reached.
9. Pushes collected companies to the default Apify Dataset.
10. Saves execution statistics under the `SUMMARY` key.

### How to Run

#### Via Apify Console

1. Open the actor in your Apify Console.
2. Configure the batch, query, pages, and limit parameters.
3. Adjust request delay, timeout, and retries if required.
4. Click **Start** to execute the actor.
5. Open the default Dataset to view collected company records.
6. Access the Key-Value Store and open `SUMMARY` to inspect run statistics.

#### Via Apify CLI

Run the actor locally using:

```bash
apify run
```

Provide input through the Apify Console or your configured local actor input.

### Policy & Compliance Guidelines

- **Public Data Source:** The actor uses Y Combinator's publicly accessible company API.
- **Terms of Service:** Users should review and follow Y Combinator's applicable website and API terms.
- **Responsible Requesting:** Use reasonable request delays and avoid excessive request volumes or unnecessary repeated collection.
- **Privacy Compliance:** Handle collected company information responsibly and comply with applicable data protection and privacy laws.
- **Permissible Use:** Intended for startup research, market analysis, investment discovery, company intelligence, and business research.
- **Prohibited Misuse:** Do not use collected information for spam, unsolicited bulk outreach, harassment, or unlawful activities.
- **Independent Tool:** This actor is not affiliated with, endorsed by, or sponsored by Y Combinator.

### Limitations & Important Notes

- The API returns 25 companies per page according to the supplied implementation.
- The `query` filter is applied locally after each API page is retrieved; it is not sent to the YC API.
- The `batch` filter is passed directly to the API.
- The configured `pages` value limits how many pages are requested.
- The `limit` applies to matching, unique records rather than raw API records.
- Company fields depend on the information available in the API response.
- The actor retries transient HTTP errors, including rate-limit and server-error responses.
- The actor does not require browser automation, authentication, or proxy configuration.
- API response structure and availability may change over time.

# Actor input Schema

## `batch` (type: `string`):

YC batch, e.g. W24, S23. Leave empty for all companies.

## `query` (type: `string`):

Client-side text filter applied to name, one-liner, description, tags, industries.

## `pages` (type: `integer`):

Number of API pages to fetch (25 companies per page).

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

Maximum number of companies to collect.

## `delay` (type: `number`):

Base delay between API requests in seconds.

## `timeout` (type: `number`):

HTTP request timeout in seconds.

## `retries` (type: `integer`):

Number of retries for transient errors.

## Actor input object example

```json
{
  "batch": "",
  "query": "",
  "pages": 2,
  "limit": 40,
  "delay": 0.8,
  "timeout": 30,
  "retries": 3
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/yc-companies-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/yc-companies-scraper").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 '{}' |
apify call moving_beacon-owner1/yc-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/yc-companies-scraper"
        }
    }
}
```

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/1BTtUnwpUpo8iD1j0/builds/e9GA4dDxBK0rd8z90/openapi.json
