@getanyapi/sdk 0.121.1 → 0.123.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 CHANGED
@@ -28,8 +28,10 @@ __export(index_exports, {
28
28
  AnyAPIError: () => AnyAPIError,
29
29
  ApolloNamespace: () => ApolloNamespace,
30
30
  AppstoreNamespace: () => AppstoreNamespace,
31
+ AsosNamespace: () => AsosNamespace,
31
32
  AuthenticationError: () => AuthenticationError,
32
33
  BadRequestError: () => BadRequestError,
34
+ BestbuyNamespace: () => BestbuyNamespace,
33
35
  BingNamespace: () => BingNamespace,
34
36
  BlueskyNamespace: () => BlueskyNamespace,
35
37
  BookingNamespace: () => BookingNamespace,
@@ -62,12 +64,14 @@ __export(index_exports, {
62
64
  GoogleNamespace: () => GoogleNamespace,
63
65
  GoogleShoppingNamespace: () => GoogleShoppingNamespace,
64
66
  HackernewsNamespace: () => HackernewsNamespace,
67
+ IkeaNamespace: () => IkeaNamespace,
65
68
  IndeedNamespace: () => IndeedNamespace,
66
69
  InstagramNamespace: () => InstagramNamespace,
67
70
  InsufficientBalanceError: () => InsufficientBalanceError,
68
71
  JobSearchNamespace: () => JobSearchNamespace,
69
72
  LevelsNamespace: () => LevelsNamespace,
70
73
  LinkedinNamespace: () => LinkedinNamespace,
74
+ LinktreeNamespace: () => LinktreeNamespace,
71
75
  MapsNamespace: () => MapsNamespace,
72
76
  MobilePhoneNamespace: () => MobilePhoneNamespace,
73
77
  NOT_FOUND_REASONS: () => NOT_FOUND_REASONS,
@@ -90,15 +94,19 @@ __export(index_exports, {
90
94
  RednoteNamespace: () => RednoteNamespace,
91
95
  RequestPendingError: () => RequestPendingError,
92
96
  ResultNotFoundError: () => ResultNotFoundError,
97
+ SamsclubNamespace: () => SamsclubNamespace,
93
98
  SecNamespace: () => SecNamespace,
94
99
  SemrushNamespace: () => SemrushNamespace,
95
100
  SeoNamespace: () => SeoNamespace,
96
101
  SimilarwebNamespace: () => SimilarwebNamespace,
102
+ SlickdealsNamespace: () => SlickdealsNamespace,
97
103
  SnapchatNamespace: () => SnapchatNamespace,
98
104
  SocialNamespace: () => SocialNamespace,
99
105
  SpotifyNamespace: () => SpotifyNamespace,
100
106
  SubstackNamespace: () => SubstackNamespace,
107
+ TargetNamespace: () => TargetNamespace,
101
108
  TechnographicsNamespace: () => TechnographicsNamespace,
109
+ TelegramNamespace: () => TelegramNamespace,
102
110
  ThreadsNamespace: () => ThreadsNamespace,
103
111
  TiktokNamespace: () => TiktokNamespace,
104
112
  TiktokShopNamespace: () => TiktokShopNamespace,
@@ -1522,6 +1530,87 @@ var AppstoreNamespace = class {
1522
1530
  }
1523
1531
  };
1524
1532
 
1533
+ // src/generated/platforms/asos.ts
1534
+ var AsosNamespace = class {
1535
+ constructor(_core) {
1536
+ this._core = _core;
1537
+ }
1538
+ _core;
1539
+ /**
1540
+ * ASOS Product
1541
+ *
1542
+ * Fetch an ASOS product by URL from any of its 11 country stores and get title, price, brand, colour, description, images, and per-size stock in one normalized response.
1543
+ *
1544
+ * Price: $0.00085 per request.
1545
+ *
1546
+ * @example
1547
+ * const res = await client.asos.product({ url: "https://www.asos.com/pullbear/pullbear-casual-trainers-in-white/prd/211299341" });
1548
+ */
1549
+ product(input, options) {
1550
+ return this._core.run("asos.product", input, options);
1551
+ }
1552
+ /**
1553
+ * ASOS Search
1554
+ *
1555
+ * Search ASOS by keyword in any of its 11 country stores with optional sort, price-range, and page filters and get title, price, brand, and colour for each product in one normalized response.
1556
+ *
1557
+ * Price: $0.00085 per request.
1558
+ *
1559
+ * @example
1560
+ * const res = await client.asos.search({ query: "white sneakers", country: "us" });
1561
+ */
1562
+ search(input, options) {
1563
+ return this._core.run("asos.search", input, options);
1564
+ }
1565
+ };
1566
+
1567
+ // src/generated/platforms/bestbuy.ts
1568
+ var BestbuyNamespace = class {
1569
+ constructor(_core) {
1570
+ this._core = _core;
1571
+ }
1572
+ _core;
1573
+ /**
1574
+ * Best Buy Product
1575
+ *
1576
+ * Fetch a BestBuy.com product by URL and get title, price, brand, model, UPC, rating, description, and images in one normalized response.
1577
+ *
1578
+ * Price: $0.00085 per request.
1579
+ *
1580
+ * @example
1581
+ * const res = await client.bestbuy.product({ url: "https://www.bestbuy.com/product/apple-airpods-5-true-wireless-active-noise-cancelling-earbuds-with-wireless-charging-case-white/JJGCQP634G/sku/6376564" });
1582
+ */
1583
+ product(input, options) {
1584
+ return this._core.run("bestbuy.product", input, options);
1585
+ }
1586
+ /**
1587
+ * Best Buy Reviews
1588
+ *
1589
+ * Pull a page of 10 customer reviews for any BestBuy.com product by URL, newest first or by relevance, helpfulness, or rating: rating, title, text, date, reviewer, and verified-purchase badge.
1590
+ *
1591
+ * Price: $0.00085 per request.
1592
+ *
1593
+ * @example
1594
+ * const res = await client.bestbuy.reviews({ url: "https://www.bestbuy.com/product/apple-airpods-5-true-wireless-active-noise-cancelling-earbuds-with-wireless-charging-case-white/JJGCQP634G/sku/6376564" });
1595
+ */
1596
+ reviews(input, options) {
1597
+ return this._core.run("bestbuy.reviews", input, options);
1598
+ }
1599
+ /**
1600
+ * Best Buy Search
1601
+ *
1602
+ * Search BestBuy.com by keyword with optional sort, price-range, and page filters and get title, price, rating, and brand for each product in one normalized response.
1603
+ *
1604
+ * Price: $0.00085 per request.
1605
+ *
1606
+ * @example
1607
+ * const res = await client.bestbuy.search({ query: "airpods" });
1608
+ */
1609
+ search(input, options) {
1610
+ return this._core.run("bestbuy.search", input, options);
1611
+ }
1612
+ };
1613
+
1525
1614
  // src/generated/platforms/bing.ts
1526
1615
  var BingNamespace = class {
1527
1616
  constructor(_core) {
@@ -3813,6 +3902,27 @@ var HackernewsNamespace = class {
3813
3902
  }
3814
3903
  };
3815
3904
 
3905
+ // src/generated/platforms/ikea.ts
3906
+ var IkeaNamespace = class {
3907
+ constructor(_core) {
3908
+ this._core = _core;
3909
+ }
3910
+ _core;
3911
+ /**
3912
+ * IKEA Search
3913
+ *
3914
+ * Search IKEA's US store by keyword and get title, price, rating, and image for each product in one normalized response.
3915
+ *
3916
+ * Price: $0.00085 per request.
3917
+ *
3918
+ * @example
3919
+ * const res = await client.ikea.search({ query: "bookshelf" });
3920
+ */
3921
+ search(input, options) {
3922
+ return this._core.run("ikea.search", input, options);
3923
+ }
3924
+ };
3925
+
3816
3926
  // src/generated/platforms/indeed.ts
3817
3927
  var IndeedNamespace = class {
3818
3928
  constructor(_core) {
@@ -5102,6 +5212,27 @@ var LinkedinNamespace = class {
5102
5212
  }
5103
5213
  };
5104
5214
 
5215
+ // src/generated/platforms/linktree.ts
5216
+ var LinktreeNamespace = class {
5217
+ constructor(_core) {
5218
+ this._core = _core;
5219
+ }
5220
+ _core;
5221
+ /**
5222
+ * Linktree Profile
5223
+ *
5224
+ * Get a public Linktree page by URL: title, bio, picture, contact email, linked social accounts, and every link card with its destination.
5225
+ *
5226
+ * Price: $0.0011 per request.
5227
+ *
5228
+ * @example
5229
+ * const res = await client.linktree.profile({ url: "https://linktr.ee/mkbhd" });
5230
+ */
5231
+ profile(input, options) {
5232
+ return this._core.run("linktree.profile", input, options);
5233
+ }
5234
+ };
5235
+
5105
5236
  // src/generated/platforms/maps.ts
5106
5237
  var MapsNamespace = class {
5107
5238
  constructor(_core) {
@@ -6207,6 +6338,40 @@ var RednoteNamespace = class {
6207
6338
  }
6208
6339
  };
6209
6340
 
6341
+ // src/generated/platforms/samsclub.ts
6342
+ var SamsclubNamespace = class {
6343
+ constructor(_core) {
6344
+ this._core = _core;
6345
+ }
6346
+ _core;
6347
+ /**
6348
+ * Sam's Club Product
6349
+ *
6350
+ * Fetch a SamsClub.com product by URL and get title, member price, stock, brand, model, UPC, rating, description, and images in one normalized response.
6351
+ *
6352
+ * Price: $0.00319 per request.
6353
+ *
6354
+ * @example
6355
+ * const res = await client.samsclub.product({ url: "https://www.samsclub.com/ip/Bounty-Select-A-Size-2-Ply-Paper-Towels-12-Rolls-110-sheets-roll/18040450426" });
6356
+ */
6357
+ product(input, options) {
6358
+ return this._core.run("samsclub.product", input, options);
6359
+ }
6360
+ /**
6361
+ * Sam's Club Search
6362
+ *
6363
+ * Search SamsClub.com by keyword with optional sort, price-range, and page filters and get title, member price, stock, and rating for each product in one normalized response.
6364
+ *
6365
+ * Price: $0.00319 per request.
6366
+ *
6367
+ * @example
6368
+ * const res = await client.samsclub.search({ query: "paper towels" });
6369
+ */
6370
+ search(input, options) {
6371
+ return this._core.run("samsclub.search", input, options);
6372
+ }
6373
+ };
6374
+
6210
6375
  // src/generated/platforms/sec.ts
6211
6376
  var SecNamespace = class {
6212
6377
  constructor(_core) {
@@ -6645,6 +6810,40 @@ var SimilarwebNamespace = class {
6645
6810
  }
6646
6811
  };
6647
6812
 
6813
+ // src/generated/platforms/slickdeals.ts
6814
+ var SlickdealsNamespace = class {
6815
+ constructor(_core) {
6816
+ this._core = _core;
6817
+ }
6818
+ _core;
6819
+ /**
6820
+ * Slickdeals Deal
6821
+ *
6822
+ * Fetch one Slickdeals deal by URL and get title, price, list price, store, coupon code, score, views, comments, and description in one normalized response.
6823
+ *
6824
+ * Price: $0.00213 per request.
6825
+ *
6826
+ * @example
6827
+ * const res = await client.slickdeals.deal({ url: "https://slickdeals.net/f/20177112-lg-55-c6-series-oled-evo-ai-4k-smart-webos-tv-2026-best-buy-amazon-999-99" });
6828
+ */
6829
+ deal(input, options) {
6830
+ return this._core.run("slickdeals.deal", input, options);
6831
+ }
6832
+ /**
6833
+ * Slickdeals Search
6834
+ *
6835
+ * Search Slickdeals deals by keyword with optional sort, price, discount, and page filters and get title, price, list price, store, score, and comment count for each deal in one normalized response.
6836
+ *
6837
+ * Price: $0.00213 per request.
6838
+ *
6839
+ * @example
6840
+ * const res = await client.slickdeals.search({ query: "airpods" });
6841
+ */
6842
+ search(input, options) {
6843
+ return this._core.run("slickdeals.search", input, options);
6844
+ }
6845
+ };
6846
+
6648
6847
  // src/generated/platforms/snapchat.ts
6649
6848
  var SnapchatNamespace = class {
6650
6849
  constructor(_core) {
@@ -6823,6 +7022,53 @@ var SubstackNamespace = class {
6823
7022
  }
6824
7023
  };
6825
7024
 
7025
+ // src/generated/platforms/target.ts
7026
+ var TargetNamespace = class {
7027
+ constructor(_core) {
7028
+ this._core = _core;
7029
+ }
7030
+ _core;
7031
+ /**
7032
+ * Target Product
7033
+ *
7034
+ * Fetch a Target.com product by URL and get title, price, brand, rating, description, and images in one normalized response.
7035
+ *
7036
+ * Price: $0.00085 per request.
7037
+ *
7038
+ * @example
7039
+ * const res = await client.target.product({ url: "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920" });
7040
+ */
7041
+ product(input, options) {
7042
+ return this._core.run("target.product", input, options);
7043
+ }
7044
+ /**
7045
+ * Target Reviews
7046
+ *
7047
+ * Pull a page of 10 customer reviews for any Target.com product by URL, newest first or by helpfulness or rating: rating, title, text, date, reviewer, and verified-purchase badge.
7048
+ *
7049
+ * Price: $0.00085 per request.
7050
+ *
7051
+ * @example
7052
+ * const res = await client.target.reviews({ url: "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920" });
7053
+ */
7054
+ reviews(input, options) {
7055
+ return this._core.run("target.reviews", input, options);
7056
+ }
7057
+ /**
7058
+ * Target Search
7059
+ *
7060
+ * Search Target.com by keyword with optional sort, price-range, and page filters and get title, price, rating, and brand for each product in one normalized response.
7061
+ *
7062
+ * Price: $0.00085 per request.
7063
+ *
7064
+ * @example
7065
+ * const res = await client.target.search({ query: "coffee maker" });
7066
+ */
7067
+ search(input, options) {
7068
+ return this._core.run("target.search", input, options);
7069
+ }
7070
+ };
7071
+
6826
7072
  // src/generated/platforms/technographics.ts
6827
7073
  var TechnographicsNamespace = class {
6828
7074
  constructor(_core) {
@@ -6844,6 +7090,69 @@ var TechnographicsNamespace = class {
6844
7090
  }
6845
7091
  };
6846
7092
 
7093
+ // src/generated/platforms/telegram.ts
7094
+ var TelegramNamespace = class {
7095
+ constructor(_core) {
7096
+ this._core = _core;
7097
+ }
7098
+ _core;
7099
+ /**
7100
+ * Telegram Channel
7101
+ *
7102
+ * Get a public Telegram channel by username: name, bio, photo, verified badge, exact subscriber count, and how many photos, videos, files and links it has posted.
7103
+ *
7104
+ * Price: $0.0011 per request.
7105
+ *
7106
+ * @example
7107
+ * const res = await client.telegram.channel({ handle: "telegram" });
7108
+ */
7109
+ channel(input, options) {
7110
+ return this._core.run("telegram.channel", input, options);
7111
+ }
7112
+ /**
7113
+ * Telegram Channel Posts
7114
+ *
7115
+ * Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions.
7116
+ *
7117
+ * Price: $0.0011 per request.
7118
+ *
7119
+ * @example
7120
+ * const res = await client.telegram.channelPosts({ handle: "telegram" });
7121
+ */
7122
+ channelPosts(input, options) {
7123
+ return this._core.run("telegram.channel_posts", input, options);
7124
+ }
7125
+ /**
7126
+ * Iterate every result of Telegram Channel Posts across pages.
7127
+ *
7128
+ * Yields items directly; call `.pages()` on the return value to walk whole
7129
+ * result pages instead (each carries its own costUsd).
7130
+ */
7131
+ iterChannelPosts(input, options) {
7132
+ return paginate(
7133
+ this._core,
7134
+ "telegram.channel_posts",
7135
+ input,
7136
+ "posts",
7137
+ false,
7138
+ options
7139
+ );
7140
+ }
7141
+ /**
7142
+ * Telegram Post
7143
+ *
7144
+ * Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions.
7145
+ *
7146
+ * Price: $0.0011 per request.
7147
+ *
7148
+ * @example
7149
+ * const res = await client.telegram.post({ url: "https://t.me/telegram/460" });
7150
+ */
7151
+ post(input, options) {
7152
+ return this._core.run("telegram.post", input, options);
7153
+ }
7154
+ };
7155
+
6847
7156
  // src/generated/platforms/threads.ts
6848
7157
  var ThreadsNamespace = class {
6849
7158
  constructor(_core) {
@@ -7543,6 +7852,19 @@ var TiktokNamespace = class {
7543
7852
  trendingHashtags(input, options) {
7544
7853
  return this._core.run("tiktok.trending_hashtags", input, options);
7545
7854
  }
7855
+ /**
7856
+ * TikTok User Stories
7857
+ *
7858
+ * Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts.
7859
+ *
7860
+ * Price: $0.0011 per request.
7861
+ *
7862
+ * @example
7863
+ * const res = await client.tiktok.userStories({ handle: "jasonderulo" });
7864
+ */
7865
+ userStories(input, options) {
7866
+ return this._core.run("tiktok.user_stories", input, options);
7867
+ }
7546
7868
  /**
7547
7869
  * TikTok Video
7548
7870
  *
@@ -9127,6 +9449,22 @@ var AnyAPI2 = class extends AnyAPI {
9127
9449
  this._core
9128
9450
  );
9129
9451
  }
9452
+ /**
9453
+ * Typed methods for the asos platform.
9454
+ */
9455
+ get asos() {
9456
+ return this._namespaces["asos"] ??= new AsosNamespace(
9457
+ this._core
9458
+ );
9459
+ }
9460
+ /**
9461
+ * Typed methods for the bestbuy platform.
9462
+ */
9463
+ get bestbuy() {
9464
+ return this._namespaces["bestbuy"] ??= new BestbuyNamespace(
9465
+ this._core
9466
+ );
9467
+ }
9130
9468
  /**
9131
9469
  * Typed methods for the bing platform.
9132
9470
  */
@@ -9367,6 +9705,14 @@ var AnyAPI2 = class extends AnyAPI {
9367
9705
  this._core
9368
9706
  );
9369
9707
  }
9708
+ /**
9709
+ * Typed methods for the ikea platform.
9710
+ */
9711
+ get ikea() {
9712
+ return this._namespaces["ikea"] ??= new IkeaNamespace(
9713
+ this._core
9714
+ );
9715
+ }
9370
9716
  /**
9371
9717
  * Typed methods for the indeed platform.
9372
9718
  */
@@ -9407,6 +9753,14 @@ var AnyAPI2 = class extends AnyAPI {
9407
9753
  this._core
9408
9754
  );
9409
9755
  }
9756
+ /**
9757
+ * Typed methods for the linktree platform.
9758
+ */
9759
+ get linktree() {
9760
+ return this._namespaces["linktree"] ??= new LinktreeNamespace(
9761
+ this._core
9762
+ );
9763
+ }
9410
9764
  /**
9411
9765
  * Typed methods for the maps platform.
9412
9766
  */
@@ -9539,6 +9893,14 @@ var AnyAPI2 = class extends AnyAPI {
9539
9893
  this._core
9540
9894
  );
9541
9895
  }
9896
+ /**
9897
+ * Typed methods for the samsclub platform.
9898
+ */
9899
+ get samsclub() {
9900
+ return this._namespaces["samsclub"] ??= new SamsclubNamespace(
9901
+ this._core
9902
+ );
9903
+ }
9542
9904
  /**
9543
9905
  * Typed methods for the sec platform.
9544
9906
  */
@@ -9571,6 +9933,14 @@ var AnyAPI2 = class extends AnyAPI {
9571
9933
  this._core
9572
9934
  );
9573
9935
  }
9936
+ /**
9937
+ * Typed methods for the slickdeals platform.
9938
+ */
9939
+ get slickdeals() {
9940
+ return this._namespaces["slickdeals"] ??= new SlickdealsNamespace(
9941
+ this._core
9942
+ );
9943
+ }
9574
9944
  /**
9575
9945
  * Typed methods for the snapchat platform.
9576
9946
  */
@@ -9603,6 +9973,14 @@ var AnyAPI2 = class extends AnyAPI {
9603
9973
  this._core
9604
9974
  );
9605
9975
  }
9976
+ /**
9977
+ * Typed methods for the target platform.
9978
+ */
9979
+ get target() {
9980
+ return this._namespaces["target"] ??= new TargetNamespace(
9981
+ this._core
9982
+ );
9983
+ }
9606
9984
  /**
9607
9985
  * Typed methods for the technographics platform.
9608
9986
  */
@@ -9611,6 +9989,14 @@ var AnyAPI2 = class extends AnyAPI {
9611
9989
  this._core
9612
9990
  );
9613
9991
  }
9992
+ /**
9993
+ * Typed methods for the telegram platform.
9994
+ */
9995
+ get telegram() {
9996
+ return this._namespaces["telegram"] ??= new TelegramNamespace(
9997
+ this._core
9998
+ );
9999
+ }
9614
10000
  /**
9615
10001
  * Typed methods for the threads platform.
9616
10002
  */
@@ -9758,8 +10144,10 @@ var AnyAPI2 = class extends AnyAPI {
9758
10144
  AnyAPIError,
9759
10145
  ApolloNamespace,
9760
10146
  AppstoreNamespace,
10147
+ AsosNamespace,
9761
10148
  AuthenticationError,
9762
10149
  BadRequestError,
10150
+ BestbuyNamespace,
9763
10151
  BingNamespace,
9764
10152
  BlueskyNamespace,
9765
10153
  BookingNamespace,
@@ -9792,12 +10180,14 @@ var AnyAPI2 = class extends AnyAPI {
9792
10180
  GoogleNamespace,
9793
10181
  GoogleShoppingNamespace,
9794
10182
  HackernewsNamespace,
10183
+ IkeaNamespace,
9795
10184
  IndeedNamespace,
9796
10185
  InstagramNamespace,
9797
10186
  InsufficientBalanceError,
9798
10187
  JobSearchNamespace,
9799
10188
  LevelsNamespace,
9800
10189
  LinkedinNamespace,
10190
+ LinktreeNamespace,
9801
10191
  MapsNamespace,
9802
10192
  MobilePhoneNamespace,
9803
10193
  NOT_FOUND_REASONS,
@@ -9820,15 +10210,19 @@ var AnyAPI2 = class extends AnyAPI {
9820
10210
  RednoteNamespace,
9821
10211
  RequestPendingError,
9822
10212
  ResultNotFoundError,
10213
+ SamsclubNamespace,
9823
10214
  SecNamespace,
9824
10215
  SemrushNamespace,
9825
10216
  SeoNamespace,
9826
10217
  SimilarwebNamespace,
10218
+ SlickdealsNamespace,
9827
10219
  SnapchatNamespace,
9828
10220
  SocialNamespace,
9829
10221
  SpotifyNamespace,
9830
10222
  SubstackNamespace,
10223
+ TargetNamespace,
9831
10224
  TechnographicsNamespace,
10225
+ TelegramNamespace,
9832
10226
  ThreadsNamespace,
9833
10227
  TiktokNamespace,
9834
10228
  TiktokShopNamespace,