builtwith-api 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +191 -103
- package/dist/cli.js.map +10 -9
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +162 -0
- package/dist/commands.js.map +10 -0
- package/dist/format.d.ts +2 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/index.d.ts +27 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -49
- package/dist/index.js.map +6 -6
- package/dist/params.d.ts.map +1 -1
- package/dist/request.d.ts +1 -1
- package/dist/request.d.ts.map +1 -1
- package/dist/schemas.d.ts +182 -36
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +15 -22
- package/LICENSE +0 -21
- package/README.md +0 -249
- package/dist/config.js +0 -11
- package/dist/config.js.map +0 -1
- package/dist/mcp.d.ts +0 -3
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -689
- package/dist/mcp.js.map +0 -17
- package/dist/params.js +0 -37
- package/dist/params.js.map +0 -1
- package/dist/request.js +0 -39
- package/dist/request.js.map +0 -1
- package/dist/types.d.ts +0 -48
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
package/README.md
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
# BuiltWith API
|
|
2
|
-
|
|
3
|
-
`builtwith-api` is a utility wrapper for the BuiltWith API suite. Find out what any website is built with!
|
|
4
|
-
|
|
5
|
-
Available as a **library**, **CLI**, and **MCP server**.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
npm install builtwith-api
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Requires Node.js >= 18 (uses native `fetch`).
|
|
14
|
-
|
|
15
|
-
## Breaking Changes in v3
|
|
16
|
-
|
|
17
|
-
- **ESM-only** - no more CommonJS/`require()` support
|
|
18
|
-
- **Named export** - `import { createClient } from 'builtwith-api'` (not default/`require`)
|
|
19
|
-
- **Zod validation** - invalid inputs throw `ZodError` instead of manual error messages
|
|
20
|
-
- **Typed responses** - methods return typed response objects (when using JSON format)
|
|
21
|
-
|
|
22
|
-
## Features
|
|
23
|
-
|
|
24
|
-
### Response Formats
|
|
25
|
-
- JSON support
|
|
26
|
-
- XML support
|
|
27
|
-
- CSV support
|
|
28
|
-
- TSV support (lists, relationships)
|
|
29
|
-
- TXT support (lists only)
|
|
30
|
-
|
|
31
|
-
### APIs
|
|
32
|
-
| Method | Description |
|
|
33
|
-
|--------|-------------|
|
|
34
|
-
| `free` | Free technology summary |
|
|
35
|
-
| `domain` | Full domain technology lookup |
|
|
36
|
-
| `lists` | Sites using a technology |
|
|
37
|
-
| `relationships` | Related domains |
|
|
38
|
-
| `keywords` | Domain keyword extraction |
|
|
39
|
-
| `trends` | Technology adoption trends |
|
|
40
|
-
| `companyToUrl` | Company name to domains |
|
|
41
|
-
| `domainLive` | Live domain detection |
|
|
42
|
-
| `trust` | Trust & fraud signals |
|
|
43
|
-
| `tags` | IP & attribute lookups |
|
|
44
|
-
| `recommendations` | Technology suggestions |
|
|
45
|
-
| `redirects` | Redirect chain history |
|
|
46
|
-
| `product` | E-commerce product search |
|
|
47
|
-
|
|
48
|
-
________________
|
|
49
|
-
|
|
50
|
-
## Library Usage
|
|
51
|
-
|
|
52
|
-
```js
|
|
53
|
-
import { createClient } from 'builtwith-api'
|
|
54
|
-
|
|
55
|
-
// Initialize with your API key
|
|
56
|
-
const builtwith = createClient(process.env.YOUR_BUILTWITH_API_KEY, {
|
|
57
|
-
responseFormat: 'json' // 'json' 'xml' 'csv' 'tsv' 'txt' (txt only for lists API)
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
const url = 'facebook.com'
|
|
61
|
-
|
|
62
|
-
// Free lookup - quick summary
|
|
63
|
-
await builtwith.free(url)
|
|
64
|
-
|
|
65
|
-
// Full domain analysis
|
|
66
|
-
await builtwith.domain(url, {
|
|
67
|
-
// This will hide technology description, link, tag and category fields
|
|
68
|
-
hideAll: false,
|
|
69
|
-
// This will hide technology description and link fields (but keep tag and categories)
|
|
70
|
-
hideDescriptionAndLinks: false,
|
|
71
|
-
// This will only return technologies we consider to be live
|
|
72
|
-
onlyLiveTechnologies: true,
|
|
73
|
-
// No meta data (like address, names etc..) will be returned. Improves performance.
|
|
74
|
-
noMetaData: true,
|
|
75
|
-
// No attributes data will be returned
|
|
76
|
-
noAttributeData: true,
|
|
77
|
-
// No personally identifiable information will be returned
|
|
78
|
-
noPII: true,
|
|
79
|
-
// Filter by first detected date range (e.g. '2020-01-01-2024-12-31')
|
|
80
|
-
firstDetectedRange: undefined,
|
|
81
|
-
// Filter by last detected date range
|
|
82
|
-
lastDetectedRange: undefined
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
// List sites using a technology
|
|
86
|
-
const technology = 'Shopify'
|
|
87
|
-
// The name of a technology. Spaces automatically replaced with dashes (-).
|
|
88
|
-
await builtwith.lists(technology, {
|
|
89
|
-
// Brings back meta data with the results, which includes names, titles, social links, addresses, emails, telephone numbers, traffic ranks etc.
|
|
90
|
-
includeMetaData: true,
|
|
91
|
-
// Gets the next page of results - use the exact value from NextOffset in response. If the value of NextOffset is END there are no more results.
|
|
92
|
-
offset: 'oQEwEnH2FJuIzeXOEk2T',
|
|
93
|
-
// Gets live sites using the technology since a certain time, accepts dates and queries i.e. 30 Days Ago or Last January for example.
|
|
94
|
-
since: '2016-01-20'
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
// Find related domains
|
|
98
|
-
await builtwith.relationships(url)
|
|
99
|
-
|
|
100
|
-
// Multi-domain keyword lookup (up to 16 domains)
|
|
101
|
-
const urls = ['hotelscombined.com', 'builtwith.com']
|
|
102
|
-
await builtwith.keywords(urls)
|
|
103
|
-
|
|
104
|
-
// Technology trends over time
|
|
105
|
-
await builtwith.trends(technology, {
|
|
106
|
-
// Totals will be the closest to this date - providing the ability to get historical totals
|
|
107
|
-
date: '2016-01-20'
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
// Find a company's website
|
|
111
|
-
const companyName = 'Shell'
|
|
112
|
-
await builtwith.companyToUrl(companyName, {
|
|
113
|
-
// Bring back domains in order of priority - the first result is generally the one we think the website is
|
|
114
|
-
amount: 1,
|
|
115
|
-
// Set the priority extension - if you know the country of the company supply the most likely TLD. i.e. for United Kingdom use 'uk'
|
|
116
|
-
tld: 'com'
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
// Live domain detection
|
|
120
|
-
await builtwith.domainLive(url)
|
|
121
|
-
|
|
122
|
-
// Trust & fraud detection
|
|
123
|
-
await builtwith.trust(url, {
|
|
124
|
-
// If the words specified here are in the HTML of the website the result will have Stopwords set to true for LIVE lookups.
|
|
125
|
-
words: 'medicine,masks',
|
|
126
|
-
// Performs a live lookup of the website in question. This slows down the response. A result with a status of 'needLive' requires the LIVE option to determine if the website is suspect or not.
|
|
127
|
-
live: false
|
|
128
|
-
})
|
|
129
|
-
|
|
130
|
-
// Get domains related to IPs and site attributes. Use 'IP-1.2.3.4' format for IP lookups.
|
|
131
|
-
await builtwith.tags(url)
|
|
132
|
-
|
|
133
|
-
// Get technology recommendations for a domain
|
|
134
|
-
await builtwith.recommendations(url)
|
|
135
|
-
|
|
136
|
-
// Get live and historical redirect data for a domain
|
|
137
|
-
await builtwith.redirects(url)
|
|
138
|
-
|
|
139
|
-
// Search for e-commerce sites selling specific products
|
|
140
|
-
await builtwith.product('shoes')
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
## CLI
|
|
144
|
-
|
|
145
|
-
The CLI wraps all 13 API methods. No extra dependencies beyond the package itself.
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
builtwith <command> <primary-arg> [--flag value ...]
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Authentication
|
|
152
|
-
|
|
153
|
-
Pass your API key via `--api-key` or the `BUILTWITH_API_KEY` environment variable:
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
# Flag
|
|
157
|
-
builtwith free example.com --api-key YOUR_KEY
|
|
158
|
-
|
|
159
|
-
# Environment variable
|
|
160
|
-
export BUILTWITH_API_KEY=YOUR_KEY
|
|
161
|
-
builtwith free example.com
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
### Examples
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
builtwith free example.com
|
|
168
|
-
builtwith domain example.com --hideAll --onlyLiveTechnologies
|
|
169
|
-
builtwith domain "example.com,other.com"
|
|
170
|
-
builtwith lists Shopify --since 2024-01-01
|
|
171
|
-
builtwith companyToUrl "Acme Corp" --amount 5 --tld com
|
|
172
|
-
builtwith trust example.com --words "shop,buy" --live
|
|
173
|
-
builtwith trends React --date 2024-06-01
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Use `--help` for full usage or `builtwith <command> --help` for command-specific options:
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
builtwith --help
|
|
180
|
-
builtwith domain --help
|
|
181
|
-
builtwith --version
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
## MCP Server
|
|
185
|
-
|
|
186
|
-
The package includes an [MCP](https://modelcontextprotocol.io) server that exposes all 13 API methods as tools for LLM clients (Claude Desktop, etc.).
|
|
187
|
-
|
|
188
|
-
### Claude Desktop Configuration
|
|
189
|
-
|
|
190
|
-
Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json`):
|
|
191
|
-
|
|
192
|
-
```json
|
|
193
|
-
{
|
|
194
|
-
"mcpServers": {
|
|
195
|
-
"builtwith": {
|
|
196
|
-
"command": "npx",
|
|
197
|
-
"args": ["-y", "-p", "builtwith-api", "builtwith-mcp"],
|
|
198
|
-
"env": {
|
|
199
|
-
"BUILTWITH_API_KEY": "YOUR_KEY"
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
Or passing the key directly:
|
|
207
|
-
|
|
208
|
-
```json
|
|
209
|
-
{
|
|
210
|
-
"mcpServers": {
|
|
211
|
-
"builtwith": {
|
|
212
|
-
"command": "npx",
|
|
213
|
-
"args": ["-y", "-p", "builtwith-api", "builtwith-mcp", "--api-key", "YOUR_KEY"]
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
### Tools
|
|
220
|
-
|
|
221
|
-
All tools are prefixed with `builtwith_`:
|
|
222
|
-
|
|
223
|
-
| Tool | Description |
|
|
224
|
-
|------|-------------|
|
|
225
|
-
| `builtwith_free` | Free technology profile for a domain |
|
|
226
|
-
| `builtwith_domain` | Detailed technology profile (supports comma-separated multi-domain) |
|
|
227
|
-
| `builtwith_lists` | List domains using a specific technology |
|
|
228
|
-
| `builtwith_relationships` | Find related domains via shared identifiers |
|
|
229
|
-
| `builtwith_keywords` | Get keywords for domains |
|
|
230
|
-
| `builtwith_trends` | Technology adoption trends |
|
|
231
|
-
| `builtwith_companyToUrl` | Find domains for a company name |
|
|
232
|
-
| `builtwith_domainLive` | Live technology lookup |
|
|
233
|
-
| `builtwith_trust` | Trust/verification score |
|
|
234
|
-
| `builtwith_tags` | Tracking/analytics tags |
|
|
235
|
-
| `builtwith_recommendations` | Technology recommendations |
|
|
236
|
-
| `builtwith_redirects` | Redirect chain history |
|
|
237
|
-
| `builtwith_product` | E-commerce product search |
|
|
238
|
-
|
|
239
|
-
### Testing with MCP Inspector
|
|
240
|
-
|
|
241
|
-
```bash
|
|
242
|
-
npx @modelcontextprotocol/inspector node dist/mcp.js
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
## Learn More
|
|
246
|
-
|
|
247
|
-
Check out the full API docs at [api.builtwith.com](https://api.builtwith.com)
|
|
248
|
-
|
|
249
|
-
For LLM-friendly API documentation, see [api.builtwith.com/llms.txt](https://api.builtwith.com/llms.txt)
|
package/dist/config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VALID_RESPONSE_TYPES = void 0;
|
|
4
|
-
exports.VALID_RESPONSE_TYPES = {
|
|
5
|
-
XML: "xml",
|
|
6
|
-
JSON: "json",
|
|
7
|
-
TXT: "txt",
|
|
8
|
-
CSV: "csv",
|
|
9
|
-
TSV: "tsv",
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAClC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACuC,CAAC"}
|
package/dist/mcp.d.ts
DELETED
package/dist/mcp.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":""}
|