@getanyapi/sdk 0.72.0 → 0.73.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.map +1 -1
- package/dist/index.d.cts +164 -82
- package/dist/index.d.ts +164 -82
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1319,13 +1319,13 @@ interface AlibabaSearchItem {
|
|
|
1319
1319
|
*/
|
|
1320
1320
|
promotionPrice?: string;
|
|
1321
1321
|
/**
|
|
1322
|
-
* Average buyer review score, 0-5;
|
|
1322
|
+
* Average buyer review score, 0-5; null when Alibaba shows no review score for the supplier.
|
|
1323
1323
|
*/
|
|
1324
|
-
rating?: number;
|
|
1324
|
+
rating?: number | null;
|
|
1325
1325
|
/**
|
|
1326
|
-
* Number of buyer reviews;
|
|
1326
|
+
* Number of buyer reviews; null when Alibaba shows no review count for the supplier.
|
|
1327
1327
|
*/
|
|
1328
|
-
reviewCount?: number;
|
|
1328
|
+
reviewCount?: number | null;
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Supplier / company name.
|
|
1331
1331
|
*/
|
|
@@ -4097,10 +4097,10 @@ interface CapterraReviewsItem {
|
|
|
4097
4097
|
*/
|
|
4098
4098
|
id: string;
|
|
4099
4099
|
/**
|
|
4100
|
-
* Whether the reviewer received an incentive for the review. Populated whenever the provider has data for the entity.
|
|
4100
|
+
* Whether the reviewer received an incentive for the review (for example a nominal gift); null when the source does not say. Populated whenever the provider has data for the entity.
|
|
4101
4101
|
* Present whenever the upstream returns this record.
|
|
4102
4102
|
*/
|
|
4103
|
-
incentivized?: boolean;
|
|
4103
|
+
incentivized?: boolean | null;
|
|
4104
4104
|
/**
|
|
4105
4105
|
* The vendor's public reply to the review.
|
|
4106
4106
|
*/
|
|
@@ -13893,9 +13893,9 @@ interface FacebookAdsSearchInput {
|
|
|
13893
13893
|
interface FacebookAdsSearchAd {
|
|
13894
13894
|
active: boolean;
|
|
13895
13895
|
/**
|
|
13896
|
-
* Number of ads in this campaign (collation count).
|
|
13896
|
+
* Number of ads in this campaign (collation count). Null when the source does not report it.
|
|
13897
13897
|
*/
|
|
13898
|
-
adCount: number;
|
|
13898
|
+
adCount: number | null;
|
|
13899
13899
|
/**
|
|
13900
13900
|
* Caption line of the ad creative, usually the advertiser's display domain.
|
|
13901
13901
|
*/
|
|
@@ -14195,9 +14195,9 @@ interface FacebookCompanyAdsInput {
|
|
|
14195
14195
|
interface FacebookCompanyAdsAd {
|
|
14196
14196
|
active: boolean;
|
|
14197
14197
|
/**
|
|
14198
|
-
* Number of ads in this campaign (collation count).
|
|
14198
|
+
* Number of ads in this campaign (collation count). Null when the source does not report it.
|
|
14199
14199
|
*/
|
|
14200
|
-
adCount: number;
|
|
14200
|
+
adCount: number | null;
|
|
14201
14201
|
/**
|
|
14202
14202
|
* Caption line of the ad creative, usually the advertiser's display domain.
|
|
14203
14203
|
*/
|
|
@@ -14927,9 +14927,9 @@ interface FacebookMarketplaceListing {
|
|
|
14927
14927
|
*/
|
|
14928
14928
|
cityPageId?: string;
|
|
14929
14929
|
/**
|
|
14930
|
-
* UTC epoch timestamp in seconds (Unix time) the listing was created. Multiply by 1000 for a JS Date in milliseconds.
|
|
14930
|
+
* UTC epoch timestamp in seconds (Unix time) the listing was created. Multiply by 1000 for a JS Date in milliseconds. Null when the source does not report it.
|
|
14931
14931
|
*/
|
|
14932
|
-
createdUtc?: number;
|
|
14932
|
+
createdUtc?: number | null;
|
|
14933
14933
|
/**
|
|
14934
14934
|
* Delivery options the seller offers, e.g. "IN_PERSON" or "SHIPPING".
|
|
14935
14935
|
*/
|
|
@@ -15434,6 +15434,10 @@ interface FacebookPhotosInput {
|
|
|
15434
15434
|
* Range: minimum 1.
|
|
15435
15435
|
*/
|
|
15436
15436
|
preferLatencyUnderMs?: number;
|
|
15437
|
+
/**
|
|
15438
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `imageWidth`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a photo that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
15439
|
+
*/
|
|
15440
|
+
requireFields?: ("imageHeight" | "imageWidth" | "nextPageId")[];
|
|
15437
15441
|
/**
|
|
15438
15442
|
* 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`.
|
|
15439
15443
|
*/
|
|
@@ -15452,12 +15456,18 @@ interface FacebookPhotosPhoto {
|
|
|
15452
15456
|
* Populated whenever the provider has data for the entity.
|
|
15453
15457
|
*/
|
|
15454
15458
|
id: string;
|
|
15455
|
-
|
|
15459
|
+
/**
|
|
15460
|
+
* Height of imageUrl in pixels. Null when the serving source does not report it.
|
|
15461
|
+
*/
|
|
15462
|
+
imageHeight: number | null;
|
|
15456
15463
|
/**
|
|
15457
15464
|
* Populated whenever the provider has data for the entity.
|
|
15458
15465
|
*/
|
|
15459
15466
|
imageUrl: string;
|
|
15460
|
-
|
|
15467
|
+
/**
|
|
15468
|
+
* Width of imageUrl in pixels. Null when the serving source does not report it.
|
|
15469
|
+
*/
|
|
15470
|
+
imageWidth: number | null;
|
|
15461
15471
|
/**
|
|
15462
15472
|
* Populated whenever the provider has data for the entity.
|
|
15463
15473
|
*/
|
|
@@ -15480,7 +15490,10 @@ interface FacebookPhotosData {
|
|
|
15480
15490
|
* Opaque cursor for the next page of photos, or null when this lane has no more. Pass it back as cursor to continue.
|
|
15481
15491
|
*/
|
|
15482
15492
|
nextCursor: string | null;
|
|
15483
|
-
|
|
15493
|
+
/**
|
|
15494
|
+
* Facebook's own id for the next page of photos. Null when the serving source does not report it; pass nextCursor back as cursor to continue either way.
|
|
15495
|
+
*/
|
|
15496
|
+
nextPageId: string | null;
|
|
15484
15497
|
/**
|
|
15485
15498
|
* Populated whenever the provider has data for the entity.
|
|
15486
15499
|
*/
|
|
@@ -16399,9 +16412,9 @@ interface FacebookSearchPostsData {
|
|
|
16399
16412
|
*/
|
|
16400
16413
|
authorImage?: string;
|
|
16401
16414
|
/**
|
|
16402
|
-
* Number of images attached to the post.
|
|
16415
|
+
* Number of images attached to the post. Null when the source does not report it.
|
|
16403
16416
|
*/
|
|
16404
|
-
imagesCount?: number;
|
|
16417
|
+
imagesCount?: number | null;
|
|
16405
16418
|
/**
|
|
16406
16419
|
* Matching public Facebook post records for the query. Populated whenever the provider has data for the entity.
|
|
16407
16420
|
*/
|
|
@@ -19540,8 +19553,14 @@ interface GoogleAdsAdDetailsData {
|
|
|
19540
19553
|
* Populated whenever the provider has data for the entity.
|
|
19541
19554
|
*/
|
|
19542
19555
|
format: string;
|
|
19543
|
-
|
|
19544
|
-
|
|
19556
|
+
/**
|
|
19557
|
+
* Upper bound of the impressions range. Null when Google does not publish one for this creative.
|
|
19558
|
+
*/
|
|
19559
|
+
impressionsMax: number | null;
|
|
19560
|
+
/**
|
|
19561
|
+
* Lower bound of the impressions range. Null when Google does not publish one for this creative.
|
|
19562
|
+
*/
|
|
19563
|
+
impressionsMin: number | null;
|
|
19545
19564
|
/**
|
|
19546
19565
|
* ISO 8601 date.
|
|
19547
19566
|
*/
|
|
@@ -20130,13 +20149,13 @@ interface GoogleShoppingSearchItem {
|
|
|
20130
20149
|
*/
|
|
20131
20150
|
productId?: string;
|
|
20132
20151
|
/**
|
|
20133
|
-
* Average product rating, 0-5;
|
|
20152
|
+
* Average product rating, 0-5; null when unrated.
|
|
20134
20153
|
*/
|
|
20135
|
-
rating?: number;
|
|
20154
|
+
rating?: number | null;
|
|
20136
20155
|
/**
|
|
20137
|
-
* Number of ratings / reviews;
|
|
20156
|
+
* Number of ratings / reviews; null when none reported.
|
|
20138
20157
|
*/
|
|
20139
|
-
reviewsCount?: number;
|
|
20158
|
+
reviewsCount?: number | null;
|
|
20140
20159
|
/**
|
|
20141
20160
|
* Store / seller name offering the product, e.g. "Target".
|
|
20142
20161
|
*/
|
|
@@ -20604,8 +20623,8 @@ interface IndeedJobsItem {
|
|
|
20604
20623
|
*/
|
|
20605
20624
|
reviewCount?: number;
|
|
20606
20625
|
salaryCurrency?: string;
|
|
20607
|
-
salaryMax?: number;
|
|
20608
|
-
salaryMin?: number;
|
|
20626
|
+
salaryMax?: number | null;
|
|
20627
|
+
salaryMin?: number | null;
|
|
20609
20628
|
/**
|
|
20610
20629
|
* Salary period, e.g. YEAR or HOUR.
|
|
20611
20630
|
*/
|
|
@@ -21955,7 +21974,10 @@ interface InstagramPostCommentsComment {
|
|
|
21955
21974
|
* Populated whenever the provider has data for the entity.
|
|
21956
21975
|
*/
|
|
21957
21976
|
id: string;
|
|
21958
|
-
|
|
21977
|
+
/**
|
|
21978
|
+
* Number of likes on the comment. Null when the source does not report it.
|
|
21979
|
+
*/
|
|
21980
|
+
likes: number | null;
|
|
21959
21981
|
/**
|
|
21960
21982
|
* Populated whenever the provider has data for the entity.
|
|
21961
21983
|
*/
|
|
@@ -22074,7 +22096,7 @@ interface InstagramProfileInput {
|
|
|
22074
22096
|
/**
|
|
22075
22097
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `contactMethod`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
22076
22098
|
*/
|
|
22077
|
-
requireFields?: "contactMethod"[];
|
|
22099
|
+
requireFields?: ("contactMethod" | "posts")[];
|
|
22078
22100
|
/**
|
|
22079
22101
|
* 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`.
|
|
22080
22102
|
*/
|
|
@@ -22143,9 +22165,9 @@ interface InstagramProfileData {
|
|
|
22143
22165
|
*/
|
|
22144
22166
|
isBusiness?: boolean;
|
|
22145
22167
|
/**
|
|
22146
|
-
*
|
|
22168
|
+
* Total number of posts on the account. Null when the serving source does not report it.
|
|
22147
22169
|
*/
|
|
22148
|
-
posts: number;
|
|
22170
|
+
posts: number | null;
|
|
22149
22171
|
/**
|
|
22150
22172
|
* Whether the account is private.
|
|
22151
22173
|
*/
|
|
@@ -22967,6 +22989,10 @@ interface InstagramSearchProfilesInput {
|
|
|
22967
22989
|
* Bio or caption keyword/phrase to search for.
|
|
22968
22990
|
*/
|
|
22969
22991
|
query: string;
|
|
22992
|
+
/**
|
|
22993
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `private`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
22994
|
+
*/
|
|
22995
|
+
requireFields?: "private"[];
|
|
22970
22996
|
/**
|
|
22971
22997
|
* 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`.
|
|
22972
22998
|
*/
|
|
@@ -23000,7 +23026,10 @@ interface InstagramSearchProfilesProfile {
|
|
|
23000
23026
|
*/
|
|
23001
23027
|
id: string;
|
|
23002
23028
|
posts: number;
|
|
23003
|
-
|
|
23029
|
+
/**
|
|
23030
|
+
* Whether the account is private. Null when the serving source does not report it.
|
|
23031
|
+
*/
|
|
23032
|
+
private: boolean | null;
|
|
23004
23033
|
/**
|
|
23005
23034
|
* Canonical URL of the profile.
|
|
23006
23035
|
*/
|
|
@@ -23175,9 +23204,9 @@ interface InstagramSimilarProfilesProfile {
|
|
|
23175
23204
|
*/
|
|
23176
23205
|
displayName: string;
|
|
23177
23206
|
/**
|
|
23178
|
-
* Whether the account is private.
|
|
23207
|
+
* Whether the account is private. Null when the source does not report it.
|
|
23179
23208
|
*/
|
|
23180
|
-
private: boolean;
|
|
23209
|
+
private: boolean | null;
|
|
23181
23210
|
/**
|
|
23182
23211
|
* Instagram's numeric account id, as a string.
|
|
23183
23212
|
*/
|
|
@@ -23448,9 +23477,9 @@ interface InstagramTaggedPostsPost {
|
|
|
23448
23477
|
*/
|
|
23449
23478
|
id: string;
|
|
23450
23479
|
/**
|
|
23451
|
-
* Number of likes on the post.
|
|
23480
|
+
* Number of likes on the post. Null when the source does not report it, including when the owner hides like counts.
|
|
23452
23481
|
*/
|
|
23453
|
-
likes: number;
|
|
23482
|
+
likes: number | null;
|
|
23454
23483
|
/**
|
|
23455
23484
|
* Canonical URL of the post, with tracking query params stripped. Populated whenever the provider has data for the entity.
|
|
23456
23485
|
* Format: uri.
|
|
@@ -24155,9 +24184,9 @@ interface InstagramWebReelsSearchReel {
|
|
|
24155
24184
|
*/
|
|
24156
24185
|
createdUtc: number;
|
|
24157
24186
|
/**
|
|
24158
|
-
* Reel duration in seconds.
|
|
24187
|
+
* Reel duration in seconds. Null when the source does not report it.
|
|
24159
24188
|
*/
|
|
24160
|
-
durationSeconds: number;
|
|
24189
|
+
durationSeconds: number | null;
|
|
24161
24190
|
/**
|
|
24162
24191
|
* Number of likes on the reel.
|
|
24163
24192
|
*/
|
|
@@ -26042,13 +26071,13 @@ interface LinkedinCompanyData {
|
|
|
26042
26071
|
*/
|
|
26043
26072
|
employeeCountRange?: {
|
|
26044
26073
|
/**
|
|
26045
|
-
* Upper bound of the employee-count bucket.
|
|
26074
|
+
* Upper bound of the employee-count bucket; null when the source does not report it.
|
|
26046
26075
|
*/
|
|
26047
|
-
end?: number;
|
|
26076
|
+
end?: number | null;
|
|
26048
26077
|
/**
|
|
26049
|
-
* Lower bound of the employee-count bucket.
|
|
26078
|
+
* Lower bound of the employee-count bucket; null when the source does not report it.
|
|
26050
26079
|
*/
|
|
26051
|
-
start?: number;
|
|
26080
|
+
start?: number | null;
|
|
26052
26081
|
};
|
|
26053
26082
|
/**
|
|
26054
26083
|
* LinkedIn page follower count. Populated whenever the provider has data for the entity.
|
|
@@ -26076,9 +26105,9 @@ interface LinkedinCompanyData {
|
|
|
26076
26105
|
*/
|
|
26077
26106
|
lastFundingType?: string;
|
|
26078
26107
|
/**
|
|
26079
|
-
* Total number of funding rounds.
|
|
26108
|
+
* Total number of funding rounds; null when the source does not report it.
|
|
26080
26109
|
*/
|
|
26081
|
-
numFundingRounds?: number;
|
|
26110
|
+
numFundingRounds?: number | null;
|
|
26082
26111
|
} | null;
|
|
26083
26112
|
/**
|
|
26084
26113
|
* LinkedIn's numeric company id, as a string.
|
|
@@ -27178,13 +27207,13 @@ interface LinkedinJobsItem {
|
|
|
27178
27207
|
*/
|
|
27179
27208
|
salary?: {
|
|
27180
27209
|
/**
|
|
27181
|
-
* Maximum salary.
|
|
27210
|
+
* Maximum salary; null when the posting shows none.
|
|
27182
27211
|
*/
|
|
27183
|
-
max?: number;
|
|
27212
|
+
max?: number | null;
|
|
27184
27213
|
/**
|
|
27185
|
-
* Minimum salary.
|
|
27214
|
+
* Minimum salary; null when the posting shows none.
|
|
27186
27215
|
*/
|
|
27187
|
-
min?: number;
|
|
27216
|
+
min?: number | null;
|
|
27188
27217
|
/**
|
|
27189
27218
|
* Salary as displayed (e.g. '300,000 - 330,000 USD').
|
|
27190
27219
|
*/
|
|
@@ -30152,9 +30181,9 @@ interface LinkedinSearchProfilesEmailItem {
|
|
|
30152
30181
|
*/
|
|
30153
30182
|
firstName?: string;
|
|
30154
30183
|
/**
|
|
30155
|
-
* Number of followers of the profile.
|
|
30184
|
+
* Number of followers of the profile; null when the source does not report it.
|
|
30156
30185
|
*/
|
|
30157
|
-
followerCount?: number;
|
|
30186
|
+
followerCount?: number | null;
|
|
30158
30187
|
/**
|
|
30159
30188
|
* Public profile identifier (the vanity slug in the URL). Populated whenever the provider has data for the entity.
|
|
30160
30189
|
* Present whenever the upstream returns this record.
|
|
@@ -41359,9 +41388,9 @@ interface RedditPostCommentsData {
|
|
|
41359
41388
|
*/
|
|
41360
41389
|
comments: RedditPostCommentsComment[];
|
|
41361
41390
|
/**
|
|
41362
|
-
* Photo, video, and GIF attachments on the post. Empty when the post has none.
|
|
41391
|
+
* Photo, video, and GIF attachments on the post. Empty when the post has none; null when the serving source does not report attachments.
|
|
41363
41392
|
*/
|
|
41364
|
-
media?: RedditPostCommentsMedia[];
|
|
41393
|
+
media?: RedditPostCommentsMedia[] | null;
|
|
41365
41394
|
/**
|
|
41366
41395
|
* Opaque cursor for the next page of comments, or null when this lane has no more. Pass it back as cursor to continue.
|
|
41367
41396
|
*/
|
|
@@ -41436,6 +41465,10 @@ interface RedditProfileInput {
|
|
|
41436
41465
|
* Range: minimum 1.
|
|
41437
41466
|
*/
|
|
41438
41467
|
preferLatencyUnderMs?: number;
|
|
41468
|
+
/**
|
|
41469
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `verified`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
41470
|
+
*/
|
|
41471
|
+
requireFields?: "verified"[];
|
|
41439
41472
|
/**
|
|
41440
41473
|
* 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`.
|
|
41441
41474
|
*/
|
|
@@ -41527,9 +41560,9 @@ interface RedditProfileData {
|
|
|
41527
41560
|
*/
|
|
41528
41561
|
username: string;
|
|
41529
41562
|
/**
|
|
41530
|
-
* True when the account is verified by Reddit.
|
|
41563
|
+
* True when the account is verified by Reddit. Null when the serving source does not report it.
|
|
41531
41564
|
*/
|
|
41532
|
-
verified?: boolean;
|
|
41565
|
+
verified?: boolean | null;
|
|
41533
41566
|
[extra: string]: unknown;
|
|
41534
41567
|
}
|
|
41535
41568
|
/**
|
|
@@ -50301,9 +50334,9 @@ interface ThreadsPostData {
|
|
|
50301
50334
|
*/
|
|
50302
50335
|
profilePicUrl?: string;
|
|
50303
50336
|
/**
|
|
50304
|
-
* Number of quote posts.
|
|
50337
|
+
* Number of quote posts. Null when the source does not report it.
|
|
50305
50338
|
*/
|
|
50306
|
-
quoteCount: number;
|
|
50339
|
+
quoteCount: number | null;
|
|
50307
50340
|
/**
|
|
50308
50341
|
* Number of replies to the post.
|
|
50309
50342
|
*/
|
|
@@ -52682,7 +52715,7 @@ interface TiktokSearchTopInput {
|
|
|
52682
52715
|
/**
|
|
52683
52716
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
52684
52717
|
*/
|
|
52685
|
-
requireFields?: "nextCursor"[];
|
|
52718
|
+
requireFields?: ("contentType" | "nextCursor")[];
|
|
52686
52719
|
/**
|
|
52687
52720
|
* Sort order: relevance, most-liked, date-posted.
|
|
52688
52721
|
* One of: relevance, most-liked, date-posted.
|
|
@@ -52715,7 +52748,10 @@ interface TiktokSearchTopItem {
|
|
|
52715
52748
|
*/
|
|
52716
52749
|
caption: string;
|
|
52717
52750
|
comments: number;
|
|
52718
|
-
|
|
52751
|
+
/**
|
|
52752
|
+
* TikTok's own label for the post format, such as video, or null when the serving source does not report it.
|
|
52753
|
+
*/
|
|
52754
|
+
contentType: string | null;
|
|
52719
52755
|
/**
|
|
52720
52756
|
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
|
|
52721
52757
|
* Present whenever the upstream returns this record.
|
|
@@ -53696,7 +53732,10 @@ interface TiktokVideoTranscriptData {
|
|
|
53696
53732
|
* TikTok video id the transcript belongs to.
|
|
53697
53733
|
*/
|
|
53698
53734
|
id?: string;
|
|
53699
|
-
|
|
53735
|
+
/**
|
|
53736
|
+
* Language of the caption track, or null when the serving source does not report it.
|
|
53737
|
+
*/
|
|
53738
|
+
language?: string | null;
|
|
53700
53739
|
/**
|
|
53701
53740
|
* Populated whenever the provider has data for the entity.
|
|
53702
53741
|
*/
|
|
@@ -54560,9 +54599,9 @@ interface TiktokShopCreatorData {
|
|
|
54560
54599
|
*/
|
|
54561
54600
|
gmvRange?: string;
|
|
54562
54601
|
/**
|
|
54563
|
-
* Gross merchandise value per thousand views.
|
|
54602
|
+
* Gross merchandise value per thousand views. Null when upstream does not publish it.
|
|
54564
54603
|
*/
|
|
54565
|
-
gpm?: number;
|
|
54604
|
+
gpm?: number | null;
|
|
54566
54605
|
/**
|
|
54567
54606
|
* TikTok handle of the creator, without the @. Populated whenever the provider has data for the entity.
|
|
54568
54607
|
*/
|
|
@@ -54593,9 +54632,9 @@ interface TiktokShopCreatorData {
|
|
|
54593
54632
|
*/
|
|
54594
54633
|
promotedProducts?: number;
|
|
54595
54634
|
/**
|
|
54596
|
-
* Creator rating.
|
|
54635
|
+
* Creator rating. Null when upstream does not publish it.
|
|
54597
54636
|
*/
|
|
54598
|
-
rating?: number;
|
|
54637
|
+
rating?: number | null;
|
|
54599
54638
|
/**
|
|
54600
54639
|
* Two-letter country code of the creator's TikTok Shop market.
|
|
54601
54640
|
*/
|
|
@@ -54632,6 +54671,10 @@ interface TiktokShopProductInput {
|
|
|
54632
54671
|
* Two-letter country code for the proxy location used to access region-specific products (e.g. US, GB, FR). Defaults to US.
|
|
54633
54672
|
*/
|
|
54634
54673
|
region?: string;
|
|
54674
|
+
/**
|
|
54675
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `sellerLocation`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a product that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
54676
|
+
*/
|
|
54677
|
+
requireFields?: "sellerLocation"[];
|
|
54635
54678
|
/**
|
|
54636
54679
|
* 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`.
|
|
54637
54680
|
*/
|
|
@@ -54663,7 +54706,10 @@ interface TiktokShopProductData {
|
|
|
54663
54706
|
productId: string;
|
|
54664
54707
|
rating: number;
|
|
54665
54708
|
reviewCount: number;
|
|
54666
|
-
|
|
54709
|
+
/**
|
|
54710
|
+
* Where the seller is based, or null when the serving source does not report it.
|
|
54711
|
+
*/
|
|
54712
|
+
sellerLocation: string | null;
|
|
54667
54713
|
/**
|
|
54668
54714
|
* Populated whenever the provider has data for the entity.
|
|
54669
54715
|
*/
|
|
@@ -54764,17 +54810,17 @@ interface TiktokShopProductReviewsData {
|
|
|
54764
54810
|
*/
|
|
54765
54811
|
hasMore: boolean;
|
|
54766
54812
|
/**
|
|
54767
|
-
* Overall product score (1-5).
|
|
54813
|
+
* Overall product score (1-5), or null when the serving source does not report it.
|
|
54768
54814
|
*/
|
|
54769
|
-
rating: number;
|
|
54815
|
+
rating: number | null;
|
|
54770
54816
|
/**
|
|
54771
54817
|
* Product reviews. Populated whenever the provider has data for the entity.
|
|
54772
54818
|
*/
|
|
54773
54819
|
reviews: TiktokShopProductReviewsReview[];
|
|
54774
54820
|
/**
|
|
54775
|
-
* Total number of reviews for the product.
|
|
54821
|
+
* Total number of reviews for the product, or null when the serving source does not report it.
|
|
54776
54822
|
*/
|
|
54777
|
-
totalReviews: number;
|
|
54823
|
+
totalReviews: number | null;
|
|
54778
54824
|
}
|
|
54779
54825
|
/**
|
|
54780
54826
|
* Input for TikTok Shop Search (tiktok_shop.search).
|
|
@@ -54956,6 +55002,10 @@ interface TiktokShopShopProductsInput {
|
|
|
54956
55002
|
* Two-letter country code of the store's market (e.g. US).
|
|
54957
55003
|
*/
|
|
54958
55004
|
region?: string;
|
|
55005
|
+
/**
|
|
55006
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `shopRating`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a store that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. 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.
|
|
55007
|
+
*/
|
|
55008
|
+
requireFields?: ("productCount" | "shopRating")[];
|
|
54959
55009
|
/**
|
|
54960
55010
|
* Product ordering within the store.
|
|
54961
55011
|
* One of: top, new_releases.
|
|
@@ -55011,7 +55061,10 @@ interface TiktokShopShopProductsData {
|
|
|
55011
55061
|
* Opaque cursor for the next page of products, or null when this lane has no more. Pass it back as cursor to continue.
|
|
55012
55062
|
*/
|
|
55013
55063
|
nextCursor: string | null;
|
|
55014
|
-
|
|
55064
|
+
/**
|
|
55065
|
+
* Number of products the store has on sale, or null when the serving source does not report it.
|
|
55066
|
+
*/
|
|
55067
|
+
productCount: number | null;
|
|
55015
55068
|
/**
|
|
55016
55069
|
* Populated whenever the provider has data for the entity.
|
|
55017
55070
|
*/
|
|
@@ -55020,8 +55073,14 @@ interface TiktokShopShopProductsData {
|
|
|
55020
55073
|
* Populated whenever the provider has data for the entity.
|
|
55021
55074
|
*/
|
|
55022
55075
|
shopName: string;
|
|
55023
|
-
|
|
55024
|
-
|
|
55076
|
+
/**
|
|
55077
|
+
* The store's rating out of 5, or null when the serving source does not report it.
|
|
55078
|
+
*/
|
|
55079
|
+
shopRating: number | null;
|
|
55080
|
+
/**
|
|
55081
|
+
* Units the store has sold across all its products, or null when the serving source does not report it.
|
|
55082
|
+
*/
|
|
55083
|
+
soldCount: number | null;
|
|
55025
55084
|
}
|
|
55026
55085
|
/**
|
|
55027
55086
|
* Input for TikTok Shop User Showcase (tiktok_shop.user_showcase).
|
|
@@ -55470,13 +55529,13 @@ interface TripadvisorSearchItem {
|
|
|
55470
55529
|
*/
|
|
55471
55530
|
ranking?: string;
|
|
55472
55531
|
/**
|
|
55473
|
-
* Average traveler rating out of 5. Populated whenever the provider has data for the entity.
|
|
55532
|
+
* Average traveler rating out of 5; null for a place Tripadvisor has not rated (such as a city). Populated whenever the provider has data for the entity.
|
|
55474
55533
|
*/
|
|
55475
|
-
rating: number;
|
|
55534
|
+
rating: number | null;
|
|
55476
55535
|
/**
|
|
55477
|
-
* Total number of traveler reviews.
|
|
55536
|
+
* Total number of traveler reviews; null when the source does not report it.
|
|
55478
55537
|
*/
|
|
55479
|
-
reviewCount?: number;
|
|
55538
|
+
reviewCount?: number | null;
|
|
55480
55539
|
/**
|
|
55481
55540
|
* Place name. Populated whenever the provider has data for the entity.
|
|
55482
55541
|
*/
|
|
@@ -56690,9 +56749,9 @@ interface TwitterRepliesItem {
|
|
|
56690
56749
|
*/
|
|
56691
56750
|
url: string;
|
|
56692
56751
|
/**
|
|
56693
|
-
* Number of views of this reply.
|
|
56752
|
+
* Number of views of this reply. Null when the source does not report it, as for posts older than X view counts.
|
|
56694
56753
|
*/
|
|
56695
|
-
viewCount?: number;
|
|
56754
|
+
viewCount?: number | null;
|
|
56696
56755
|
[extra: string]: unknown;
|
|
56697
56756
|
}
|
|
56698
56757
|
interface TwitterRepliesMedia {
|
|
@@ -56829,7 +56888,10 @@ interface TwitterSearchItem {
|
|
|
56829
56888
|
* Populated whenever the provider has data for the entity.
|
|
56830
56889
|
*/
|
|
56831
56890
|
url: string;
|
|
56832
|
-
|
|
56891
|
+
/**
|
|
56892
|
+
* Number of views. Null when the source does not report it, as for posts older than X view counts.
|
|
56893
|
+
*/
|
|
56894
|
+
viewCount?: number | null;
|
|
56833
56895
|
[extra: string]: unknown;
|
|
56834
56896
|
}
|
|
56835
56897
|
interface TwitterSearchMedia {
|
|
@@ -59668,6 +59730,10 @@ interface YoutubeChannelInput {
|
|
|
59668
59730
|
* Range: minimum 1.
|
|
59669
59731
|
*/
|
|
59670
59732
|
preferLatencyUnderMs?: number;
|
|
59733
|
+
/**
|
|
59734
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
59735
|
+
*/
|
|
59736
|
+
requireFields?: "views"[];
|
|
59671
59737
|
/**
|
|
59672
59738
|
* 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`.
|
|
59673
59739
|
*/
|
|
@@ -59700,7 +59766,10 @@ interface YoutubeChannelData {
|
|
|
59700
59766
|
*/
|
|
59701
59767
|
url?: string;
|
|
59702
59768
|
videos: number;
|
|
59703
|
-
|
|
59769
|
+
/**
|
|
59770
|
+
* Lifetime view count across the channel's videos, or null when the serving source does not report it.
|
|
59771
|
+
*/
|
|
59772
|
+
views: number | null;
|
|
59704
59773
|
[extra: string]: unknown;
|
|
59705
59774
|
}
|
|
59706
59775
|
/**
|
|
@@ -59863,6 +59932,10 @@ interface YoutubeChannelLivesInput {
|
|
|
59863
59932
|
* Range: minimum 1.
|
|
59864
59933
|
*/
|
|
59865
59934
|
preferLatencyUnderMs?: number;
|
|
59935
|
+
/**
|
|
59936
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `lengthText`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a live stream that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. 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.
|
|
59937
|
+
*/
|
|
59938
|
+
requireFields?: "lengthText"[];
|
|
59866
59939
|
/**
|
|
59867
59940
|
* 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`.
|
|
59868
59941
|
*/
|
|
@@ -59877,7 +59950,10 @@ interface YoutubeChannelLivesLive {
|
|
|
59877
59950
|
* URL of the live stream thumbnail image, tracking query parameters stripped.
|
|
59878
59951
|
*/
|
|
59879
59952
|
image?: string;
|
|
59880
|
-
|
|
59953
|
+
/**
|
|
59954
|
+
* Stream length as YouTube shows it, such as 3:29:31, or LIVE while it is streaming; null when the serving source does not report it.
|
|
59955
|
+
*/
|
|
59956
|
+
lengthText: string | null;
|
|
59881
59957
|
/**
|
|
59882
59958
|
* Populated whenever the provider has data for the entity.
|
|
59883
59959
|
*/
|
|
@@ -59890,6 +59966,9 @@ interface YoutubeChannelLivesLive {
|
|
|
59890
59966
|
* Populated whenever the provider has data for the entity.
|
|
59891
59967
|
*/
|
|
59892
59968
|
url: string;
|
|
59969
|
+
/**
|
|
59970
|
+
* Views of a past stream, or people watching a stream that is live now. Every source reads it from YouTube's rounded label ("60K watching" is 60000), so it is approximate.
|
|
59971
|
+
*/
|
|
59893
59972
|
views: number;
|
|
59894
59973
|
[extra: string]: unknown;
|
|
59895
59974
|
}
|
|
@@ -60042,10 +60121,10 @@ interface YoutubeChannelShortsShort {
|
|
|
60042
60121
|
*/
|
|
60043
60122
|
image?: string;
|
|
60044
60123
|
/**
|
|
60045
|
-
* Public like count
|
|
60124
|
+
* Public like count, or null when the serving source does not report it.
|
|
60046
60125
|
* Range: minimum 0.
|
|
60047
60126
|
*/
|
|
60048
|
-
likes: number;
|
|
60127
|
+
likes: number | null;
|
|
60049
60128
|
/**
|
|
60050
60129
|
* Public title or caption for the Short. Populated whenever the provider has data for the entity.
|
|
60051
60130
|
* Present whenever the upstream returns this record.
|
|
@@ -60113,7 +60192,7 @@ interface YoutubeChannelVideosInput {
|
|
|
60113
60192
|
/**
|
|
60114
60193
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. 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. A source that returns only a rounded or shortened value for a field does not count as returning it.
|
|
60115
60194
|
*/
|
|
60116
|
-
requireFields?: "views"[];
|
|
60195
|
+
requireFields?: ("lengthText" | "views")[];
|
|
60117
60196
|
/**
|
|
60118
60197
|
* Sort order.
|
|
60119
60198
|
* One of: latest, popular.
|
|
@@ -60137,7 +60216,10 @@ interface YoutubeChannelVideosVideo {
|
|
|
60137
60216
|
* URL of the video thumbnail image, tracking query parameters stripped.
|
|
60138
60217
|
*/
|
|
60139
60218
|
image?: string;
|
|
60140
|
-
|
|
60219
|
+
/**
|
|
60220
|
+
* Video length as YouTube shows it, such as 11:56, or null when the serving source does not report it.
|
|
60221
|
+
*/
|
|
60222
|
+
lengthText: string | null;
|
|
60141
60223
|
/**
|
|
60142
60224
|
* Populated whenever the provider has data for the entity.
|
|
60143
60225
|
*/
|