@getanyapi/sdk 0.23.0 → 0.24.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 +93 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +601 -39
- package/dist/index.d.ts +601 -39
- package/dist/index.js +92 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1789,11 +1789,24 @@ var FacebookNamespace = class {
|
|
|
1789
1789
|
* Price: $0.002 per request.
|
|
1790
1790
|
*
|
|
1791
1791
|
* @example
|
|
1792
|
-
* const res = await client.facebook.adDetails({ id: "
|
|
1792
|
+
* const res = await client.facebook.adDetails({ id: "1249043200627555" });
|
|
1793
1793
|
*/
|
|
1794
1794
|
adDetails(input, options) {
|
|
1795
1795
|
return this._core.run("facebook.ad_details", input, options);
|
|
1796
1796
|
}
|
|
1797
|
+
/**
|
|
1798
|
+
* Facebook Ad Creative Details
|
|
1799
|
+
*
|
|
1800
|
+
* Pull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action.
|
|
1801
|
+
*
|
|
1802
|
+
* Price: $0.00441 per request plus $0 per result (maximum $0.00441).
|
|
1803
|
+
*
|
|
1804
|
+
* @example
|
|
1805
|
+
* const res = await client.facebook.adDetailsFull({ id: "1519158199783790" });
|
|
1806
|
+
*/
|
|
1807
|
+
adDetailsFull(input, options) {
|
|
1808
|
+
return this._core.run("facebook.ad_details_full", input, options);
|
|
1809
|
+
}
|
|
1797
1810
|
/**
|
|
1798
1811
|
* Facebook Ad Transcript
|
|
1799
1812
|
*
|
|
@@ -2262,7 +2275,7 @@ var FacebookNamespace = class {
|
|
|
2262
2275
|
*
|
|
2263
2276
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
2264
2277
|
*
|
|
2265
|
-
* Price: $0 per request plus $0.00315 per result (maximum $0.
|
|
2278
|
+
* Price: $0.00006 per request plus $0.00315 per result (maximum $0.0631).
|
|
2266
2279
|
*
|
|
2267
2280
|
* @example
|
|
2268
2281
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -3137,7 +3150,7 @@ var InstagramNamespace = class {
|
|
|
3137
3150
|
*
|
|
3138
3151
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
3139
3152
|
*
|
|
3140
|
-
* Price: $0.
|
|
3153
|
+
* Price: $0.002 per request.
|
|
3141
3154
|
*
|
|
3142
3155
|
* @example
|
|
3143
3156
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -3192,7 +3205,7 @@ var InstagramNamespace = class {
|
|
|
3192
3205
|
* Price: $0.002 per request.
|
|
3193
3206
|
*
|
|
3194
3207
|
* @example
|
|
3195
|
-
* const res = await client.instagram.searchHashtag({ hashtag: "
|
|
3208
|
+
* const res = await client.instagram.searchHashtag({ hashtag: "skincare", datePosted: "last-month", mediaType: "reel" });
|
|
3196
3209
|
*/
|
|
3197
3210
|
searchHashtag(input, options) {
|
|
3198
3211
|
return this._core.run("instagram.search_hashtag", input, options);
|
|
@@ -3791,6 +3804,43 @@ var MobilePhoneNamespace = class {
|
|
|
3791
3804
|
}
|
|
3792
3805
|
};
|
|
3793
3806
|
|
|
3807
|
+
// src/generated/platforms/naver.ts
|
|
3808
|
+
var NaverNamespace = class {
|
|
3809
|
+
constructor(_core) {
|
|
3810
|
+
this._core = _core;
|
|
3811
|
+
}
|
|
3812
|
+
_core;
|
|
3813
|
+
/**
|
|
3814
|
+
* Naver Blog Search
|
|
3815
|
+
*
|
|
3816
|
+
* Search up to five enriched Naver blog results by keyword with stable cursor pagination: result rank, title, excerpt, post and blogger URLs, blogger name, publish time, and Naver's total match count.
|
|
3817
|
+
*
|
|
3818
|
+
* Price: $0.036 per request.
|
|
3819
|
+
*
|
|
3820
|
+
* @example
|
|
3821
|
+
* const res = await client.naver.blogSearch({ query: "제주도 맛집", limit: 5, sort: "relevance" });
|
|
3822
|
+
*/
|
|
3823
|
+
blogSearch(input, options) {
|
|
3824
|
+
return this._core.run("naver.blog_search", input, options);
|
|
3825
|
+
}
|
|
3826
|
+
/**
|
|
3827
|
+
* Iterate every result of Naver Blog Search across pages.
|
|
3828
|
+
*
|
|
3829
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
3830
|
+
* result pages instead (each carries its own costUsd).
|
|
3831
|
+
*/
|
|
3832
|
+
iterBlogSearch(input, options) {
|
|
3833
|
+
return paginate(
|
|
3834
|
+
this._core,
|
|
3835
|
+
"naver.blog_search",
|
|
3836
|
+
input,
|
|
3837
|
+
"items",
|
|
3838
|
+
false,
|
|
3839
|
+
options
|
|
3840
|
+
);
|
|
3841
|
+
}
|
|
3842
|
+
};
|
|
3843
|
+
|
|
3794
3844
|
// src/generated/platforms/pandaexpress.ts
|
|
3795
3845
|
var PandaexpressNamespace = class {
|
|
3796
3846
|
constructor(_core) {
|
|
@@ -5363,6 +5413,19 @@ var TiktokNamespace = class {
|
|
|
5363
5413
|
videoTranscript(input, options) {
|
|
5364
5414
|
return this._core.run("tiktok.video_transcript", input, options);
|
|
5365
5415
|
}
|
|
5416
|
+
/**
|
|
5417
|
+
* TikTok Video Transcript (Audio)
|
|
5418
|
+
*
|
|
5419
|
+
* Transcribe the spoken audio of a TikTok video with timed segments, speaker labels, and per-word confidence - for videos TikTok publishes no subtitle track for.
|
|
5420
|
+
*
|
|
5421
|
+
* Price: $0.0168 per request plus $0 per result (maximum $0.0168).
|
|
5422
|
+
*
|
|
5423
|
+
* @example
|
|
5424
|
+
* const res = await client.tiktok.videoTranscriptFull({ url: "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421" });
|
|
5425
|
+
*/
|
|
5426
|
+
videoTranscriptFull(input, options) {
|
|
5427
|
+
return this._core.run("tiktok.video_transcript_full", input, options);
|
|
5428
|
+
}
|
|
5366
5429
|
};
|
|
5367
5430
|
|
|
5368
5431
|
// src/generated/platforms/tiktok_shop.ts
|
|
@@ -6213,12 +6276,12 @@ var YoutubeNamespace = class {
|
|
|
6213
6276
|
/**
|
|
6214
6277
|
* YouTube Channel Shorts
|
|
6215
6278
|
*
|
|
6216
|
-
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination
|
|
6279
|
+
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
6217
6280
|
*
|
|
6218
6281
|
* Price: $0.002 per request.
|
|
6219
6282
|
*
|
|
6220
6283
|
* @example
|
|
6221
|
-
* const res = await client.youtube.channelShorts({ handle: "@
|
|
6284
|
+
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
|
6222
6285
|
*/
|
|
6223
6286
|
channelShorts(input, options) {
|
|
6224
6287
|
return this._core.run("youtube.channel_shorts", input, options);
|
|
@@ -6422,7 +6485,7 @@ var YoutubeNamespace = class {
|
|
|
6422
6485
|
*
|
|
6423
6486
|
* Fetch the transcript/captions of a YouTube video by URL or ID.
|
|
6424
6487
|
*
|
|
6425
|
-
* Price: $0.
|
|
6488
|
+
* Price: $0.011 per request.
|
|
6426
6489
|
*
|
|
6427
6490
|
* @example
|
|
6428
6491
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -6430,6 +6493,19 @@ var YoutubeNamespace = class {
|
|
|
6430
6493
|
videoTranscript(input, options) {
|
|
6431
6494
|
return this._core.run("youtube.video_transcript", input, options);
|
|
6432
6495
|
}
|
|
6496
|
+
/**
|
|
6497
|
+
* YouTube Video Transcript (Provenance)
|
|
6498
|
+
*
|
|
6499
|
+
* Fetch a YouTube transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
6500
|
+
*
|
|
6501
|
+
* Price: $0.00294 per request plus $0 per result (maximum $0.00294).
|
|
6502
|
+
*
|
|
6503
|
+
* @example
|
|
6504
|
+
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
6505
|
+
*/
|
|
6506
|
+
videoTranscriptFull(input, options) {
|
|
6507
|
+
return this._core.run("youtube.video_transcript_full", input, options);
|
|
6508
|
+
}
|
|
6433
6509
|
};
|
|
6434
6510
|
|
|
6435
6511
|
// src/generated/platforms/zhihu.ts
|
|
@@ -6813,6 +6889,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6813
6889
|
this._core
|
|
6814
6890
|
);
|
|
6815
6891
|
}
|
|
6892
|
+
/**
|
|
6893
|
+
* Typed methods for the naver platform.
|
|
6894
|
+
*/
|
|
6895
|
+
get naver() {
|
|
6896
|
+
return this._namespaces["naver"] ??= new NaverNamespace(
|
|
6897
|
+
this._core
|
|
6898
|
+
);
|
|
6899
|
+
}
|
|
6816
6900
|
/**
|
|
6817
6901
|
* Typed methods for the pandaexpress platform.
|
|
6818
6902
|
*/
|
|
@@ -7133,6 +7217,7 @@ export {
|
|
|
7133
7217
|
LinkedinNamespace,
|
|
7134
7218
|
MapsNamespace,
|
|
7135
7219
|
MobilePhoneNamespace,
|
|
7220
|
+
NaverNamespace,
|
|
7136
7221
|
NotFoundError,
|
|
7137
7222
|
PandaexpressNamespace,
|
|
7138
7223
|
PeopleSearchNamespace,
|