@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.js CHANGED
@@ -1396,6 +1396,87 @@ var AppstoreNamespace = class {
1396
1396
  }
1397
1397
  };
1398
1398
 
1399
+ // src/generated/platforms/asos.ts
1400
+ var AsosNamespace = class {
1401
+ constructor(_core) {
1402
+ this._core = _core;
1403
+ }
1404
+ _core;
1405
+ /**
1406
+ * ASOS Product
1407
+ *
1408
+ * 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.
1409
+ *
1410
+ * Price: $0.00085 per request.
1411
+ *
1412
+ * @example
1413
+ * const res = await client.asos.product({ url: "https://www.asos.com/pullbear/pullbear-casual-trainers-in-white/prd/211299341" });
1414
+ */
1415
+ product(input, options) {
1416
+ return this._core.run("asos.product", input, options);
1417
+ }
1418
+ /**
1419
+ * ASOS Search
1420
+ *
1421
+ * 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.
1422
+ *
1423
+ * Price: $0.00085 per request.
1424
+ *
1425
+ * @example
1426
+ * const res = await client.asos.search({ query: "white sneakers", country: "us" });
1427
+ */
1428
+ search(input, options) {
1429
+ return this._core.run("asos.search", input, options);
1430
+ }
1431
+ };
1432
+
1433
+ // src/generated/platforms/bestbuy.ts
1434
+ var BestbuyNamespace = class {
1435
+ constructor(_core) {
1436
+ this._core = _core;
1437
+ }
1438
+ _core;
1439
+ /**
1440
+ * Best Buy Product
1441
+ *
1442
+ * Fetch a BestBuy.com product by URL and get title, price, brand, model, UPC, rating, description, and images in one normalized response.
1443
+ *
1444
+ * Price: $0.00085 per request.
1445
+ *
1446
+ * @example
1447
+ * 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" });
1448
+ */
1449
+ product(input, options) {
1450
+ return this._core.run("bestbuy.product", input, options);
1451
+ }
1452
+ /**
1453
+ * Best Buy Reviews
1454
+ *
1455
+ * 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.
1456
+ *
1457
+ * Price: $0.00085 per request.
1458
+ *
1459
+ * @example
1460
+ * 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" });
1461
+ */
1462
+ reviews(input, options) {
1463
+ return this._core.run("bestbuy.reviews", input, options);
1464
+ }
1465
+ /**
1466
+ * Best Buy Search
1467
+ *
1468
+ * 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.
1469
+ *
1470
+ * Price: $0.00085 per request.
1471
+ *
1472
+ * @example
1473
+ * const res = await client.bestbuy.search({ query: "airpods" });
1474
+ */
1475
+ search(input, options) {
1476
+ return this._core.run("bestbuy.search", input, options);
1477
+ }
1478
+ };
1479
+
1399
1480
  // src/generated/platforms/bing.ts
