@getanyapi/sdk 0.48.2 → 0.49.0
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -22
- package/dist/index.d.ts +39 -22
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -9594,9 +9594,11 @@ interface DouyinSearchVideosInput {
|
|
|
9594
9594
|
*/
|
|
9595
9595
|
searchId?: string;
|
|
9596
9596
|
/**
|
|
9597
|
-
* Sort order
|
|
9597
|
+
* Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted.
|
|
9598
|
+
* One of: relevance, most-liked, date-posted.
|
|
9599
|
+
* Default: relevance.
|
|
9598
9600
|
*/
|
|
9599
|
-
sort?:
|
|
9601
|
+
sort?: "relevance" | "most-liked" | "date-posted";
|
|
9600
9602
|
/**
|
|
9601
9603
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
9602
9604
|
*/
|
|
@@ -9749,9 +9751,11 @@ interface DouyinUserPostsInput {
|
|
|
9749
9751
|
*/
|
|
9750
9752
|
secUserId: string;
|
|
9751
9753
|
/**
|
|
9752
|
-
* Post order
|
|
9754
|
+
* Post order: newest, most-popular.
|
|
9755
|
+
* One of: newest, most-popular.
|
|
9756
|
+
* Default: newest.
|
|
9753
9757
|
*/
|
|
9754
|
-
sort?:
|
|
9758
|
+
sort?: "newest" | "most-popular";
|
|
9755
9759
|
/**
|
|
9756
9760
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
9757
9761
|
*/
|
|
@@ -10127,7 +10131,7 @@ declare class DouyinNamespace {
|
|
|
10127
10131
|
* Price: $0.012 per request.
|
|
10128
10132
|
*
|
|
10129
10133
|
* @example
|
|
10130
|
-
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort:
|
|
10134
|
+
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort: "relevance" });
|
|
10131
10135
|
*/
|
|
10132
10136
|
searchVideos(input: DouyinSearchVideosInput, options?: RequestOptions): Promise<RunResult<DouyinSearchVideosData>>;
|
|
10133
10137
|
/**
|
|
@@ -10138,7 +10142,7 @@ declare class DouyinNamespace {
|
|
|
10138
10142
|
* Price: $0.0012 per request.
|
|
10139
10143
|
*
|
|
10140
10144
|
* @example
|
|
10141
|
-
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort:
|
|
10145
|
+
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort: "newest" });
|
|
10142
10146
|
*/
|
|
10143
10147
|
userPosts(input: DouyinUserPostsInput, options?: RequestOptions): Promise<RunResult<DouyinUserPostsData>>;
|
|
10144
10148
|
/**
|
|
@@ -16318,8 +16322,9 @@ interface GithubTrendingDevelopersInput {
|
|
|
16318
16322
|
preferLatencyUnderMs?: number;
|
|
16319
16323
|
/**
|
|
16320
16324
|
* Trending range: daily, weekly, or monthly (defaults to daily).
|
|
16325
|
+
* One of: daily, weekly, monthly.
|
|
16321
16326
|
*/
|
|
16322
|
-
since?:
|
|
16327
|
+
since?: "daily" | "weekly" | "monthly";
|
|
16323
16328
|
/**
|
|
16324
16329
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
16325
16330
|
*/
|
|
@@ -17617,8 +17622,9 @@ interface GoogleImagesInput {
|
|
|
17617
17622
|
source?: string[];
|
|
17618
17623
|
/**
|
|
17619
17624
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
17625
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
17620
17626
|
*/
|
|
17621
|
-
timeframe?:
|
|
17627
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
17622
17628
|
}
|
|
17623
17629
|
interface GoogleImagesItem {
|
|
17624
17630
|
/**
|
|
@@ -18056,8 +18062,9 @@ interface GoogleSearchInput {
|
|
|
18056
18062
|
source?: string[];
|
|
18057
18063
|
/**
|
|
18058
18064
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18065
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18059
18066
|
*/
|
|
18060
|
-
timeframe?:
|
|
18067
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18061
18068
|
}
|
|
18062
18069
|
interface GoogleSearchResult {
|
|
18063
18070
|
/**
|
|
@@ -18131,8 +18138,9 @@ interface GoogleSearch100Input {
|
|
|
18131
18138
|
source?: string[];
|
|
18132
18139
|
/**
|
|
18133
18140
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18141
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18134
18142
|
*/
|
|
18135
|
-
timeframe?:
|
|
18143
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18136
18144
|
}
|
|
18137
18145
|
interface GoogleSearch100Result {
|
|
18138
18146
|
/**
|
|
@@ -18216,8 +18224,9 @@ interface GoogleVideosInput {
|
|
|
18216
18224
|
source?: string[];
|
|
18217
18225
|
/**
|
|
18218
18226
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18227
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18219
18228
|
*/
|
|
18220
|
-
timeframe?:
|
|
18229
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18221
18230
|
}
|
|
18222
18231
|
interface GoogleVideosResult {
|
|
18223
18232
|
/**
|
|
@@ -29224,7 +29233,7 @@ declare class LinkedinNamespace {
|
|
|
29224
29233
|
*
|
|
29225
29234
|
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
29226
29235
|
*
|
|
29227
|
-
* Price: $0.
|
|
29236
|
+
* Price: $0.018 per request.
|
|
29228
29237
|
*
|
|
29229
29238
|
* @example
|
|
29230
29239
|
* const res = await client.linkedin.searchPosts({ query: "hiring", datePosted: "last-week" });
|
|
@@ -40078,8 +40087,9 @@ interface RedditSubredditSearchInput {
|
|
|
40078
40087
|
requireFields?: ("author" | "authorId" | "createdUtc" | "isArchived" | "isLocked" | "nextCursor" | "nsfw" | "numComments" | "score" | "selftext")[];
|
|
40079
40088
|
/**
|
|
40080
40089
|
* Optional sort order: relevance, hot, top, new, comments.
|
|
40090
|
+
* One of: relevance, hot, top, new, comments.
|
|
40081
40091
|
*/
|
|
40082
|
-
sort?:
|
|
40092
|
+
sort?: "relevance" | "hot" | "top" | "new" | "comments";
|
|
40083
40093
|
/**
|
|
40084
40094
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
40085
40095
|
*/
|
|
@@ -40090,8 +40100,9 @@ interface RedditSubredditSearchInput {
|
|
|
40090
40100
|
subreddit: string;
|
|
40091
40101
|
/**
|
|
40092
40102
|
* Optional time filter: all, year, month, week, day, hour.
|
|
40103
|
+
* One of: all, year, month, week, day, hour.
|
|
40093
40104
|
*/
|
|
40094
|
-
timeframe?:
|
|
40105
|
+
timeframe?: "all" | "year" | "month" | "week" | "day" | "hour";
|
|
40095
40106
|
}
|
|
40096
40107
|
interface RedditSubredditSearchPost {
|
|
40097
40108
|
/**
|
|
@@ -47475,9 +47486,11 @@ interface TiktokSearchKeywordInput {
|
|
|
47475
47486
|
*/
|
|
47476
47487
|
requireCursor?: boolean;
|
|
47477
47488
|
/**
|
|
47478
|
-
* Sort order
|
|
47489
|
+
* Sort order: relevance, most-liked, date-posted.
|
|
47490
|
+
* One of: relevance, most-liked, date-posted.
|
|
47491
|
+
* Default: relevance.
|
|
47479
47492
|
*/
|
|
47480
|
-
sortBy?:
|
|
47493
|
+
sortBy?: "relevance" | "most-liked" | "date-posted";
|
|
47481
47494
|
/**
|
|
47482
47495
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
47483
47496
|
*/
|
|
@@ -47716,8 +47729,9 @@ interface TiktokSearchTopInput {
|
|
|
47716
47729
|
preferLatencyUnderMs?: number;
|
|
47717
47730
|
/**
|
|
47718
47731
|
* Time-frame filter: yesterday, this-week, this-month, last-3-months, last-6-months, all-time.
|
|
47732
|
+
* One of: yesterday, this-week, this-month, last-3-months, last-6-months, all-time.
|
|
47719
47733
|
*/
|
|
47720
|
-
publishTime?:
|
|
47734
|
+
publishTime?: "yesterday" | "this-week" | "this-month" | "last-3-months" | "last-6-months" | "all-time";
|
|
47721
47735
|
/**
|
|
47722
47736
|
* Keyword to search for (e.g. "funny").
|
|
47723
47737
|
*/
|
|
@@ -47728,8 +47742,9 @@ interface TiktokSearchTopInput {
|
|
|
47728
47742
|
region?: string;
|
|
47729
47743
|
/**
|
|
47730
47744
|
* Sort order: relevance, most-liked, date-posted.
|
|
47745
|
+
* One of: relevance, most-liked, date-posted.
|
|
47731
47746
|
*/
|
|
47732
|
-
sortBy?:
|
|
47747
|
+
sortBy?: "relevance" | "most-liked" | "date-posted";
|
|
47733
47748
|
/**
|
|
47734
47749
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
47735
47750
|
*/
|
|
@@ -49152,7 +49167,7 @@ declare class TiktokNamespace {
|
|
|
49152
49167
|
* Price: $0.0007 per request.
|
|
49153
49168
|
*
|
|
49154
49169
|
* @example
|
|
49155
|
-
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy:
|
|
49170
|
+
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy: "relevance" });
|
|
49156
49171
|
*/
|
|
49157
49172
|
searchKeyword(input: TiktokSearchKeywordInput, options?: RequestOptions): Promise<RunResult<TiktokSearchKeywordData>>;
|
|
49158
49173
|
/**
|
|
@@ -49196,7 +49211,7 @@ declare class TiktokNamespace {
|
|
|
49196
49211
|
*
|
|
49197
49212
|
* Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.
|
|
49198
49213
|
*
|
|
49199
|
-
* Price: $0.
|
|
49214
|
+
* Price: $0.0009 per request.
|
|
49200
49215
|
*
|
|
49201
49216
|
* @example
|
|
49202
49217
|
* const res = await client.tiktok.searchTop({ query: "funny" });
|
|
@@ -50751,9 +50766,10 @@ interface TrustpilotReviewsInput {
|
|
|
50751
50766
|
requireFields?: ("author" | "authorCountry" | "avatarUrl" | "language" | "rating" | "reviewerReviewsCount" | "verified")[];
|
|
50752
50767
|
/**
|
|
50753
50768
|
* Review ordering: auto, relevancy, or recent (e.g. recent).
|
|
50769
|
+
* One of: auto, relevancy, recent.
|
|
50754
50770
|
* Default: auto.
|
|
50755
50771
|
*/
|
|
50756
|
-
sortBy?:
|
|
50772
|
+
sortBy?: "auto" | "relevancy" | "recent";
|
|
50757
50773
|
/**
|
|
50758
50774
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
50759
50775
|
*/
|
|
@@ -56040,8 +56056,9 @@ interface YoutubeVideoCommentsInput {
|
|
|
56040
56056
|
ignoreSources?: string[];
|
|
56041
56057
|
/**
|
|
56042
56058
|
* Comment order (e.g. top, newest).
|
|
56059
|
+
* One of: top, newest.
|
|
56043
56060
|
*/
|
|
56044
|
-
order?:
|
|
56061
|
+
order?: "top" | "newest";
|
|
56045
56062
|
/**
|
|
56046
56063
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
56047
56064
|
* Range: minimum 1.
|
package/dist/index.d.ts
CHANGED
|
@@ -9594,9 +9594,11 @@ interface DouyinSearchVideosInput {
|
|
|
9594
9594
|
*/
|
|
9595
9595
|
searchId?: string;
|
|
9596
9596
|
/**
|
|
9597
|
-
* Sort order
|
|
9597
|
+
* Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted.
|
|
9598
|
+
* One of: relevance, most-liked, date-posted.
|
|
9599
|
+
* Default: relevance.
|
|
9598
9600
|
*/
|
|
9599
|
-
sort?:
|
|
9601
|
+
sort?: "relevance" | "most-liked" | "date-posted";
|
|
9600
9602
|
/**
|
|
9601
9603
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
9602
9604
|
*/
|
|
@@ -9749,9 +9751,11 @@ interface DouyinUserPostsInput {
|
|
|
9749
9751
|
*/
|
|
9750
9752
|
secUserId: string;
|
|
9751
9753
|
/**
|
|
9752
|
-
* Post order
|
|
9754
|
+
* Post order: newest, most-popular.
|
|
9755
|
+
* One of: newest, most-popular.
|
|
9756
|
+
* Default: newest.
|
|
9753
9757
|
*/
|
|
9754
|
-
sort?:
|
|
9758
|
+
sort?: "newest" | "most-popular";
|
|
9755
9759
|
/**
|
|
9756
9760
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
9757
9761
|
*/
|
|
@@ -10127,7 +10131,7 @@ declare class DouyinNamespace {
|
|
|
10127
10131
|
* Price: $0.012 per request.
|
|
10128
10132
|
*
|
|
10129
10133
|
* @example
|
|
10130
|
-
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort:
|
|
10134
|
+
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort: "relevance" });
|
|
10131
10135
|
*/
|
|
10132
10136
|
searchVideos(input: DouyinSearchVideosInput, options?: RequestOptions): Promise<RunResult<DouyinSearchVideosData>>;
|
|
10133
10137
|
/**
|
|
@@ -10138,7 +10142,7 @@ declare class DouyinNamespace {
|
|
|
10138
10142
|
* Price: $0.0012 per request.
|
|
10139
10143
|
*
|
|
10140
10144
|
* @example
|
|
10141
|
-
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort:
|
|
10145
|
+
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort: "newest" });
|
|
10142
10146
|
*/
|
|
10143
10147
|
userPosts(input: DouyinUserPostsInput, options?: RequestOptions): Promise<RunResult<DouyinUserPostsData>>;
|
|
10144
10148
|
/**
|
|
@@ -16318,8 +16322,9 @@ interface GithubTrendingDevelopersInput {
|
|
|
16318
16322
|
preferLatencyUnderMs?: number;
|
|
16319
16323
|
/**
|
|
16320
16324
|
* Trending range: daily, weekly, or monthly (defaults to daily).
|
|
16325
|
+
* One of: daily, weekly, monthly.
|
|
16321
16326
|
*/
|
|
16322
|
-
since?:
|
|
16327
|
+
since?: "daily" | "weekly" | "monthly";
|
|
16323
16328
|
/**
|
|
16324
16329
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
16325
16330
|
*/
|
|
@@ -17617,8 +17622,9 @@ interface GoogleImagesInput {
|
|
|
17617
17622
|
source?: string[];
|
|
17618
17623
|
/**
|
|
17619
17624
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
17625
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
17620
17626
|
*/
|
|
17621
|
-
timeframe?:
|
|
17627
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
17622
17628
|
}
|
|
17623
17629
|
interface GoogleImagesItem {
|
|
17624
17630
|
/**
|
|
@@ -18056,8 +18062,9 @@ interface GoogleSearchInput {
|
|
|
18056
18062
|
source?: string[];
|
|
18057
18063
|
/**
|
|
18058
18064
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18065
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18059
18066
|
*/
|
|
18060
|
-
timeframe?:
|
|
18067
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18061
18068
|
}
|
|
18062
18069
|
interface GoogleSearchResult {
|
|
18063
18070
|
/**
|
|
@@ -18131,8 +18138,9 @@ interface GoogleSearch100Input {
|
|
|
18131
18138
|
source?: string[];
|
|
18132
18139
|
/**
|
|
18133
18140
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18141
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18134
18142
|
*/
|
|
18135
|
-
timeframe?:
|
|
18143
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18136
18144
|
}
|
|
18137
18145
|
interface GoogleSearch100Result {
|
|
18138
18146
|
/**
|
|
@@ -18216,8 +18224,9 @@ interface GoogleVideosInput {
|
|
|
18216
18224
|
source?: string[];
|
|
18217
18225
|
/**
|
|
18218
18226
|
* Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
|
|
18227
|
+
* One of: 1h, 1d, 7d, 1y, all.
|
|
18219
18228
|
*/
|
|
18220
|
-
timeframe?:
|
|
18229
|
+
timeframe?: "1h" | "1d" | "7d" | "1y" | "all";
|
|
18221
18230
|
}
|
|
18222
18231
|
interface GoogleVideosResult {
|
|
18223
18232
|
/**
|
|
@@ -29224,7 +29233,7 @@ declare class LinkedinNamespace {
|
|
|
29224
29233
|
*
|
|
29225
29234
|
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
29226
29235
|
*
|
|
29227
|
-
* Price: $0.
|
|
29236
|
+
* Price: $0.018 per request.
|
|
29228
29237
|
*
|
|
29229
29238
|
* @example
|
|
29230
29239
|
* const res = await client.linkedin.searchPosts({ query: "hiring", datePosted: "last-week" });
|
|
@@ -40078,8 +40087,9 @@ interface RedditSubredditSearchInput {
|
|
|
40078
40087
|
requireFields?: ("author" | "authorId" | "createdUtc" | "isArchived" | "isLocked" | "nextCursor" | "nsfw" | "numComments" | "score" | "selftext")[];
|
|
40079
40088
|
/**
|
|
40080
40089
|
* Optional sort order: relevance, hot, top, new, comments.
|
|
40090
|
+
* One of: relevance, hot, top, new, comments.
|
|
40081
40091
|
*/
|
|
40082
|
-
sort?:
|
|
40092
|
+
sort?: "relevance" | "hot" | "top" | "new" | "comments";
|
|
40083
40093
|
/**
|
|
40084
40094
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
40085
40095
|
*/
|
|
@@ -40090,8 +40100,9 @@ interface RedditSubredditSearchInput {
|
|
|
40090
40100
|
subreddit: string;
|
|
40091
40101
|
/**
|
|
40092
40102
|
* Optional time filter: all, year, month, week, day, hour.
|
|
40103
|
+
* One of: all, year, month, week, day, hour.
|
|
40093
40104
|
*/
|
|
40094
|
-
timeframe?:
|
|
40105
|
+
timeframe?: "all" | "year" | "month" | "week" | "day" | "hour";
|
|
40095
40106
|
}
|
|
40096
40107
|
interface RedditSubredditSearchPost {
|
|
40097
40108
|
/**
|
|
@@ -47475,9 +47486,11 @@ interface TiktokSearchKeywordInput {
|
|
|
47475
47486
|
*/
|
|
47476
47487
|
requireCursor?: boolean;
|
|
47477
47488
|
/**
|
|
47478
|
-
* Sort order
|
|
47489
|
+
* Sort order: relevance, most-liked, date-posted.
|
|
47490
|
+
* One of: relevance, most-liked, date-posted.
|
|
47491
|
+
* Default: relevance.
|
|
47479
47492
|
*/
|
|
47480
|
-
sortBy?:
|
|
47493
|
+
sortBy?: "relevance" | "most-liked" | "date-posted";
|
|
47481
47494
|
/**
|
|
47482
47495
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
47483
47496
|
*/
|
|
@@ -47716,8 +47729,9 @@ interface TiktokSearchTopInput {
|
|
|
47716
47729
|
preferLatencyUnderMs?: number;
|
|
47717
47730
|
/**
|
|
47718
47731
|
* Time-frame filter: yesterday, this-week, this-month, last-3-months, last-6-months, all-time.
|
|
47732
|
+
* One of: yesterday, this-week, this-month, last-3-months, last-6-months, all-time.
|
|
47719
47733
|
*/
|
|
47720
|
-
publishTime?:
|
|
47734
|
+
publishTime?: "yesterday" | "this-week" | "this-month" | "last-3-months" | "last-6-months" | "all-time";
|
|
47721
47735
|
/**
|
|
47722
47736
|
* Keyword to search for (e.g. "funny").
|
|
47723
47737
|
*/
|
|
@@ -47728,8 +47742,9 @@ interface TiktokSearchTopInput {
|
|
|
47728
47742
|
region?: string;
|
|
47729
47743
|
/**
|
|
47730
47744
|
* Sort order: relevance, most-liked, date-posted.
|
|
47745
|
+
* One of: relevance, most-liked, date-posted.
|
|
47731
47746
|
*/
|
|
47732
|
-
sortBy?:
|
|
47747
|
+
sortBy?: "relevance" | "most-liked" | "date-posted";
|
|
47733
47748
|
/**
|
|
47734
47749
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
47735
47750
|
*/
|
|
@@ -49152,7 +49167,7 @@ declare class TiktokNamespace {
|
|
|
49152
49167
|
* Price: $0.0007 per request.
|
|
49153
49168
|
*
|
|
49154
49169
|
* @example
|
|
49155
|
-
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy:
|
|
49170
|
+
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy: "relevance" });
|
|
49156
49171
|
*/
|
|
49157
49172
|
searchKeyword(input: TiktokSearchKeywordInput, options?: RequestOptions): Promise<RunResult<TiktokSearchKeywordData>>;
|
|
49158
49173
|
/**
|
|
@@ -49196,7 +49211,7 @@ declare class TiktokNamespace {
|
|
|
49196
49211
|
*
|
|
49197
49212
|
* Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.
|
|
49198
49213
|
*
|
|
49199
|
-
* Price: $0.
|
|
49214
|
+
* Price: $0.0009 per request.
|
|
49200
49215
|
*
|
|
49201
49216
|
* @example
|
|
49202
49217
|
* const res = await client.tiktok.searchTop({ query: "funny" });
|
|
@@ -50751,9 +50766,10 @@ interface TrustpilotReviewsInput {
|
|
|
50751
50766
|
requireFields?: ("author" | "authorCountry" | "avatarUrl" | "language" | "rating" | "reviewerReviewsCount" | "verified")[];
|
|
50752
50767
|
/**
|
|
50753
50768
|
* Review ordering: auto, relevancy, or recent (e.g. recent).
|
|
50769
|
+
* One of: auto, relevancy, recent.
|
|
50754
50770
|
* Default: auto.
|
|
50755
50771
|
*/
|
|
50756
|
-
sortBy?:
|
|
50772
|
+
sortBy?: "auto" | "relevancy" | "recent";
|
|
50757
50773
|
/**
|
|
50758
50774
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
50759
50775
|
*/
|
|
@@ -56040,8 +56056,9 @@ interface YoutubeVideoCommentsInput {
|
|
|
56040
56056
|
ignoreSources?: string[];
|
|
56041
56057
|
/**
|
|
56042
56058
|
* Comment order (e.g. top, newest).
|
|
56059
|
+
* One of: top, newest.
|
|
56043
56060
|
*/
|
|
56044
|
-
order?:
|
|
56061
|
+
order?: "top" | "newest";
|
|
56045
56062
|
/**
|
|
56046
56063
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
56047
56064
|
* Range: minimum 1.
|
package/dist/index.js
CHANGED
|
@@ -1776,7 +1776,7 @@ var DouyinNamespace = class {
|
|
|
1776
1776
|
* Price: $0.012 per request.
|
|
1777
1777
|
*
|
|
1778
1778
|
* @example
|
|
1779
|
-
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort:
|
|
1779
|
+
* const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort: "relevance" });
|
|
1780
1780
|
*/
|
|
1781
1781
|
searchVideos(input, options) {
|
|
1782
1782
|
return this._core.run("douyin.search_videos", input, options);
|
|
@@ -1789,7 +1789,7 @@ var DouyinNamespace = class {
|
|
|
1789
1789
|
* Price: $0.0012 per request.
|
|
1790
1790
|
*
|
|
1791
1791
|
* @example
|
|
1792
|
-
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort:
|
|
1792
|
+
* const res = await client.douyin.userPosts({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", limit: 20, sort: "newest" });
|
|
1793
1793
|
*/
|
|
1794
1794
|
userPosts(input, options) {
|
|
1795
1795
|
return this._core.run("douyin.user_posts", input, options);
|
|
@@ -4307,7 +4307,7 @@ var LinkedinNamespace = class {
|
|
|
4307
4307
|
*
|
|
4308
4308
|
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
4309
4309
|
*
|
|
4310
|
-
* Price: $0.
|
|
4310
|
+
* Price: $0.018 per request.
|
|
4311
4311
|
*
|
|
4312
4312
|
* @example
|
|
4313
4313
|
* const res = await client.linkedin.searchPosts({ query: "hiring", datePosted: "last-week" });
|
|
@@ -6374,7 +6374,7 @@ var TiktokNamespace = class {
|
|
|
6374
6374
|
* Price: $0.0007 per request.
|
|
6375
6375
|
*
|
|
6376
6376
|
* @example
|
|
6377
|
-
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy:
|
|
6377
|
+
* const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy: "relevance" });
|
|
6378
6378
|
*/
|
|
6379
6379
|
searchKeyword(input, options) {
|
|
6380
6380
|
return this._core.run("tiktok.search_keyword", input, options);
|
|
@@ -6442,7 +6442,7 @@ var TiktokNamespace = class {
|
|
|
6442
6442
|
*
|
|
6443
6443
|
* Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.
|
|
6444
6444
|
*
|
|
6445
|
-
* Price: $0.
|
|
6445
|
+
* Price: $0.0009 per request.
|
|
6446
6446
|
*
|
|
6447
6447
|
* @example
|
|
6448
6448
|
* const res = await client.tiktok.searchTop({ query: "funny" });
|