@builtwith/sdk 1.4.2 → 1.4.4
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/README.md +3 -0
- package/package.json +1 -1
- package/src/index.js +20 -0
package/README.md
CHANGED
|
@@ -47,6 +47,8 @@ if (result.ok) {
|
|
|
47
47
|
|---|---|---|
|
|
48
48
|
| `domain_lookup_live({ domain })` | Root domain | Live technology lookup |
|
|
49
49
|
| `domain_lookup({ lookup })` | Root domain | Full domain API data |
|
|
50
|
+
| `change({ lookup, since? })` | Root domain or domain array | Technology additions/removals since a date |
|
|
51
|
+
| `lists({ tech, otherTechs?, filters? })` | Technology name | Sites using a technology; supports numeric filters such as `REVENUE`, `SPEND`, and `EMPLOYEES` |
|
|
50
52
|
| `relationships({ lookup })` | Root domain | Related websites |
|
|
51
53
|
| `free_summary({ lookup })` | Root domain | Free category/group counts |
|
|
52
54
|
| `company_to_url({ company })` | Company name | Domains from a company name |
|
|
@@ -118,6 +120,7 @@ All methods accept a `CancellationToken` as an optional last parameter.
|
|
|
118
120
|
|---|---|---|
|
|
119
121
|
| `domain_lookup_live(domain)` | `string` | Live technology lookup |
|
|
120
122
|
| `domain_lookup(lookup)` | `string` | Full domain API data |
|
|
123
|
+
| `lists(tech, otherTechs?, offset?, country?, since?, filters?)` | `string` | Sites using a technology; supports numeric filters such as `REVENUE`, `SPEND`, and `EMPLOYEES` |
|
|
121
124
|
| `relationships(lookup)` | `string` | Related websites |
|
|
122
125
|
| `free_summary(lookup)` | `string` | Free category/group counts |
|
|
123
126
|
| `company_to_url(company)` | `string` | Domains from a company name |
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -252,6 +252,26 @@ class BuiltWithClient {
|
|
|
252
252
|
return this._request('domain-api', { lookup });
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
async change(params) {
|
|
256
|
+
const { lookup, since } = params || {};
|
|
257
|
+
const lookupValue = Array.isArray(lookup) ? lookup.join(',') : lookup;
|
|
258
|
+
_validate_string('lookup', lookupValue);
|
|
259
|
+
return this._request('change-api', {
|
|
260
|
+
lookup: lookupValue,
|
|
261
|
+
...(since != null ? { since } : {}),
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
async lists(params) {
|
|
266
|
+
const { tech, filters = {}, ...rest } = params || {};
|
|
267
|
+
_validate_string('tech', tech);
|
|
268
|
+
return this._request('lists-api', {
|
|
269
|
+
tech,
|
|
270
|
+
...rest,
|
|
271
|
+
...(filters && Object.keys(filters).length ? { filters } : {}),
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
|
|
255
275
|
async relationships(params) {
|
|
256
276
|
const { lookup } = params || {};
|
|
257
277
|
_validate_domain(lookup);
|