ZB 

TypeScript 库、MCP 以及 BuiltWith API 的代理友好 CLI。
概览
通过您的应用、终端或 AI 代理查询 BuiltWith API。 需要 Node.js >= 18(使用原生取指)。 - - 不再支持 CommonJS/require() - - 从 'builtwith-api' 导入 { createClient }(非默认/必需) - - 无效输入会抛出 ZodError 而非手动错误消息 - - 方法返回类型响应对象(使用 JSON 格式时) - JSON 支持 - XML 支持 - CSV 支持 - TSV 支持(列表、关系) - TXT 支持(仅列表) CLI会封装所有13个API方法。除了包本身,没有额外的依赖。 通过 --api-key 或 BUILTWITH_API_KEY 环境变量传递你的 API 密钥: 完整使用时使用--help,或使用命令专用选项的Builtwith --help: MCP服务器作为一个独立包提供:builtwith-mcp。它将所有13种API方法作为LLM客户端的工具(如Claude Desktop、Cursor等)提供。
概述(AI 翻译)
通过您的应用、终端或 AI 代理查询 BuiltWith API。
安装
需要 Node.js >= 18(使用原生 fetch)。
v3的重大变革
- 仅支持 ESM - 不再支持 CommonJS/
require() - 命名导出 -
import { createClient } from 'builtwith-api'(非默认/require) - Zod 验证 - 无效输入会抛出
ZodError而非手动错误消息 - 类型响应 - 方法返回带有类型化的响应对象(使用JSON格式时)
特色
响应格式
- 支持 JSON
- XML 支持
- CSV 支持
- TSV 支持(列表、关系)
- TXT支持(仅列表)
API
| 方法 | 描述 |
|---|---|
free |
免费技术摘要 |
domain |
全域技术查询 |
lists |
使用技术的网站 |
relationships |
相关领域 |
keywords |
域名关键词提取 |
trends |
技术采用趋势 |
companyToUrl |
公司名称到域名 |
domainLive |
活域检测 |
trust |
信任与欺诈信号 |
tags |
IP 和属性查询 |
recommendations |
技术建议 |
redirects |
重定向链历史 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
BuiltWith API
Query the BuiltWith API from your app, terminal, or AI agent.
Installation
# Homebrew (CLI only)
brew install zcaceres/tap/builtwith
# npm (library + CLI)
npm install builtwith-api
# MCP server (separate package)
npm install -g builtwith-mcp
Requires Node.js >= 18 (uses native fetch).
Breaking Changes in v3
- ESM-only - no more CommonJS/
require()support - Named export -
import { createClient } from 'builtwith-api'(not default/require) - Zod validation - invalid inputs throw
ZodErrorinstead of manual error messages - Typed responses - methods return typed response objects (when using JSON format)
Features
Response Formats
- JSON support
- XML support
- CSV support
- TSV support (lists, relationships)
- TXT support (lists only)
APIs
| Method | Description |
|---|---|
free |
Free technology summary |
domain |
Full domain technology lookup |
lists |
Sites using a technology |
relationships |
Related domains |
keywords |
Domain keyword extraction |
trends |
Technology adoption trends |
companyToUrl |
Company name to domains |
domainLive |
Live domain detection |
trust |
Trust & fraud signals |
tags |
IP & attribute lookups |
recommendations |
Technology suggestions |
redirects |
Redirect chain history |
product |
E-commerce product search |
Library Usage
import { createClient } from 'builtwith-api'
// Initialize with your API key
const builtwith = createClient(process.env.BUILTWITH_API_KEY, {
responseFormat: 'json' // 'json' 'xml' 'csv' 'tsv' 'txt' (txt only for lists API)
})
const url = 'facebook.com'
// Free lookup - quick summary
await builtwith.free(url)
// Full domain analysis
await builtwith.domain(url, {
// This will hide technology description, link, tag and category fields
hideAll: false,
// This will hide technology description and link fields (but keep tag and categories)
hideDescriptionAndLinks: false,
// This will only return technologies we consider to be live
onlyLiveTechnologies: true,
// No meta data (like address, names etc..) will be returned. Improves performance.
noMetaData: true,
// No attributes data will be returned
noAttributeData: true,
// No personally identifiable information will be returned
noPII: true,
// Filter by first detected date range (e.g. '2020-01-01-2024-12-31')
firstDetectedRange: undefined,
// Filter by last detected date range
lastDetectedRange: undefined
})
// List sites using a technology
const technology = 'Shopify'
// The name of a technology. Spaces automatically replaced with dashes (-).
await builtwith.lists(technology, {
// Brings back meta data with the results, which includes names, titles, social links, addresses, emails, telephone numbers, traffic ranks etc.
includeMetaData: true,
安装
npx -y builtwith-mcp配置
{
"mcpServers": {
"builtwith": {
"command": "npx",
"args": ["-y", "builtwith-mcp"],
"env": {
"BUILTWITH_API_KEY": "YOUR_KEY"
}
}
}
}