scavio 0.11.0 → 0.13.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/README.md +37 -6
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -36
- package/dist/index.d.ts +37 -36
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,49 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amazon moved to a new upstream in 2026-07 and the API now returns a
|
|
3
|
+
* normalized shape instead of the old raw provider payload. Nine options went
|
|
4
|
+
* with the old provider: language, currency, device, sort_by, pages,
|
|
5
|
+
* category_id, merchant_id, zip_code and autoselect_variant. They are removed
|
|
6
|
+
* rather than kept as no-ops - notably `sort_by`, which the marketplace was
|
|
7
|
+
* verified to ignore entirely (every sort value returned the same unordered
|
|
8
|
+
* set). Sending a retired option anyway still returns 200, with a top-level
|
|
9
|
+
* `warnings` array naming what was ignored.
|
|
10
|
+
*
|
|
11
|
+
* `country` is the canonical marketplace selector; `domain` and `start_page`
|
|
12
|
+
* remain as deprecated aliases because published SDK versions send them.
|
|
13
|
+
*/
|
|
1
14
|
interface AmazonSearchOptions {
|
|
2
15
|
/** Product search query (1-500 characters). */
|
|
3
16
|
query: string;
|
|
4
|
-
/**
|
|
5
|
-
domain?: string;
|
|
6
|
-
/** Country code for localization. */
|
|
17
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
7
18
|
country?: string;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
device?: "desktop" | "mobile" | "tablet";
|
|
14
|
-
/** Result sort order. */
|
|
15
|
-
sort_by?: "most_recent" | "price_low_to_high" | "price_high_to_low" | "featured" | "average_review" | "bestsellers";
|
|
16
|
-
/** Starting page (1-indexed). */
|
|
19
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
20
|
+
domain?: string;
|
|
21
|
+
/** Results page, 1-based. One page per call, 1 credit each. */
|
|
22
|
+
page?: number;
|
|
23
|
+
/** @deprecated Alias for `page`. */
|
|
17
24
|
start_page?: number;
|
|
18
|
-
/** Number of pages to fetch. */
|
|
19
|
-
pages?: number;
|
|
20
|
-
/** Amazon category id. */
|
|
21
|
-
category_id?: string;
|
|
22
|
-
/** Filter to a specific merchant. */
|
|
23
|
-
merchant_id?: string;
|
|
24
|
-
/** ZIP/postal code for localized pricing. */
|
|
25
|
-
zip_code?: string;
|
|
26
|
-
/** Auto-select the default variant. */
|
|
27
|
-
autoselect_variant?: boolean;
|
|
28
25
|
[key: string]: unknown;
|
|
29
26
|
}
|
|
30
27
|
interface AmazonProductOptions {
|
|
31
28
|
/** Amazon ASIN (e.g. 'B09XS7JWHH'). Sent to the API as 'query'. */
|
|
32
29
|
asin: string;
|
|
33
|
-
/**
|
|
30
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
31
|
+
country?: string;
|
|
32
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
34
33
|
domain?: string;
|
|
35
|
-
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
interface AmazonOffersOptions {
|
|
37
|
+
/** Amazon ASIN (e.g. 'B09XS7JWHH'). Sent to the API as 'query'. */
|
|
38
|
+
asin: string;
|
|
39
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
36
40
|
country?: string;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/** Currency code (ISO 4217, e.g. 'USD'). */
|
|
40
|
-
currency?: string;
|
|
41
|
-
/** Device to emulate. */
|
|
42
|
-
device?: "desktop" | "mobile" | "tablet";
|
|
43
|
-
/** ZIP/postal code for localized pricing. */
|
|
44
|
-
zip_code?: string;
|
|
45
|
-
/** Auto-select the default variant. */
|
|
46
|
-
autoselect_variant?: boolean;
|
|
41
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
42
|
+
domain?: string;
|
|
47
43
|
[key: string]: unknown;
|
|
48
44
|
}
|
|
49
45
|
declare class AmazonNamespace {
|
|
@@ -51,7 +47,12 @@ declare class AmazonNamespace {
|
|
|
51
47
|
constructor(client: Scavio);
|
|
52
48
|
search(options: AmazonSearchOptions): Promise<Record<string, unknown>>;
|
|
53
49
|
product(options: AmazonProductOptions): Promise<Record<string, unknown>>;
|
|
54
|
-
/**
|
|
50
|
+
/** Every seller offer for one ASIN: price, seller, condition, shipping, and
|
|
51
|
+
* which offer holds the buy box. Page 1 only. */
|
|
52
|
+
offers(options: AmazonOffersOptions): Promise<Record<string, unknown>>;
|
|
53
|
+
/** Supported Amazon marketplaces, as `domains` and `countries`. `languages`
|
|
54
|
+
* and `currencies` remain in the payload but are always empty: neither is a
|
|
55
|
+
* request parameter any more. */
|
|
55
56
|
options(): Promise<Record<string, unknown>>;
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -1371,4 +1372,4 @@ declare class ScavioAPIError extends ScavioError {
|
|
|
1371
1372
|
constructor(statusCode: number, message: string, responseBody?: Record<string, unknown>);
|
|
1372
1373
|
}
|
|
1373
1374
|
|
|
1374
|
-
export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
|
|
1375
|
+
export { type AmazonOffersOptions, type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,49 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amazon moved to a new upstream in 2026-07 and the API now returns a
|
|
3
|
+
* normalized shape instead of the old raw provider payload. Nine options went
|
|
4
|
+
* with the old provider: language, currency, device, sort_by, pages,
|
|
5
|
+
* category_id, merchant_id, zip_code and autoselect_variant. They are removed
|
|
6
|
+
* rather than kept as no-ops - notably `sort_by`, which the marketplace was
|
|
7
|
+
* verified to ignore entirely (every sort value returned the same unordered
|
|
8
|
+
* set). Sending a retired option anyway still returns 200, with a top-level
|
|
9
|
+
* `warnings` array naming what was ignored.
|
|
10
|
+
*
|
|
11
|
+
* `country` is the canonical marketplace selector; `domain` and `start_page`
|
|
12
|
+
* remain as deprecated aliases because published SDK versions send them.
|
|
13
|
+
*/
|
|
1
14
|
interface AmazonSearchOptions {
|
|
2
15
|
/** Product search query (1-500 characters). */
|
|
3
16
|
query: string;
|
|
4
|
-
/**
|
|
5
|
-
domain?: string;
|
|
6
|
-
/** Country code for localization. */
|
|
17
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
7
18
|
country?: string;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
device?: "desktop" | "mobile" | "tablet";
|
|
14
|
-
/** Result sort order. */
|
|
15
|
-
sort_by?: "most_recent" | "price_low_to_high" | "price_high_to_low" | "featured" | "average_review" | "bestsellers";
|
|
16
|
-
/** Starting page (1-indexed). */
|
|
19
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
20
|
+
domain?: string;
|
|
21
|
+
/** Results page, 1-based. One page per call, 1 credit each. */
|
|
22
|
+
page?: number;
|
|
23
|
+
/** @deprecated Alias for `page`. */
|
|
17
24
|
start_page?: number;
|
|
18
|
-
/** Number of pages to fetch. */
|
|
19
|
-
pages?: number;
|
|
20
|
-
/** Amazon category id. */
|
|
21
|
-
category_id?: string;
|
|
22
|
-
/** Filter to a specific merchant. */
|
|
23
|
-
merchant_id?: string;
|
|
24
|
-
/** ZIP/postal code for localized pricing. */
|
|
25
|
-
zip_code?: string;
|
|
26
|
-
/** Auto-select the default variant. */
|
|
27
|
-
autoselect_variant?: boolean;
|
|
28
25
|
[key: string]: unknown;
|
|
29
26
|
}
|
|
30
27
|
interface AmazonProductOptions {
|
|
31
28
|
/** Amazon ASIN (e.g. 'B09XS7JWHH'). Sent to the API as 'query'. */
|
|
32
29
|
asin: string;
|
|
33
|
-
/**
|
|
30
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
31
|
+
country?: string;
|
|
32
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
34
33
|
domain?: string;
|
|
35
|
-
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
interface AmazonOffersOptions {
|
|
37
|
+
/** Amazon ASIN (e.g. 'B09XS7JWHH'). Sent to the API as 'query'. */
|
|
38
|
+
asin: string;
|
|
39
|
+
/** Marketplace country code (ISO 3166-1 alpha-2, e.g. 'us', 'gb', 'de'). Defaults to 'us'. */
|
|
36
40
|
country?: string;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/** Currency code (ISO 4217, e.g. 'USD'). */
|
|
40
|
-
currency?: string;
|
|
41
|
-
/** Device to emulate. */
|
|
42
|
-
device?: "desktop" | "mobile" | "tablet";
|
|
43
|
-
/** ZIP/postal code for localized pricing. */
|
|
44
|
-
zip_code?: string;
|
|
45
|
-
/** Auto-select the default variant. */
|
|
46
|
-
autoselect_variant?: boolean;
|
|
41
|
+
/** @deprecated Amazon domain suffix ('com', 'co.uk'). Use `country` instead. */
|
|
42
|
+
domain?: string;
|
|
47
43
|
[key: string]: unknown;
|
|
48
44
|
}
|
|
49
45
|
declare class AmazonNamespace {
|
|
@@ -51,7 +47,12 @@ declare class AmazonNamespace {
|
|
|
51
47
|
constructor(client: Scavio);
|
|
52
48
|
search(options: AmazonSearchOptions): Promise<Record<string, unknown>>;
|
|
53
49
|
product(options: AmazonProductOptions): Promise<Record<string, unknown>>;
|
|
54
|
-
/**
|
|
50
|
+
/** Every seller offer for one ASIN: price, seller, condition, shipping, and
|
|
51
|
+
* which offer holds the buy box. Page 1 only. */
|
|
52
|
+
offers(options: AmazonOffersOptions): Promise<Record<string, unknown>>;
|
|
53
|
+
/** Supported Amazon marketplaces, as `domains` and `countries`. `languages`
|
|
54
|
+
* and `currencies` remain in the payload but are always empty: neither is a
|
|
55
|
+
* request parameter any more. */
|
|
55
56
|
options(): Promise<Record<string, unknown>>;
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -1371,4 +1372,4 @@ declare class ScavioAPIError extends ScavioError {
|
|
|
1371
1372
|
constructor(statusCode: number, message: string, responseBody?: Record<string, unknown>);
|
|
1372
1373
|
}
|
|
1373
1374
|
|
|
1374
|
-
export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
|
|
1375
|
+
export { type AmazonOffersOptions, type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
|
package/dist/index.js
CHANGED
|
@@ -275,7 +275,18 @@ var AmazonNamespace = class {
|
|
|
275
275
|
...rest
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
/**
|
|
278
|
+
/** Every seller offer for one ASIN: price, seller, condition, shipping, and
|
|
279
|
+
* which offer holds the buy box. Page 1 only. */
|
|
280
|
+
async offers(options) {
|
|
281
|
+
const { asin, ...rest } = options;
|
|
282
|
+
return this.client._post("/api/v1/amazon/offers", {
|
|
283
|
+
query: asin,
|
|
284
|
+
...rest
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/** Supported Amazon marketplaces, as `domains` and `countries`. `languages`
|
|
288
|
+
* and `currencies` remain in the payload but are always empty: neither is a
|
|
289
|
+
* request parameter any more. */
|
|
279
290
|
async options() {
|
|
280
291
|
return this.client._get("/api/v1/amazon/options");
|
|
281
292
|
}
|