1400
1481
  var BingNamespace = class {
1401
1482
  constructor(_core) {
@@ -3687,6 +3768,27 @@ var HackernewsNamespace = class {
3687
3768
  }
3688
3769
  };
3689
3770
 
3771
+ // src/generated/platforms/ikea.ts
3772
+ var IkeaNamespace = class {
3773
+ constructor(_core) {
3774
+ this._core = _core;
3775
+ }
3776
+ _core;
3777
+ /**
3778
+ * IKEA Search
3779
+ *
3780
+ * Search IKEA's US store by keyword and get title, price, rating, and image for each product in one normalized response.
3781
+ *
3782
+ * Price: $0.00085 per request.
3783
+ *
3784
+ * @example
3785
+ * const res = await client.ikea.search({ query: "bookshelf" });
3786
+ */
3787
+ search(input, options) {
3788
+ return this._core.run("ikea.search", input, options);
3789
+ }
3790
+ };
3791
+
3690
3792
  // src/generated/platforms/indeed.ts
3691
3793
  var IndeedNamespace = class {
3692
3794
  constructor(_core) {
@@ -4976,6 +5078,27 @@ var LinkedinNamespace = class {
4976
5078
  }
4977
5079
  };
4978
5080
 
5081
+ // src/generated/platforms/linktree.ts
5082
+ var LinktreeNamespace = class {
5083
+ constructor(_core) {
5084
+ this._core = _core;
5085
+ }
5086
+ _core;
5087
+ /**
5088
+ * Linktree Profile
5089
+ *
5090
+ * Get a public Linktree page by URL: title, bio, picture, contact email, linked social accounts, and every link card with its destination.
5091
+ *
5092
+ * Price: $0.0011 per request.
5093
+ *
5094
+ * @example
5095
+ * const res = await client.linktree.profile({ url: "https://linktr.ee/mkbhd" });
5096
+ */
5097
+ profile(input, options) {
5098
+ return this._core.run("linktree.profile", input, options);
5099
+ }
5100
+ };
5101
+
4979
5102
  // src/generated/platforms/maps.ts
4980
5103
  var MapsNamespace = class {
4981
5104
  constructor(_core) {
@@ -6081,6 +6204,40 @@ var RednoteNamespace = class {
6081
6204
  }
6082
6205
  };
6083
6206
 
6207
+ // src/generated/platforms/samsclub.ts
6208
+ var SamsclubNamespace = class {
6209
+ constructor(_core) {
6210
+ this._core = _core;
6211
+ }
6212
+ _core;
6213
+ /**
6214
+ * Sam's Club Product
6215
+ *
6216
+ * Fetch a SamsClub.com product by URL and get title, member price, stock, brand, model, UPC, rating, description, and images in one normalized response.
6217
+ *
6218
+ * Price: $0.00319 per request.
6219
+ *
6220
+ * @example
6221
+ * 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" });
6222
+ */
6223
+ product(input, options) {
6224
+ return this._core.run("samsclub.product", input, options);
6225
+ }
6226
+ /**
6227
+ * Sam's Club Search
6228
+ *
6229
+ * 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.
6230
+ *
6231
+ * Price: $0.00319 per request.
6232
+ *
6233
+ * @example
6234
+ * const res = await client.samsclub.search({ query: "paper towels" });
6235
+ */
6236
+ search(input, options) {
6237
+ return this._core.run("samsclub.search", input, options);
6238
+ }
6239
+ };
6240
+
6084
6241
  // src/generated/platforms/sec.ts
6085
6242
  var SecNamespace = class {
6086
6243
  constructor(_core) {
@@ -6519,6 +6676,40 @@ var SimilarwebNamespace = class {
6519
6676
  }
6520
6677
  };
6521
6678
 
6679
+ // src/generated/platforms/slickdeals.ts
6680
+ var SlickdealsNamespace = class {
6681
+ constructor(_core) {
6682
+ this._core = _core;
6683
+ }
6684
+ _core;
6685
+ /**
6686
+ * Slickdeals Deal
6687
+ *
6688
+ * Fetch one Slickdeals deal by URL and get title, price, list price, store, coupon code, score, views, comments, and description in one normalized response.
6689
+ *
6690
+ * Price: $0.00213 per request.
6691
+ *
6692
+ * @example
6693
+ * 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" });
6694
+ */
6695
+ deal(input, options) {
6696
+ return this._core.run("slickdeals.deal", input, options);
6697
+ }
6698
+ /**
6699
+ * Slickdeals Search
6700
+ *
6701
+ * 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.
6702
+ *
6703
+ * Price: $0.00213 per request.
6704
+ *
6705
+ * @example
6706
+ * const res = await client.slickdeals.search({ query: "airpods" });
6707
+ */
6708
+ search(input, options) {
6709
+ return this._core.run("slickdeals.search", input, options);
6710
+ }
6711
+ };
6712
+
6522
6713
  // src/generated/platforms/snapchat.ts
6523
6714
  var SnapchatNamespace = class {
6524
6715
  constructor(_core) {
@@ -6697,6 +6888,53 @@ var SubstackNamespace = class {
6697
6888
  }
6698
6889
  };
6699
6890
 
6891
+ // src/generated/platforms/target.ts
6892
+ var TargetNamespace = class {
6893
+ constructor(_core) {
6894
+ this._core = _core;
6895
+ }
6896
+ _core;
6897
+ /**
6898
+ * Target Product
6899
+ *
6900
+ * Fetch a Target.com product by URL and get title, price, brand, rating, description, and images in one normalized response.
6901
+ *
6902
+ * Price: $0.00085 per request.
6903
+ *
6904
+ * @example
6905
+ * const res = await client.target.product({ url: "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920" });
6906
+ */
6907
+ product(input, options) {
6908
+ return this._core.run("target.product", input, options);
6909
+ }
6910
+ /**
6911
+ * Target Reviews
6912
+ *
6913
+ * 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.
6914
+ *
6915
+ * Price: $0.00085 per request.
6916
+ *
6917
+ * @example
6918
+ * const res = await client.target.reviews({ url: "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920" });
6919
+ */
6920
+ reviews(input, options) {
6921
+ return this._core.run("target.reviews", input, options);
6922
+ }
6923
+ /**
6924
+ * Target Search
6925
+ *
6926
+ * 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.
6927
+ *
6928
+ * Price: $0.00085 per request.
6929
+ *
6930
+ * @example
6931
+ * const res = await client.target.search({ query: "coffee maker" });
6932
+ */
6933
+ search(input, options) {
6934
+ return this._core.run("target.search", input, options);
6935
+ }
6936
+ };
6937
+
6700
6938
  // src/generated/platforms/technographics.ts
6701
6939
  var TechnographicsNamespace = class {
6702
6940
  constructor(_core) {
@@ -6718,6 +6956,69 @@ var TechnographicsNamespace = class {
6718
6956
  }
6719
6957
  };
6720
6958
 
6959
+ // src/generated/platforms/telegram.ts
6960
+ var TelegramNamespace = class {
6961
+ constructor(_core) {
6962
+ this._core = _core;
6963
+ }
6964
+ _core;
6965
+ /**
6966
+ * Telegram Channel
6967
+ *
6968
+ * 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.
6969
+ *
6970
+ * Price: $0.0011 per request.
6971
+ *
6972
+ * @example
6973
+ * const res = await client.telegram.channel({ handle: "telegram" });
6974
+ */
6975
+ channel(input, options) {
6976
+ return this._core.run("telegram.channel", input, options);
6977
+ }
6978
+ /**
6979
+ * Telegram Channel Posts
6980
+ *
6981
+ * 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.
6982
+ *
6983
+ * Price: $0.0011 per request.
6984
+ *
6985
+ * @example
6986
+ * const res = await client.telegram.channelPosts({ handle: "telegram" });
6987
+ */
6988
+ channelPosts(input, options) {
6989
+ return this._core.run("telegram.channel_posts", input, options);
6990
+ }
6991
+ /**
6992
+ * Iterate every result of Telegram Channel Posts across pages.
6993
+ *
6994
+ * Yields items directly; call `.pages()` on the return value to walk whole
6995
+ * result pages instead (each carries its own costUsd).
6996
+ */
6997
+ iterChannelPosts(input, options) {
6998
+ return paginate(
6999
+ this._core,
7000
+ "telegram.channel_posts",
7001
+ input,
7002
+ "posts",
7003
+ false,
7004
+ options
7005
+ );
7006
+ }
7007
+ /**
7008
+ * Telegram Post
7009
+ *
7010
+ * Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions.
7011
+ *
7012
+ * Price: $0.0011 per request.
7013
+ *
7014
+ * @example
7015
+ * const res = await client.telegram.post({ url: "https://t.me/telegram/460" });
7016
+ */
7017
+ post(input, options) {
7018
+ return this._core.run("telegram.post", input, options);
7019
+ }
7020
+ };
7021
+
6721
7022
  // src/generated/platforms/threads.ts
6722
7023
  var ThreadsNamespace = class {
6723
7024
  constructor(_core) {
@@ -7417,6 +7718,19 @@ var TiktokNamespace = class {
7417
7718
  trendingHashtags(input, options) {
7418
7719
  return this._core.run("tiktok.trending_hashtags", input, options);
7419
7720
  }
7721
+ /**
7722
+ * TikTok User Stories
7723
+ *
7724
+ * 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.
7725
+ *
7726
+ * Price: $0.0011 per request.
7727
+ *
7728
+ * @example
7729
+ * const res = await client.tiktok.userStories({ handle: "jasonderulo" });
7730
+ */
7731
+ userStories(input, options) {
7732
+ return this._core.run("tiktok.user_stories", input, options);
7733
+ }
7420
7734
  /**
7421
7735
  * TikTok Video
7422
7736
  *
@@ -9001,6 +9315,22 @@ var AnyAPI2 = class extends AnyAPI {
9001
9315
  this._core
9002
9316
  );
9003
9317
  }
9318
+ /**
9319
+ * Typed methods for the asos platform.
9320
+ */
9321
+ get asos() {
9322
+ return this._namespaces["asos"] ??= new AsosNamespace(
9323
+ this._core
9324
+ );
9325
+ }
9326
+ /**
9327
+ * Typed methods for the bestbuy platform.
9328
+ */
9329
+ get bestbuy() {
9330
+ return this._namespaces["bestbuy"] ??= new BestbuyNamespace(
9331
+ this._core
9332
+ );
9333
+ }
9004
9334
  /**
9005
9335
  * Typed methods for the bing platform.
9006
9336
  */
@@ -9241,6 +9571,14 @@ var AnyAPI2 = class extends AnyAPI {
9241
9571
  this._core
9242
9572
  );
9243
9573
  }
9574
+ /**
9575
+ * Typed methods for the ikea platform.
9576
+ */
9577
+ get ikea() {
9578
+ return this._namespaces["ikea"] ??= new IkeaNamespace(
9579
+ this._core
9580
+ );
9581
+ }
9244
9582
  /**
9245
9583
  * Typed methods for the indeed platform.
9246
9584
  */
@@ -9281,6 +9619,14 @@ var AnyAPI2 = class extends AnyAPI {
9281
9619
  this._core
9282
9620
  );
9283
9621
  }
9622
+ /**
9623
+ * Typed methods for the linktree platform.
9624
+ */
9625
+ get linktree() {
9626
+ return this._namespaces["linktree"] ??= new LinktreeNamespace(
9627
+ this._core
9628
+ );
9629
+ }
9284
9630
  /**
9285
9631
  * Typed methods for the maps platform.
9286
9632
  */
@@ -9413,6 +9759,14 @@ var AnyAPI2 = class extends AnyAPI {
9413
9759
  this._core
9414
9760
  );
9415
9761
  }
9762
+ /**
9763
+ * Typed methods for the samsclub platform.
9764
+ */
9765
+ get samsclub() {
9766
+ return this._namespaces["samsclub"] ??= new SamsclubNamespace(
9767
+ this._core
9768
+ );
9769
+ }
9416
9770
  /**
9417
9771
  * Typed methods for the sec platform.
9418
9772
  */
@@ -9445,6 +9799,14 @@ var AnyAPI2 = class extends AnyAPI {
9445
9799
  this._core
9446
9800
  );
9447
9801
  }
9802
+ /**
9803
+ * Typed methods for the slickdeals platform.
9804
+ */
9805
+ get slickdeals() {
9806
+ return this._namespaces["slickdeals"] ??= new SlickdealsNamespace(
9807
+ this._core
9808
+ );
9809
+ }
9448
9810
  /**
9449
9811
  * Typed methods for the snapchat platform.
9450
9812
  */
@@ -9477,6 +9839,14 @@ var AnyAPI2 = class extends AnyAPI {
9477
9839
  this._core
9478
9840
  );
9479
9841
  }
9842
+ /**
9843
+ * Typed methods for the target platform.
9844
+ */
9845
+ get target() {
9846
+ return this._namespaces["target"] ??= new TargetNamespace(
9847
+ this._core
9848
+ );
9849
+ }
9480
9850
  /**
9481
9851
  * Typed methods for the technographics platform.
9482
9852
  */
@@ -9485,6 +9855,14 @@ var AnyAPI2 = class extends AnyAPI {
9485
9855
  this._core
9486
9856
  );
9487
9857
  }
9858
+ /**
9859
+ * Typed methods for the telegram platform.
9860
+ */
9861
+ get telegram() {
9862
+ return this._namespaces["telegram"] ??= new TelegramNamespace(
9863
+ this._core
9864
+ );
9865
+ }
9488
9866
  /**
9489
9867
  * Typed methods for the threads platform.
9490
9868
  */
@@ -9631,8 +10009,10 @@ export {
9631
10009
  AnyAPIError,
9632
10010
  ApolloNamespace,
9633
10011
  AppstoreNamespace,
10012
+ AsosNamespace,
9634
10013
  AuthenticationError,
9635
10014
  BadRequestError,
10015
+ BestbuyNamespace,
9636
10016
  BingNamespace,
9637
10017
  BlueskyNamespace,
9638
10018
  BookingNamespace,
@@ -9665,12 +10045,14 @@ export {
9665
10045
  GoogleNamespace,
9666
10046
  GoogleShoppingNamespace,
9667
10047
  HackernewsNamespace,
10048
+ IkeaNamespace,
9668
10049
  IndeedNamespace,
9669
10050
  InstagramNamespace,
9670
10051
  InsufficientBalanceError,
9671
10052
  JobSearchNamespace,
9672
10053
  LevelsNamespace,
9673
10054
  LinkedinNamespace,
10055
+ LinktreeNamespace,
9674
10056
  MapsNamespace,
9675
10057
  MobilePhoneNamespace,
9676
10058
  NOT_FOUND_REASONS,
@@ -9693,15 +10075,19 @@ export {
9693
10075
  RednoteNamespace,
9694
10076
  RequestPendingError,
9695
10077
  ResultNotFoundError,
10078
+ SamsclubNamespace,
9696
10079
  SecNamespace,
9697
10080
  SemrushNamespace,
9698
10081
  SeoNamespace,
9699
10082
  SimilarwebNamespace,
10083
+ SlickdealsNamespace,
9700
10084
  SnapchatNamespace,
9701
10085
  SocialNamespace,
9702
10086
  SpotifyNamespace,
9703
10087
  SubstackNamespace,
10088
+ TargetNamespace,
9704
10089
  TechnographicsNamespace,
10090
+ TelegramNamespace,
9705
10091
  ThreadsNamespace,
9706
10092
  TiktokNamespace,
9707
10093
  TiktokShopNamespace,