其他
用 yc-oss 公共 API 调研 YC 公司、批次…
当需要用只读公开数据查询 Y Combinator 公司、批次、行业/标签、招聘状态或多样性数据时使用。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 38/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 57/100 ×0.15
适用场景
用 yc-oss 公共 API 调研 Y特定
解决思路
- 无需认证,直接用 `curl` 获取 JSON 端点;这是只读数据源,不执行写操作。
- 确认本机有 `curl` 和 `jq`:运行 `command -v curl` 与 `command -v jq`;若 `jq` 缺失,macOS 用 `brew install jq`,Debian/Ubuntu 用 `sudo apt-get install jq`;没有 `jq` 时仍可用 `curl` 取原始 JSON 并用 Python 等解析。
- 根据用户请求选择端点:总体统计用 `meta.json`;全部公司用 `companies/all.json`;头部公司用 `companies/top.json`;招聘中用 `companies/hiring.json`;非营利用 `companies/nonprofit.json`。
- 多样性数据用 `companies/black-founded.json`、`companies/hispanic-latino-founded.json`、`companies/women-founded.json`。
- 特定批次用 `batches/{batch-name}.json`,例如 `winter-2026.json`、`spring-2026.json`、`fall-2025.json`。
- 单个公司档案用 `batches/{batch-name}/{slug}.json`,例如 `batches/summer-2009/stripe.json`、`batches/winter-2009/airbnb.json`。
- 按行业查询用 `industries/{industry}.json`,例如 `fintech.json`、`healthcare.json`。
- 按标签查询用 `tags/{tag}.json`,例如 `ai.json`、`developer-tools.json`。
- 批次名格式为 `{season}-{year}`:`winter-2026`、`spring-2026`、`summer-2026`、`fall-2025`;可回溯到 `summer-2005`;单公司端点也接受短形式如 `w09`、`s21`。
- 行业和标签名用小写加连字符:`real-estate`、`developer-tools`、`machine-learning`。
- Base URL 是 `https://yc-oss.github.io/api/`。
- 通用请求模式:`curl -s https://yc-oss.github.io/api/companies/top.json | jq .` 获取并美化输出。
- 计数:`curl -s https://yc-oss.github.io/api/batches/winter-2025.json | jq length`。
- 按字段过滤,例如筛选批次中正在招聘的公司:`curl -s https://yc-oss.github.io/api/batches/winter-2025.json | jq '[.[] | select(.isHiring == true)]'`。
- 提取特定字段:`curl -s https://yc-oss.github.io/api/companies/top.json | jq '.[] | {name, one_liner, batch, team_size, website}'`。
- 按名称不区分大小写搜索:`curl -s https://yc-oss.github.io/api/companies/all.json | jq '[.[] | select(.name | test("stripe"; "i"))]'`。
- 使用 `curl` 时加 `-s` 抑制进度输出。
- 用 `jq` 管道处理,便于阅读和过滤。
- 除非必要,避免获取 `companies/all.json`,因为它约 5,700 家公司、响应很大;优先用批次、行业、标签等更具体的端点。
- API 没有专用端点时,用 `jq` 的 `select`/`filter` 在客户端缩小结果。
- 批次名必须小写加连字符:`winter-2025`,不要写 `Winter 2025` 或 `W25`。
- 标签和行业名必须小写加连字符:`developer-tools`,不要写 `Developer Tools`。
- 常用 `jq` 过滤器:`jq length` 计数结果。
- `jq '.[0]'` 取第一家公司。
- `jq '.[:10]'` 取前 10 家公司。
- `jq '[.[] | select(.isHiring == true)]'` 只取正在招聘的公司。
- `jq '[.[] | select(.status == "Active")]'` 只取活跃公司。
- `jq '[.[] | select(.team_size > 100)]'` 取团队规模 100+ 的公司。
- `jq '.[] | {name, one_liner, batch, website}'` 选择特定字段。
- `jq '[.[] | select(.name | test("query"; "i"))]'` 按名称搜索。
- `jq 'sort_by(-.team_size) | .[:10]'` 按团队规模降序取前 10。
- 展示结果时总结关键数据:公司名、one-liner、批次、团队规模、状态、网站。
- 突出招聘状态,标注正在积极招聘的公司(增长信号)。
- 当用户可能想访问公司时,包含 website URL。
- 对于批次列表,总结批次规模和值得注意的公司。
- 对于行业/标签查询,突出趋势:公司数量、哪些是头部/正在招聘。
- 对于研究型查询,提供聚合统计:数量、常见行业、团队规模分布。
- 注明数据新鲜度:API 每日更新,数据接近实时。
- 诊断 `404 Not Found`:批次、行业或标签名无效;检查 `meta.json` 获取有效名称。
- 诊断空数组 `[]`:没有公司匹配查询;扩大搜索范围或检查拼写。
- 诊断 `curl: Could not resolve host`:无互联网连接;检查网络连通性。
- 诊断响应大/慢:可能正在获取 `companies/all.json`(5,700+ 条);改用更具体端点或加 `jq` 过滤。
- 发现有效批次名:`curl -s https://yc-oss.github.io/api/meta.json | jq '.batches[].name'`。
- 发现有效行业名:`curl -s https://yc-oss.github.io/api/meta.json | jq '.industries[].name'`。
- 发现有效标签名(333+):`curl -s https://yc-oss.github.io/api/meta.json | jq '.tags[].name'`。
- 需要精确公司字段 schema、有效批次/行业/标签名或详细研究工作流时,阅读参考文件 `references/api_reference.md`。
适用边界 · 注意事项
- 需要非公开/未发布 YC 公司数据、实时融资数据或写操作时不适用;该 API 只读且仅索引公开已发布公司。
- 需要官方 YC 数据或付费商业数据库的权威性与完整字段时不适用;yc-oss/api 是非官方开源 API。
- 环境无法访问互联网或不能使用 curl/jq 且无替代解析方式时无法直接使用。