@getanyapi/sdk 0.18.0 → 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.cjs CHANGED
@@ -1158,7 +1158,7 @@ var AlibabaNamespace = class {
1158
1158
  *
1159
1159
  * Search Alibaba by keyword and get up to 25 wholesale listings (title, price range, minimum order, and supplier) in one normalized response.
1160
1160
  *
1161
- * Price: $0 per request plus $0.00126 per result (maximum $0.0315).
1161
+ * Price: $0 per request plus $0.00084 per result (maximum $0.021).
1162
1162
  *
1163
1163
  * @example
1164
1164
  * const res = await client.alibaba.search({ query: "bluetooth speaker", limit: 3 });
@@ -1597,7 +1597,7 @@ var DouyinNamespace = class {
1597
1597
  * Price: $0.012 per request.
1598
1598
  *
1599
1599
  * @example
1600
- * const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: "0", sort: "0" });
1600
+ * const res = await client.douyin.searchVideos({ query: "机器人", duration: "0", publishedWithin: 0, sort: 0 });
1601
1601
  */
1602
1602
  searchVideos(input, options) {
1603
1603
  return this._core.run("douyin.search_videos", input, options);
@@ -4832,7 +4832,7 @@ var TiktokNamespace = class {
4832
4832
  *
4833
4833
  * Fetch full details for a single TikTok ad (brand, title, spend, CTR, objectives, landing page, and video info).
4834
4834
  *
4835
- * Price: $0.002 per request.
4835
+ * Price: $0.0012 per request.
4836
4836
  *
4837
4837
  * @example
4838
4838
  * const res = await client.tiktok.adLibraryAd({ adId: "7648493525660270600" });
@@ -4848,7 +4848,7 @@ var TiktokNamespace = class {
4848
4848
  * Price: $0.002 per request.
4849
4849
  *
4850
4850
  * @example
4851
- * const res = await client.tiktok.adLibrarySearch({ query: "spotify", objective: "conversions" });
4851
+ * const res = await client.tiktok.adLibrarySearch({ query: "spotify", limit: 20, objective: "conversions", period: 30 });
4852
4852
  */
4853
4853
  adLibrarySearch(input, options) {
4854
4854
  return this._core.run("tiktok.ad_library_search", input, options);
@@ -4869,6 +4869,35 @@ var TiktokNamespace = class {
4869
4869
  options
4870
4870
  );
4871
4871
  }
4872
+ /**
4873
+ * TikTok Ad Transparency Search
4874
+ *
4875
+ * Search TikTok's EU Commercial Content Library by keyword or advertiser ID.
4876
+ *
4877
+ * Price: $0.0009 per request.
4878
+ *
4879
+ * @example
4880
+ * const res = await client.tiktok.adTransparencySearch({ days: 30, limit: 20, query: "nike", region: "DE" });
4881
+ */
4882
+ adTransparencySearch(input, options) {
4883
+ return this._core.run("tiktok.ad_transparency_search", input, options);
4884
+ }
4885
+ /**
4886
+ * Iterate every result of TikTok Ad Transparency Search across pages.
4887
+ *
4888
+ * Yields items directly; call `.pages()` on the return value to walk whole
4889
+ * result pages instead (each carries its own costUsd).
4890
+ */
4891
+ iterAdTransparencySearch(input, options) {
4892
+ return paginate(
4893
+ this._core,
4894
+ "tiktok.ad_transparency_search",
4895
+ input,
4896
+ "ads",
4897
+ false,
4898
+ options
4899
+ );
4900
+ }
4872
4901
  /**
4873
4902
  * TikTok Audience Demographics
4874
4903
  *
@@ -5055,7 +5084,7 @@ var TiktokNamespace = class {
5055
5084
  * Price: $0.0012 per request.
5056
5085
  *
5057
5086
  * @example
5058
- * const res = await client.tiktok.searchKeyword({ query: "cooking" });
5087
+ * const res = await client.tiktok.searchKeyword({ query: "cooking", datePosted: 0, sortBy: 0 });
5059
5088
  */
5060
5089
  searchKeyword(input, options) {
5061
5090
  return this._core.run("tiktok.search_keyword", input, options);
@@ -5160,6 +5189,19 @@ var TiktokNamespace = class {
5160
5189
  options
5161
5190
  );
5162
5191
  }
5192
+ /**
5193
+ * TikTok Top Ads Search
5194
+ *
5195
+ * Search TikTok Creative Center top video ads by keyword with explicit performance, objective, region, language, and time-window filters.
5196
+ *
5197
+ * Price: $0.0012 per request.
5198
+ *
5199
+ * @example
5200
+ * const res = await client.tiktok.topAdsSearch({ query: "glasses" });
5201
+ */
5202
+ topAdsSearch(input, options) {
5203
+ return this._core.run("tiktok.top_ads_search", input, options);
5204
+ }
5163
5205
  /**
5164
5206
  * TikTok Trending Feed
5165
5207
  *