{
  "openapi": "3.0.1",
  "info": {
    "title": "YC Startup Directory Scraper — Companies, Founders & Jobs",
    "description": "Search, filter, or fully export the Y Combinator startup directory: ~6,000 companies with batch, status, industry, team size, founders (no emails) and open jobs with salary/equity — clean typed JSON at $0.0005 per company.",
    "version": "0.1",
    "x-build-id": "sPMerWkKuOv7kmdyF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leorochasantos~yc-directory-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leorochasantos-yc-directory-scraper",
        "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/leorochasantos~yc-directory-scraper/runs": {
      "post": {
        "operationId": "runs-sync-leorochasantos-yc-directory-scraper",
        "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/leorochasantos~yc-directory-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-leorochasantos-yc-directory-scraper",
        "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": {
          "search": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text search over the YC directory (company names, descriptions, keywords). Leave empty to list companies by filters only — an empty search with no filters and Max companies = 0 exports the whole ~6,000-company directory."
          },
          "batch": {
            "title": "Batch filter",
            "type": "array",
            "description": "YC batches to include, e.g. \"Winter 2025\" or the short form \"W25\" (S=Summer, F=Fall, SP/X=Spring). Multiple values are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "industry": {
            "title": "Industry filter",
            "type": "array",
            "description": "Industries as listed on ycombinator.com/companies, e.g. \"B2B\", \"Healthcare\", \"Fintech\", \"Consumer\". Multiple values are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region filter",
            "type": "array",
            "description": "Regions, e.g. \"America / Canada\", \"Europe\", \"South Asia\", \"Remote\". Multiple values are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tag filter",
            "type": "array",
            "description": "Directory tags, e.g. \"AI\", \"SaaS\", \"Developer Tools\". Multiple values are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status filter",
            "type": "array",
            "description": "Company status: Active, Acquired, Public, Inactive. Multiple values are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "hiringOnly": {
            "title": "Hiring companies only",
            "type": "boolean",
            "description": "Only companies currently marked as hiring.",
            "default": false
          },
          "topCompaniesOnly": {
            "title": "Top companies only",
            "type": "boolean",
            "description": "Only companies on YC's Top Companies list.",
            "default": false
          },
          "nonprofitOnly": {
            "title": "Nonprofits only",
            "type": "boolean",
            "description": "Only nonprofit companies.",
            "default": false
          },
          "companySlugs": {
            "title": "Company slugs (direct lookup)",
            "type": "array",
            "description": "Look up specific companies by slug or ycombinator.com/companies/... URL (e.g. \"airbnb\", \"stripe\"). When set, search and all filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum company records to deliver. 0 = no cap (full directory export, ~6,000 companies ≈ $3).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details (founders & socials)",
            "type": "boolean",
            "description": "Fetch each company's YC page for founders (name, title, bio, LinkedIn/Twitter — never emails), LinkedIn/Twitter/GitHub/Crunchbase links, year founded, and group partner. One extra page fetch per company.",
            "default": false
          },
          "includeJobs": {
            "title": "Include open jobs",
            "type": "boolean",
            "description": "Fetch each company's open roles (title, salary and equity ranges, location, visa, skills) as separate job items ($0.001 each). One extra page fetch per company.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy to use for outgoing requests.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}