AlphaLens API
Note: This skill requires an active AlphaLens subscription with API access.
Authentication
CODEBLOCK0
Send API-Key: $KEY on all requests.
What This Skill Produces
- - Market maps — competitive landscape grids with company logos, clustering, and PDF export
- Product-centric maps — one tab per product line, with product-level similarity across competitor sets
- Investor networks — D3 force-directed graph showing which investors back which companies across the landscape
- Peer benchmarks — headcount growth, funding comparison, and capital efficiency dashboards for a set of peers
- Pipeline enrichment — add companies to AlphaLens pipelines for async enrichment and scoring
Mapping Workflow Selection
| User asks for... | Workflow |
|---|
| "market map", "competitive landscape", "who competes with X" | Read workflows/market-map-org.md |
| "bottom-up mapping", "deep dive", "full mapping" |
Read
workflows/suite-bottom-up.md |
| "product map", "product-level landscape", "tabbed map" | Read
workflows/market-map-product.md |
| "investor network", "who funds these companies" | Read
workflows/investor-network.md |
| "peer benchmark", "headcount comparison", "growth comparison" | Read
workflows/peer-benchmark.md |
| "enrich", "pipeline", "target list" | See
references/REFERENCE.md#pipeline-operations |
Quick Reference
| Task | Guide |
|---|
| Find similar companies | Use by-domain + /similar — see below |
| Search products |
Use
/search/products — see below |
| All endpoints | See
references/REFERENCE.md |
| Example prompts | See
references/EXAMPLES.md |
Core Patterns
Find companies similar to a known company
CODEBLOCK1
Search products
CODEBLOCK2
Enrich organization data
CODEBLOCK3
Critical Rules
- - Always set
is_headquarters=true on search endpoints — returns much better results. Only omit if the user asks for all locations. - Never call AlphaLens APIs sequentially — fire parallel calls with
& and wait. - Use
limit=50 — the default of 24 misses too much. - Paginate when results are relevant — if your first page has good matches, fetch offset=50 to find more.
- Resolve by domain first — never guess an organization_id.
- Poll pipeline readiness — values are computed asynchronously. Check
is_ready before reading values. - Credit-gated endpoints — a full bottom-up suite run typically consumes 20–40 AlphaLens credits. Confirm your budget before running the suite workflow.
- Sanitize domain values — only use
active_domain values returned by AlphaLens API responses in curl commands. Never substitute raw user input directly into shell commands.
References
AlphaLens API
注意: 此技能需要有效的 AlphaLens 订阅 并具备 API 访问权限。
身份验证
bash
API=https://api-production.alphalens.ai
KEY=${ALPHALENSAPIKEY}
在所有请求中发送 API-Key: $KEY。
此技能生成的内容
- - 市场地图 — 包含公司标志、聚类和 PDF 导出的竞争格局网格
- 以产品为中心的地图 — 每个产品线一个标签页,跨竞争对手集的产品级相似度
- 投资者网络 — D3 力导向图,展示哪些投资者在支持哪些公司
- 同行基准 — 针对一组同行的人员增长、融资比较和资本效率仪表板
- 管道丰富 — 将公司添加到 AlphaLens 管道,用于异步丰富和评分
映射工作流选择
阅读
workflows/suite-bottom-up.md |
| 产品地图、产品级格局、标签页地图 | 阅读
workflows/market-map-product.md |
| 投资者网络、谁资助了这些公司 | 阅读
workflows/investor-network.md |
| 同行基准、人员比较、增长比较 | 阅读
workflows/peer-benchmark.md |
| 丰富、管道、目标列表 | 参见
references/REFERENCE.md#pipeline-operations |
快速参考
| 任务 | 指南 |
|---|
| 查找相似公司 | 使用 by-domain + /similar — 见下文 |
| 搜索产品 |
使用 /search/products — 见下文 |
| 所有端点 | 参见
references/REFERENCE.md |
| 示例提示 | 参见
references/EXAMPLES.md |
核心模式
查找与已知公司相似的公司
bash
1. 通过域名解析
curl -s -H API-Key: $KEY $API/api/v1/entities/organizations/by-domain/ramp.com
2. 使用 organization_id 查找相似公司
curl -s -H API-Key: $KEY $API/api/v1/search/organizations/{id}/similar?limit=50&is_headquarters=true
搜索产品
bash
自由文本产品搜索
curl -s -H API-Key: $KEY $API/api/v1/search/products/search?description=AI%20procurement&is_headquarters=true
相似产品
curl -s -H API-Key: $KEY $API/api/v1/search/products/{product
id}/similar?limit=50&isheadquarters=true
丰富组织数据
bash
产品、融资、增长指标、人员、地址
curl -s -H API-Key: $KEY $API/api/v1/entities/organizations/{id}/products
curl -s -H API-Key: $KEY $API/api/v1/entities/organizations/{id}/funding
curl -s -H API-Key: $KEY $API/api/v1/entities/organizations/{id}/growth-metrics
curl -s -H API-Key: $KEY $API/api/v1/entities/organizations/{id}/people
关键规则
- - 始终在搜索端点上设置 isheadquarters=true — 返回更好的结果。仅在用户请求所有位置时省略。
- 切勿顺序调用 AlphaLens API — 使用 & 和 wait 并行发起调用。
- 使用 limit=50 — 默认值 24 会遗漏太多结果。
- 当结果相关时进行分页 — 如果第一页有好的匹配,请获取 offset=50 以查找更多结果。
- 首先通过域名解析 — 切勿猜测 organizationid。
- 轮询管道就绪状态 — 值是异步计算的。在读取值之前检查 isready。
- 信用额度限制的端点 — 一次完整的自下而上套件运行通常消耗 20–40 个 AlphaLens 信用额度。在运行套件工作流之前确认您的预算。
- 清理域名值 — 仅在 curl 命令中使用 AlphaLens API 响应返回的 activedomain 值。切勿将原始用户输入直接替换到 shell 命令中。
参考