@getanyapi/sdk 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -977,6 +977,7 @@ interface AmazonBestsellersInput {
977
977
  /**
978
978
  * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
979
979
  * Range: minimum 1, maximum 20.
980
+ * Default: 20.
980
981
  */
981
982
  limit?: number;
982
983
  /**
@@ -1142,6 +1143,7 @@ interface AmazonReviewsInput {
1142
1143
  /**
1143
1144
  * Maximum number of results to return (1-50, default 50). You are billed per result returned, so a lower limit costs less.
1144
1145
  * Range: minimum 1, maximum 50.
1146
+ * Default: 50.
1145
1147
  */
1146
1148
  limit?: number;
1147
1149
  /**
@@ -1221,6 +1223,7 @@ interface AmazonSearchInput {
1221
1223
  /**
1222
1224
  * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
1223
1225
  * Range: minimum 1, maximum 20.
1226
+ * Default: 20.
1224
1227
  */
1225
1228
  limit?: number;
1226
1229
  /**
@@ -1307,7 +1310,7 @@ declare class AmazonNamespace {
1307
1310
  *
1308
1311
  * List the top-ranked products of any Amazon Best Sellers category (rank, title, price, and rating) in one normalized request.
1309
1312
  *
1310
- * Price: $0 per request plus $0.00431 per result (maximum $0.0861).
1313
+ * Price: $0.0009 per request.
1311
1314
  *
1312
1315
  * @example
1313
1316
  * const res = await client.amazon.bestsellers({ url: "https://www.amazon.com/gp/bestsellers/electronics", limit: 3 });
@@ -1329,7 +1332,7 @@ declare class AmazonNamespace {
1329
1332
  *
1330
1333
  * Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
1331
1334
  *
1332
- * Price: $0.018 per request.
1335
+ * Price: $0.0018 per request.
1333
1336
  *
1334
1337
  * @example
1335
1338
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -1340,7 +1343,7 @@ declare class AmazonNamespace {
1340
1343
  *
1341
1344
  * Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
1342
1345
  *
1343
- * Price: $0 per request plus $0.00368 per result (maximum $0.0735).
1346
+ * Price: $0.0009 per request.
1344
1347
  *
1345
1348
  * @example
1346
1349
  * const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
@@ -21159,7 +21162,7 @@ interface TwitterProfileData {
21159
21162
  */
21160
21163
  interface TwitterRepliesInput {
21161
21164
  /**
21162
- * Maximum number of results to return (1-40, default 40). You are billed per result returned, so a lower limit costs less.
21165
+ * Maximum number of results to return (1-40, default 40). Per-result lanes cost less at lower limits; a backup that bills its native page may cost up to the advertised request price.
21163
21166
  * Range: minimum 1, maximum 40.
21164
21167
  */
21165
21168
  limit?: number;
@@ -21509,7 +21512,7 @@ interface TwitterUserPostsData {
21509
21512
  */
21510
21513
  interface TwitterUserTweetsInput {
21511
21514
  /**
21512
- * Reserved for cursor-capable lanes. The current bulk lane returns nextCursor as null, so omit this field.
21515
+ * Opaque pagination cursor from a previous response's nextCursor. Omit for the first page.
21513
21516
  */
21514
21517
  cursor?: string;
21515
21518
  /**
@@ -21523,7 +21526,7 @@ interface TwitterUserTweetsInput {
21523
21526
  */
21524
21527
  limit?: number;
21525
21528
  /**
21526
- * Compatibility flag for requiring one response. The current lane already returns up to limit results in one bulk call, whether this is omitted or true.
21529
+ * Require a lane that can return the requested limit in one response.
21527
21530
  */
21528
21531
  requireSinglePage?: boolean;
21529
21532
  }
@@ -21560,7 +21563,7 @@ interface TwitterUserTweetsTweet {
21560
21563
  */
21561
21564
  interface TwitterUserTweetsData {
21562
21565
  /**
21563
- * Reserved pagination cursor. The current bulk lane returns null; cursor-capable lanes may return an opaque continuation value in the future.
21566
+ * Opaque cursor for the next page when the selected lane supports pagination, otherwise null.
21564
21567
  */
21565
21568
  nextCursor?: string | null;
21566
21569
  /**
@@ -21591,7 +21594,7 @@ declare class TwitterNamespace {
21591
21594
  *
21592
21595
  * Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
21593
21596
  *
21594
- * Price: $0.002 per request.
21597
+ * Price: $0.00018 per request.
21595
21598
  *
21596
21599
  * @example
21597
21600
  * const res = await client.twitter.community({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -21649,7 +21652,7 @@ declare class TwitterNamespace {
21649
21652
  *
21650
21653
  * Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
21651
21654
  *
21652
- * Price: $0.00075 per request.
21655
+ * Price: $0.00018 per request.
21653
21656
  *
21654
21657
  * @example
21655
21658
  * const res = await client.twitter.profile({ handle: "nasa" });
@@ -21660,7 +21663,7 @@ declare class TwitterNamespace {
21660
21663
  *
21661
21664
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement.
21662
21665
  *
21663
- * Price: $0.00263 per request plus $0.00027 per result (maximum $0.0132).
21666
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.00666).
21664
21667
  *
21665
21668
  * @example
21666
21669
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20", limit: 3 });
@@ -21689,7 +21692,7 @@ declare class TwitterNamespace {
21689
21692
  *
21690
21693
  * Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
21691
21694
  *
21692
- * Price: $0.00075 per request.
21695
+ * Price: $0.00018 per request.
21693
21696
  *
21694
21697
  * @example
21695
21698
  * const res = await client.twitter.trends({ limit: 10, location: "US" });
@@ -21700,7 +21703,7 @@ declare class TwitterNamespace {
21700
21703
  *
21701
21704
  * Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
21702
21705
  *
21703
- * Price: $0.00075 per request.
21706
+ * Price: $0.00018 per request.
21704
21707
  *
21705
21708
  * @example
21706
21709
  * const res = await client.twitter.tweet({ url: "https://x.com/SpaceX/status/1732824684683784516" });
@@ -21738,9 +21741,9 @@ declare class TwitterNamespace {
21738
21741
  /**
21739
21742
  * X / Twitter User Tweets and Replies
21740
21743
  *
21741
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
21744
+ * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
21742
21745
  *
21743
- * Price: $0 per request plus $0.00021 per result (maximum $0.21).
21746
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.01818).
21744
21747
  *
21745
21748
  * @example
21746
21749
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -24631,6 +24634,7 @@ interface ZillowSearchInput {
24631
24634
  /**
24632
24635
  * Maximum number of results to return (1-25, default 25). You are billed per result returned, so a lower limit costs less.
24633
24636
  * Range: minimum 1, maximum 25.
24637
+ * Default: 25.
24634
24638
  */
24635
24639
  limit?: number;
24636
24640
  /**
@@ -24793,7 +24797,7 @@ declare class ZillowNamespace {
24793
24797
  *
24794
24798
  * Search Zillow for-sale, rental, or sold listings by region-level location (city, ZIP, county, or neighborhood) with optional price, bedroom, living-area, home-type, recency, and sort filters and get matching properties (price, address, beds, baths, living area, status, Zestimate) as normalized JSON.
24795
24799
  *
24796
- * Price: $0.00053 per request plus $0.00315 per result (maximum $0.0793).
24800
+ * Price: $0.0009 per request.
24797
24801
  *
24798
24802
  * @example
24799
24803
  * const res = await client.zillow.search({ location: "Austin, TX", limit: 3, maxPrice: 900000, minBedrooms: 3, operation: "buy" });
package/dist/index.d.ts CHANGED
@@ -977,6 +977,7 @@ interface AmazonBestsellersInput {
977
977
  /**
978
978
  * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
979
979
  * Range: minimum 1, maximum 20.
980
+ * Default: 20.
980
981
  */
981
982
  limit?: number;
982
983
  /**
@@ -1142,6 +1143,7 @@ interface AmazonReviewsInput {
1142
1143
  /**
1143
1144
  * Maximum number of results to return (1-50, default 50). You are billed per result returned, so a lower limit costs less.
1144
1145
  * Range: minimum 1, maximum 50.
1146
+ * Default: 50.
1145
1147
  */
1146
1148
  limit?: number;
1147
1149
  /**
@@ -1221,6 +1223,7 @@ interface AmazonSearchInput {
1221
1223
  /**
1222
1224
  * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
1223
1225
  * Range: minimum 1, maximum 20.
1226
+ * Default: 20.
1224
1227
  */
1225
1228
  limit?: number;
1226
1229
  /**
@@ -1307,7 +1310,7 @@ declare class AmazonNamespace {
1307
1310
  *
1308
1311
  * List the top-ranked products of any Amazon Best Sellers category (rank, title, price, and rating) in one normalized request.
1309
1312
  *
1310
- * Price: $0 per request plus $0.00431 per result (maximum $0.0861).
1313
+ * Price: $0.0009 per request.
1311
1314
  *
1312
1315
  * @example
1313
1316
  * const res = await client.amazon.bestsellers({ url: "https://www.amazon.com/gp/bestsellers/electronics", limit: 3 });
@@ -1329,7 +1332,7 @@ declare class AmazonNamespace {
1329
1332
  *
1330
1333
  * Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
1331
1334
  *
1332
- * Price: $0.018 per request.
1335
+ * Price: $0.0018 per request.
1333
1336
  *
1334
1337
  * @example
1335
1338
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -1340,7 +1343,7 @@ declare class AmazonNamespace {
1340
1343
  *
1341
1344
  * Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
1342
1345
  *
1343
- * Price: $0 per request plus $0.00368 per result (maximum $0.0735).
1346
+ * Price: $0.0009 per request.
1344
1347
  *
1345
1348
  * @example
1346
1349
  * const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
@@ -21159,7 +21162,7 @@ interface TwitterProfileData {
21159
21162
  */
21160
21163
  interface TwitterRepliesInput {
21161
21164
  /**
21162
- * Maximum number of results to return (1-40, default 40). You are billed per result returned, so a lower limit costs less.
21165
+ * Maximum number of results to return (1-40, default 40). Per-result lanes cost less at lower limits; a backup that bills its native page may cost up to the advertised request price.
21163
21166
  * Range: minimum 1, maximum 40.
21164
21167
  */
21165
21168
  limit?: number;
@@ -21509,7 +21512,7 @@ interface TwitterUserPostsData {
21509
21512
  */
21510
21513
  interface TwitterUserTweetsInput {
21511
21514
  /**
21512
- * Reserved for cursor-capable lanes. The current bulk lane returns nextCursor as null, so omit this field.
21515
+ * Opaque pagination cursor from a previous response's nextCursor. Omit for the first page.
21513
21516
  */
21514
21517
  cursor?: string;
21515
21518
  /**
@@ -21523,7 +21526,7 @@ interface TwitterUserTweetsInput {
21523
21526
  */
21524
21527
  limit?: number;
21525
21528
  /**
21526
- * Compatibility flag for requiring one response. The current lane already returns up to limit results in one bulk call, whether this is omitted or true.
21529
+ * Require a lane that can return the requested limit in one response.
21527
21530
  */
21528
21531
  requireSinglePage?: boolean;
21529
21532
  }
@@ -21560,7 +21563,7 @@ interface TwitterUserTweetsTweet {
21560
21563
  */
21561
21564
  interface TwitterUserTweetsData {
21562
21565
  /**
21563
- * Reserved pagination cursor. The current bulk lane returns null; cursor-capable lanes may return an opaque continuation value in the future.
21566
+ * Opaque cursor for the next page when the selected lane supports pagination, otherwise null.
21564
21567
  */
21565
21568
  nextCursor?: string | null;
21566
21569
  /**
@@ -21591,7 +21594,7 @@ declare class TwitterNamespace {
21591
21594
  *
21592
21595
  * Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
21593
21596
  *
21594
- * Price: $0.002 per request.
21597
+ * Price: $0.00018 per request.
21595
21598
  *
21596
21599
  * @example
21597
21600
  * const res = await client.twitter.community({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -21649,7 +21652,7 @@ declare class TwitterNamespace {
21649
21652
  *
21650
21653
  * Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
21651
21654
  *
21652
- * Price: $0.00075 per request.
21655
+ * Price: $0.00018 per request.
21653
21656
  *
21654
21657
  * @example
21655
21658
  * const res = await client.twitter.profile({ handle: "nasa" });
@@ -21660,7 +21663,7 @@ declare class TwitterNamespace {
21660
21663
  *
21661
21664
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement.
21662
21665
  *
21663
- * Price: $0.00263 per request plus $0.00027 per result (maximum $0.0132).
21666
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.00666).
21664
21667
  *
21665
21668
  * @example
21666
21669
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20", limit: 3 });
@@ -21689,7 +21692,7 @@ declare class TwitterNamespace {
21689
21692
  *
21690
21693
  * Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
21691
21694
  *
21692
- * Price: $0.00075 per request.
21695
+ * Price: $0.00018 per request.
21693
21696
  *
21694
21697
  * @example
21695
21698
  * const res = await client.twitter.trends({ limit: 10, location: "US" });
@@ -21700,7 +21703,7 @@ declare class TwitterNamespace {
21700
21703
  *
21701
21704
  * Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
21702
21705
  *
21703
- * Price: $0.00075 per request.
21706
+ * Price: $0.00018 per request.
21704
21707
  *
21705
21708
  * @example
21706
21709
  * const res = await client.twitter.tweet({ url: "https://x.com/SpaceX/status/1732824684683784516" });
@@ -21738,9 +21741,9 @@ declare class TwitterNamespace {
21738
21741
  /**
21739
21742
  * X / Twitter User Tweets and Replies
21740
21743
  *
21741
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
21744
+ * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
21742
21745
  *
21743
- * Price: $0 per request plus $0.00021 per result (maximum $0.21).
21746
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.01818).
21744
21747
  *
21745
21748
  * @example
21746
21749
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -24631,6 +24634,7 @@ interface ZillowSearchInput {
24631
24634
  /**
24632
24635
  * Maximum number of results to return (1-25, default 25). You are billed per result returned, so a lower limit costs less.
24633
24636
  * Range: minimum 1, maximum 25.
24637
+ * Default: 25.
24634
24638
  */
24635
24639
  limit?: number;
24636
24640
  /**
@@ -24793,7 +24797,7 @@ declare class ZillowNamespace {
24793
24797
  *
24794
24798
  * Search Zillow for-sale, rental, or sold listings by region-level location (city, ZIP, county, or neighborhood) with optional price, bedroom, living-area, home-type, recency, and sort filters and get matching properties (price, address, beds, baths, living area, status, Zestimate) as normalized JSON.
24795
24799
  *
24796
- * Price: $0.00053 per request plus $0.00315 per result (maximum $0.0793).
24800
+ * Price: $0.0009 per request.
24797
24801
  *
24798
24802
  * @example
24799
24803
  * const res = await client.zillow.search({ location: "Austin, TX", limit: 3, maxPrice: 900000, minBedrooms: 3, operation: "buy" });
package/dist/index.js CHANGED
@@ -991,7 +991,7 @@ var AmazonNamespace = class {
991
991
  *
992
992
  * List the top-ranked products of any Amazon Best Sellers category (rank, title, price, and rating) in one normalized request.
993
993
  *
994
- * Price: $0 per request plus $0.00431 per result (maximum $0.0861).
994
+ * Price: $0.0009 per request.
995
995
  *
996
996
  * @example
997
997
  * const res = await client.amazon.bestsellers({ url: "https://www.amazon.com/gp/bestsellers/electronics", limit: 3 });
@@ -1017,7 +1017,7 @@ var AmazonNamespace = class {
1017
1017
  *
1018
1018
  * Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
1019
1019
  *
1020
- * Price: $0.018 per request.
1020
+ * Price: $0.0018 per request.
1021
1021
  *
1022
1022
  * @example
1023
1023
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -1030,7 +1030,7 @@ var AmazonNamespace = class {
1030
1030
  *
1031
1031
  * Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
1032
1032
  *
1033
- * Price: $0 per request plus $0.00368 per result (maximum $0.0735).
1033
+ * Price: $0.0009 per request.
1034
1034
  *
1035
1035
  * @example
1036
1036
  * const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
@@ -5037,7 +5037,7 @@ var TwitterNamespace = class {
5037
5037
  *
5038
5038
  * Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
5039
5039
  *
5040
- * Price: $0.002 per request.
5040
+ * Price: $0.00018 per request.
5041
5041
  *
5042
5042
  * @example
5043
5043
  * const res = await client.twitter.community({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -5121,7 +5121,7 @@ var TwitterNamespace = class {
5121
5121
  *
5122
5122
  * Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
5123
5123
  *
5124
- * Price: $0.00075 per request.
5124
+ * Price: $0.00018 per request.
5125
5125
  *
5126
5126
  * @example
5127
5127
  * const res = await client.twitter.profile({ handle: "nasa" });
@@ -5134,7 +5134,7 @@ var TwitterNamespace = class {
5134
5134
  *
5135
5135
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement.
5136
5136
  *
5137
- * Price: $0.00263 per request plus $0.00027 per result (maximum $0.0132).
5137
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.00666).
5138
5138
  *
5139
5139
  * @example
5140
5140
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20", limit: 3 });
@@ -5176,7 +5176,7 @@ var TwitterNamespace = class {
5176
5176
  *
5177
5177
  * Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
5178
5178
  *
5179
- * Price: $0.00075 per request.
5179
+ * Price: $0.00018 per request.
5180
5180
  *
5181
5181
  * @example
5182
5182
  * const res = await client.twitter.trends({ limit: 10, location: "US" });
@@ -5189,7 +5189,7 @@ var TwitterNamespace = class {
5189
5189
  *
5190
5190
  * Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
5191
5191
  *
5192
- * Price: $0.00075 per request.
5192
+ * Price: $0.00018 per request.
5193
5193
  *
5194
5194
  * @example
5195
5195
  * const res = await client.twitter.tweet({ url: "https://x.com/SpaceX/status/1732824684683784516" });
@@ -5242,9 +5242,9 @@ var TwitterNamespace = class {
5242
5242
  /**
5243
5243
  * X / Twitter User Tweets and Replies
5244
5244
  *
5245
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
5245
+ * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
5246
5246
  *
5247
- * Price: $0 per request plus $0.00021 per result (maximum $0.21).
5247
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.01818).
5248
5248
  *
5249
5249
  * @example
5250
5250
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -5957,7 +5957,7 @@ var ZillowNamespace = class {
5957
5957
  *
5958
5958
  * Search Zillow for-sale, rental, or sold listings by region-level location (city, ZIP, county, or neighborhood) with optional price, bedroom, living-area, home-type, recency, and sort filters and get matching properties (price, address, beds, baths, living area, status, Zestimate) as normalized JSON.
5959
5959
  *
5960
- * Price: $0.00053 per request plus $0.00315 per result (maximum $0.0793).
5960
+ * Price: $0.0009 per request.
5961
5961
  *
5962
5962
  * @example
5963
5963
  * const res = await client.zillow.search({ location: "Austin, TX", limit: 3, maxPrice: 900000, minBedrooms: 3, operation: "buy" });