@getanyapi/sdk 0.120.0 → 0.121.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/index.cjs +94 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +380 -2
- package/dist/index.d.ts +380 -2
- package/dist/index.js +91 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
BingNamespace: () => BingNamespace,
|
|
34
34
|
BlueskyNamespace: () => BlueskyNamespace,
|
|
35
35
|
BookingNamespace: () => BookingNamespace,
|
|
36
|
+
BraveNamespace: () => BraveNamespace,
|
|
36
37
|
CapterraNamespace: () => CapterraNamespace,
|
|
37
38
|
ChatgptNamespace: () => ChatgptNamespace,
|
|
38
39
|
CoinmarketcapNamespace: () => CoinmarketcapNamespace,
|
|
@@ -44,6 +45,7 @@ __export(index_exports, {
|
|
|
44
45
|
ConnectionError: () => ConnectionError,
|
|
45
46
|
ContactEnrichmentNamespace: () => ContactEnrichmentNamespace,
|
|
46
47
|
DouyinNamespace: () => DouyinNamespace,
|
|
48
|
+
DuckduckgoNamespace: () => DuckduckgoNamespace,
|
|
47
49
|
EbayNamespace: () => EbayNamespace,
|
|
48
50
|
EmailFindingNamespace: () => EmailFindingNamespace,
|
|
49
51
|
EmailNamespace: () => EmailNamespace,
|
|
@@ -64,6 +66,7 @@ __export(index_exports, {
|
|
|
64
66
|
InstagramNamespace: () => InstagramNamespace,
|
|
65
67
|
InsufficientBalanceError: () => InsufficientBalanceError,
|
|
66
68
|
JobSearchNamespace: () => JobSearchNamespace,
|
|
69
|
+
LevelsNamespace: () => LevelsNamespace,
|
|
67
70
|
LinkedinNamespace: () => LinkedinNamespace,
|
|
68
71
|
MapsNamespace: () => MapsNamespace,
|
|
69
72
|
MobilePhoneNamespace: () => MobilePhoneNamespace,
|
|
@@ -1621,6 +1624,27 @@ var BookingNamespace = class {
|
|
|
1621
1624
|
}
|
|
1622
1625
|
};
|
|
1623
1626
|
|
|
1627
|
+
// src/generated/platforms/brave.ts
|
|
1628
|
+
var BraveNamespace = class {
|
|
1629
|
+
constructor(_core) {
|
|
1630
|
+
this._core = _core;
|
|
1631
|
+
}
|
|
1632
|
+
_core;
|
|
1633
|
+
/**
|
|
1634
|
+
* Brave Search
|
|
1635
|
+
*
|
|
1636
|
+
* Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call; pick the country Brave searches from.
|
|
1637
|
+
*
|
|
1638
|
+
* Price: $0.00085 per request.
|
|
1639
|
+
*
|
|
1640
|
+
* @example
|
|
1641
|
+
* const res = await client.brave.search({ query: "best running shoes", country: "US", limit: 20 });
|
|
1642
|
+
*/
|
|
1643
|
+
search(input, options) {
|
|
1644
|
+
return this._core.run("brave.search", input, options);
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1624
1648
|
// src/generated/platforms/capterra.ts
|
|
1625
1649
|
var CapterraNamespace = class {
|
|
1626
1650
|
constructor(_core) {
|
|
@@ -2074,6 +2098,27 @@ var DouyinNamespace = class {
|
|
|
2074
2098
|
}
|
|
2075
2099
|
};
|
|
2076
2100
|
|
|
2101
|
+
// src/generated/platforms/duckduckgo.ts
|
|
2102
|
+
var DuckduckgoNamespace = class {
|
|
2103
|
+
constructor(_core) {
|
|
2104
|
+
this._core = _core;
|
|
2105
|
+
}
|
|
2106
|
+
_core;
|
|
2107
|
+
/**
|
|
2108
|
+
* DuckDuckGo Search
|
|
2109
|
+
*
|
|
2110
|
+
* Run a DuckDuckGo web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON, ads left out. Returns up to 10 results per call; pick the country DuckDuckGo searches from.
|
|
2111
|
+
*
|
|
2112
|
+
* Price: $0.00085 per request.
|
|
2113
|
+
*
|
|
2114
|
+
* @example
|
|
2115
|
+
* const res = await client.duckduckgo.search({ query: "best running shoes", country: "US", limit: 10 });
|
|
2116
|
+
*/
|
|
2117
|
+
search(input, options) {
|
|
2118
|
+
return this._core.run("duckduckgo.search", input, options);
|
|
2119
|
+
}
|
|
2120
|
+
};
|
|
2121
|
+
|
|
2077
2122
|
// src/generated/platforms/ebay.ts
|
|
2078
2123
|
var EbayNamespace = class {
|
|
2079
2124
|
constructor(_core) {
|
|
@@ -4542,6 +4587,27 @@ var JobSearchNamespace = class {
|
|
|
4542
4587
|
}
|
|
4543
4588
|
};
|
|
4544
4589
|
|
|
4590
|
+
// src/generated/platforms/levels.ts
|
|
4591
|
+
var LevelsNamespace = class {
|
|
4592
|
+
constructor(_core) {
|
|
4593
|
+
this._core = _core;
|
|
4594
|
+
}
|
|
4595
|
+
_core;
|
|
4596
|
+
/**
|
|
4597
|
+
* Levels.fyi Jobs
|
|
4598
|
+
*
|
|
4599
|
+
* Search Levels.fyi job listings by title or keyword and get each job with its salary range and estimated total compensation where Levels.fyi has them, plus company, location, posting date and apply link. Returns up to 20 jobs per call, grouped by company; filter by location and sort by relevance, date or pay.
|
|
4600
|
+
*
|
|
4601
|
+
* Price: $0.00085 per request.
|
|
4602
|
+
*
|
|
4603
|
+
* @example
|
|
4604
|
+
* const res = await client.levels.jobs({ query: "software engineer", limit: 10, location: "united-states" });
|
|
4605
|
+
*/
|
|
4606
|
+
jobs(input, options) {
|
|
4607
|
+
return this._core.run("levels.jobs", input, options);
|
|
4608
|
+
}
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4545
4611
|
// src/generated/platforms/linkedin.ts
|
|
4546
4612
|
var LinkedinNamespace = class {
|
|
4547
4613
|
constructor(_core) {
|
|
@@ -8030,7 +8096,7 @@ var TwitterNamespace = class {
|
|
|
8030
8096
|
*
|
|
8031
8097
|
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
8032
8098
|
*
|
|
8033
|
-
* Price: $0.
|
|
8099
|
+
* Price: $0.0007 per request.
|
|
8034
8100
|
*
|
|
8035
8101
|
* @example
|
|
8036
8102
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
@@ -9085,6 +9151,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9085
9151
|
this._core
|
|
9086
9152
|
);
|
|
9087
9153
|
}
|
|
9154
|
+
/**
|
|
9155
|
+
* Typed methods for the brave platform.
|
|
9156
|
+
*/
|
|
9157
|
+
get brave() {
|
|
9158
|
+
return this._namespaces["brave"] ??= new BraveNamespace(
|
|
9159
|
+
this._core
|
|
9160
|
+
);
|
|
9161
|
+
}
|
|
9088
9162
|
/**
|
|
9089
9163
|
* Typed methods for the capterra platform.
|
|
9090
9164
|
*/
|
|
@@ -9159,6 +9233,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9159
9233
|
this._core
|
|
9160
9234
|
);
|
|
9161
9235
|
}
|
|
9236
|
+
/**
|
|
9237
|
+
* Typed methods for the duckduckgo platform.
|
|
9238
|
+
*/
|
|
9239
|
+
get duckduckgo() {
|
|
9240
|
+
return this._namespaces["duckduckgo"] ??= new DuckduckgoNamespace(
|
|
9241
|
+
this._core
|
|
9242
|
+
);
|
|
9243
|
+
}
|
|
9162
9244
|
/**
|
|
9163
9245
|
* Typed methods for the ebay platform.
|
|
9164
9246
|
*/
|
|
@@ -9309,6 +9391,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9309
9391
|
this._core
|
|
9310
9392
|
);
|
|
9311
9393
|
}
|
|
9394
|
+
/**
|
|
9395
|
+
* Typed methods for the levels platform.
|
|
9396
|
+
*/
|
|
9397
|
+
get levels() {
|
|
9398
|
+
return this._namespaces["levels"] ??= new LevelsNamespace(
|
|
9399
|
+
this._core
|
|
9400
|
+
);
|
|
9401
|
+
}
|
|
9312
9402
|
/**
|
|
9313
9403
|
* Typed methods for the linkedin platform.
|
|
9314
9404
|
*/
|
|
@@ -9673,6 +9763,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9673
9763
|
BingNamespace,
|
|
9674
9764
|
BlueskyNamespace,
|
|
9675
9765
|
BookingNamespace,
|
|
9766
|
+
BraveNamespace,
|
|
9676
9767
|
CapterraNamespace,
|
|
9677
9768
|
ChatgptNamespace,
|
|
9678
9769
|
CoinmarketcapNamespace,
|
|
@@ -9684,6 +9775,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9684
9775
|
ConnectionError,
|
|
9685
9776
|
ContactEnrichmentNamespace,
|
|
9686
9777
|
DouyinNamespace,
|
|
9778
|
+
DuckduckgoNamespace,
|
|
9687
9779
|
EbayNamespace,
|
|
9688
9780
|
EmailFindingNamespace,
|
|
9689
9781
|
EmailNamespace,
|
|
@@ -9704,6 +9796,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9704
9796
|
InstagramNamespace,
|
|
9705
9797
|
InsufficientBalanceError,
|
|
9706
9798
|
JobSearchNamespace,
|
|
9799
|
+
LevelsNamespace,
|
|
9707
9800
|
LinkedinNamespace,
|
|
9708
9801
|
MapsNamespace,
|
|
9709
9802
|
MobilePhoneNamespace,
|