@getanyapi/sdk 0.18.1 → 0.19.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
@@ -1491,7 +1491,7 @@ var DouyinNamespace = class {
1491
1491
  * Price: $0.012 per request.
1492
1492
  *
1493
1493
  * @example
1494
- * const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: "0", sort: "0" });
1494
+ * const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort: 0 });
1495
1495
  */
1496
1496
  searchVideos(input, options) {
1497
1497
  return this._core.run("douyin.search_videos", input, options);
@@ -4726,7 +4726,7 @@ var TiktokNamespace = class {
4726
4726
  *
4727
4727
  * Fetch full details for a single TikTok ad (brand, title, spend, CTR, objectives, landing page, and video info).
4728
4728
  *
4729
- * Price: $0.002 per request.
4729
+ * Price: $0.0012 per request.
4730
4730
  *
4731
4731
  * @example
4732
4732
  * const res = await client.tiktok.adLibraryAd({ adId: "7648493525660270600" });
@@ -4742,7 +4742,7 @@ var TiktokNamespace = class {
4742
4742
  * Price: $0.002 per request.
4743
4743
  *
4744
4744
  * @example
4745
- * const res = await client.tiktok.adLibrarySearch({ query: "spotify", objective: "conversions" });
4745
+ * const res = await client.tiktok.adLibrarySearch({ query: "spotify", limit: 20, objective: "conversions", period: 30 });
4746
4746
  */
4747
4747
  adLibrarySearch(input, options) {
4748
4748
  return this._core.run("tiktok.ad_library_search", input, options);
@@ -4763,6 +4763,35 @@ var TiktokNamespace = class {
4763
4763
  options
4764
4764
  );
4765
4765
  }
4766
+ /**
4767
+ * TikTok Ad Transparency Search
4768
+ *
4769
+ * Search TikTok's EU Commercial Content Library by keyword or advertiser ID.
4770
+ *
4771
+ * Price: $0.0009 per request.
4772
+ *
4773
+ * @example
4774
+ * const res = await client.tiktok.adTransparencySearch({ days: 30, limit: 20, query: "nike", region: "DE" });
4775
+ */
4776
+ adTransparencySearch(input, options) {
4777
+ return this._core.run("tiktok.ad_transparency_search", input, options);
4778
+ }
4779
+ /**
4780
+ * Iterate every result of TikTok Ad Transparency Search across pages.
4781
+ *
4782
+ * Yields items directly; call `.pages()` on the return value to walk whole
4783
+ * result pages instead (each carries its own costUsd).
4784
+ */
4785
+ iterAdTransparencySearch(input, options) {
4786
+ return paginate(
4787
+ this._core,
4788
+ "tiktok.ad_transparency_search",
4789
+ input,
4790
+ "ads",
4791
+ false,
4792
+ options
4793
+ );
4794
+ }
4766
4795
  /**
4767
4796
  * TikTok Audience Demographics
4768
4797
  *
@@ -4949,7 +4978,7 @@ var TiktokNamespace = class {
4949
4978
  * Price: $0.0012 per request.
4950
4979
  *
4951
4980
  * @example
4952
- * const res = await client.tiktok.searchKeyword({ query: "cooking" });
4981
+ * const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy: 0 });
4953
4982
  */
4954
4983
  searchKeyword(input, options) {
4955
4984
  return this._core.run("tiktok.search_keyword", input, options);
@@ -5054,6 +5083,19 @@ var TiktokNamespace = class {
5054
5083
  options
5055
5084
  );
5056
5085
  }
5086
+ /**
5087
+ * TikTok Top Ads Search
5088
+ *
5089
+ * Search TikTok Creative Center top video ads by keyword with explicit performance, objective, region, language, and time-window filters.
5090
+ *
5091
+ * Price: $0.0012 per request.
5092
+ *
5093
+ * @example
5094
+ * const res = await client.tiktok.topAdsSearch({ query: "glasses" });
5095
+ */
5096
+ topAdsSearch(input, options) {
5097
+ return this._core.run("tiktok.top_ads_search", input, options);
5098
+ }
5057
5099
  /**
5058
5100
  * TikTok Trending Feed
5059
5101
  *