@getanyapi/sdk 0.50.0 → 0.51.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.js CHANGED
@@ -1093,6 +1093,19 @@ var AhrefsNamespace = class {
1093
1093
  overview(input, options) {
1094
1094
  return this._core.run("ahrefs.overview", input, options);
1095
1095
  }
1096
+ /**
1097
+ * Ahrefs Traffic Overview
1098
+ *
1099
+ * Get the Ahrefs organic traffic overview for any domain or URL: monthly traffic estimate and value, the top keywords it already ranks for with position and traffic, top pages, traffic by country, and a monthly traffic history - as normalized JSON.
1100
+ *
1101
+ * Price: $0.00006 per request plus $0.00495 per result (maximum $0.00501).
1102
+ *
1103
+ * @example
1104
+ * const res = await client.ahrefs.traffic({ url: "ahrefs.com", mode: "subdomains" });
1105
+ */
1106
+ traffic(input, options) {
1107
+ return this._core.run("ahrefs.traffic", input, options);
1108
+ }
1096
1109
  };
1097
1110
 
1098
1111
  // src/generated/platforms/airbnb.ts
@@ -1859,7 +1872,7 @@ var EbayNamespace = class {
1859
1872
  *
1860
1873
  * Search eBay active listings by keyword with optional price-range, item-condition, listing-type, and sort filters and get title, price, condition, shipping, and seller in one normalized response.
1861
1874
  *
1862
- * Price: $0.0005 per request.
1875
+ * Price: $0.00225 per request.
1863
1876
  *
1864
1877
  * @example
1865
1878
  * const res = await client.ebay.search({ query: "nintendo switch", limit: 3, sort: "price_low" });
@@ -1872,7 +1885,7 @@ var EbayNamespace = class {
1872
1885
  *
1873
1886
  * Retrieve recently sold eBay listings for any keyword with optional price-range, condition, and sort filters (sold price, sale date, condition, seller, item details); ideal for pricing research.
1874
1887
  *
1875
- * Price: $0.022 per request plus $0.00264 per result (maximum $0.088).
1888
+ * Price: $0.0135 per request.
1876
1889
  *
1877
1890
  * @example
1878
1891
  * const res = await client.ebay.soldListings({ query: "iphone 13 pro", limit: 10, sort: "ended_recently" });
@@ -1880,6 +1893,19 @@ var EbayNamespace = class {
1880
1893
  soldListings(input, options) {
1881
1894
  return this._core.run("ebay.sold_listings", input, options);
1882
1895
  }
1896
+ /**
1897
+ * eBay Sold Listings (Basic)
1898
+ *
1899
+ * Retrieve recently sold eBay listings for any keyword with the sold price, sale date, condition, format, bids, and whether a Best Offer was accepted, without seller details; the lighter sibling of eBay Sold Listings for price comps.
1900
+ *
1901
+ * Price: $0.0135 per request.
1902
+ *
1903
+ * @example
1904
+ * const res = await client.ebay.soldListingsThin({ query: "iphone 13 pro", limit: 10, sort: "ended_recently" });
1905
+ */
1906
+ soldListingsThin(input, options) {
1907
+ return this._core.run("ebay.sold_listings_thin", input, options);
1908
+ }
1883
1909
  };
1884
1910
 
1885
1911
  // src/generated/platforms/email.ts
@@ -2577,6 +2603,22 @@ var FacebookNamespace = class {
2577
2603
  profileReels(input, options) {
2578
2604
  return this._core.run("facebook.profile_reels", input, options);
2579
2605
  }
2606
+ /**
2607
+ * Iterate every result of Facebook Profile Reels across pages.
2608
+ *
2609
+ * Yields items directly; call `.pages()` on the return value to walk whole
2610
+ * result pages instead (each carries its own costUsd).
2611
+ */
2612
+ iterProfileReels(input, options) {
2613
+ return paginate(
2614
+ this._core,
2615
+ "facebook.profile_reels",
2616
+ input,
2617
+ "reels",
2618
+ false,
2619
+ options
2620
+ );
2621
+ }
2580
2622
  /**
2581
2623
  * Facebook Company Search
2582
2624
  *
@@ -2608,7 +2650,7 @@ var FacebookNamespace = class {
2608
2650
  *
2609
2651
  * Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
2610
2652
  *
2611
- * Price: $0.00006 per request plus $0.0033 per result (maximum $0.0661).
2653
+ * Price: $0 per request plus $0.00135 per result (maximum $0.027).
2612
2654
  *
2613
2655
  * @example
2614
2656
  * const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
@@ -2931,7 +2973,7 @@ var GoogleNamespace = class {
2931
2973
  *
2932
2974
  * Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited.
2933
2975
  *
2934
- * Price: $0.0007 per request.
2976
+ * Price: $0.00006 per request plus $0.0033 per result (maximum $0.00336).
2935
2977
  *
2936
2978
  * @example
2937
2979
  * const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
@@ -3033,9 +3075,9 @@ var GoogleNamespace = class {
3033
3075
  /**
3034
3076
  * Google Search
3035
3077
  *
3036
- * Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
3078
+ * Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
3037
3079
  *
3038
- * Price: $0.0005 per request.
3080
+ * Price: $0.0004 per request.
3039
3081
  *
3040
3082
  * @example
3041
3083
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -3326,7 +3368,7 @@ var InstagramNamespace = class {
3326
3368
  *
3327
3369
  * Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id.
3328
3370
  *
3329
- * Price: $0.0012 per request.
3371
+ * Price: $0.001 per request.
3330
3372
  *
3331
3373
  * @example
3332
3374
  * const res = await client.instagram.basicProfile({ userId: "314216" });
@@ -3620,7 +3662,7 @@ var InstagramNamespace = class {
3620
3662
  *
3621
3663
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
3622
3664
  *
3623
- * Price: $0.0012 per request.
3665
+ * Price: $0.001 per request.
3624
3666
  *
3625
3667
  * @example
3626
3668
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -3772,7 +3814,7 @@ var InstagramNamespace = class {
3772
3814
  *
3773
3815
  * List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
3774
3816
  *
3775
- * Price: $0.027 per request.
3817
+ * Price: $0.00175 per request.
3776
3818
  *
3777
3819
  * @example
3778
3820
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -4307,7 +4349,7 @@ var LinkedinNamespace = class {
4307
4349
  *
4308
4350
  * Search public LinkedIn posts by keyword (text, link, publish date).
4309
4351
  *
4310
- * Price: $0.018 per request.
4352
+ * Price: $0.0012 per request.
4311
4353
  *
4312
4354
  * @example
4313
4355
  * const res = await client.linkedin.searchPosts({ query: "hiring", datePosted: "last-week" });
@@ -4412,7 +4454,7 @@ var MapsNamespace = class {
4412
4454
  *
4413
4455
  * Search Google Maps for businesses and enrich each result with contact details (emails, phones, and social profiles from their websites), up to 20 records per request.
4414
4456
  *
4415
- * Price: $0.00006 per request plus $0.00495 per result (maximum $0.0991).
4457
+ * Price: $0.0045 per request.
4416
4458
  *
4417
4459
  * @example
4418
4460
  * const res = await client.maps.contacts({ location: "Austin, TX", query: "coffee shop", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
@@ -4734,7 +4776,7 @@ var PerplexityNamespace = class {
4734
4776
  *
4735
4777
  * Ask Perplexity a web-grounded question and receive an answer with source citations.
4736
4778
  *
4737
- * Price: $0.002 per request.
4779
+ * Price: $0.00006 per request plus $0.011 per result (maximum $0.0111).
4738
4780
  *
4739
4781
  * @example
4740
4782
  * const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
@@ -5081,7 +5123,7 @@ var RedditNamespace = class {
5081
5123
  *
5082
5124
  * Fetch a Reddit user's public profile (karma split, post and comment counts, bio, avatar, account age) by username.
5083
5125
  *
5084
- * Price: $0.00225 per request plus $0 per result (maximum $0.00225).
5126
+ * Price: $0.0012 per request.
5085
5127
  *
5086
5128
  * @example
5087
5129
  * const res = await client.reddit.profile({ username: "spez" });
@@ -5694,6 +5736,40 @@ var SeoNamespace = class {
5694
5736
  }
5695
5737
  };
5696
5738
 
5739
+ // src/generated/platforms/similarweb.ts
5740
+ var SimilarwebNamespace = class {
5741
+ constructor(_core) {
5742
+ this._core = _core;
5743
+ }
5744
+ _core;
5745
+ /**
5746
+ * Similarweb Website Traffic
5747
+ *
5748
+ * Get the Similarweb traffic overview for any website: estimated monthly visits and a three-month history, global, country, and category rank, bounce rate, pages per visit, visit duration, traffic sources including AI chatbots, top countries, and top search keywords - as normalized JSON.
5749
+ *
5750
+ * Price: $0.00002 per request plus $0.00165 per result (maximum $0.00167).
5751
+ *
5752
+ * @example
5753
+ * const res = await client.similarweb.overview({ domain: "stripe.com" });
5754
+ */
5755
+ overview(input, options) {
5756
+ return this._core.run("similarweb.overview", input, options);
5757
+ }
5758
+ /**
5759
+ * Similarweb Similar Sites
5760
+ *
5761
+ * Find the websites Similarweb ranks as most similar to any website: up to 20 competitor and alternative sites in similarity order, each with its similarity score, category, top-country rank, estimated monthly visits, and description - as normalized JSON.
5762
+ *
5763
+ * Price: $0.00002 per request plus $0.00165 per result (maximum $0.00167).
5764
+ *
5765
+ * @example
5766
+ * const res = await client.similarweb.similarSites({ domain: "stripe.com" });
5767
+ */
5768
+ similarSites(input, options) {
5769
+ return this._core.run("similarweb.similar_sites", input, options);
5770
+ }
5771
+ };
5772
+
5697
5773
  // src/generated/platforms/snapchat.ts
5698
5774
  var SnapchatNamespace = class {
5699
5775
  constructor(_core) {
@@ -5990,7 +6066,7 @@ var TiktokNamespace = class {
5990
6066
  *
5991
6067
  * Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
5992
6068
  *
5993
- * Price: $0.0005 per request.
6069
+ * Price: $0.0012 per request.
5994
6070
  *
5995
6071
  * @example
5996
6072
  * const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
@@ -7900,7 +7976,7 @@ var YoutubeNamespace = class {
7900
7976
  *
7901
7977
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
7902
7978
  *
7903
- * Price: $0.0012 per request.
7979
+ * Price: $0.0009 per request.
7904
7980
  *
7905
7981
  * @example
7906
7982
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
@@ -8472,6 +8548,14 @@ var AnyAPI2 = class extends AnyAPI {
8472
8548
  this._core
8473
8549
  );
8474
8550
  }
8551
+ /**
8552
+ * Typed methods for the similarweb platform.
8553
+ */
8554
+ get similarweb() {
8555
+ return this._namespaces["similarweb"] ??= new SimilarwebNamespace(
8556
+ this._core
8557
+ );
8558
+ }
8475
8559
  /**
8476
8560
  * Typed methods for the snapchat platform.
8477
8561
  */
@@ -8709,6 +8793,7 @@ export {
8709
8793
  SecNamespace,
8710
8794
  SemrushNamespace,
8711
8795
  SeoNamespace,
8796
+ SimilarwebNamespace,
8712
8797
  SnapchatNamespace,
8713
8798
  SocialNamespace,
8714
8799
  SpotifyNamespace,