@getanyapi/sdk 0.23.0 → 0.25.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 +151 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +779 -39
- package/dist/index.d.ts +779 -39
- package/dist/index.js +150 -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
|
|
@@ -5730,6 +5793,64 @@ var TwitterNamespace = class {
|
|
|
5730
5793
|
options
|
|
5731
5794
|
);
|
|
5732
5795
|
}
|
|
5796
|
+
/**
|
|
5797
|
+
* X / Twitter Community Search
|
|
5798
|
+
*
|
|
5799
|
+
* Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.
|
|
5800
|
+
*
|
|
5801
|
+
* Price: $0.00018 per request plus $0.00018 per result (maximum $0.00198).
|
|
5802
|
+
*
|
|
5803
|
+
* @example
|
|
5804
|
+
* const res = await client.twitter.searchCommunities({ query: "artificial intelligence" });
|
|
5805
|
+
*/
|
|
5806
|
+
searchCommunities(input, options) {
|
|
5807
|
+
return this._core.run("twitter.search_communities", input, options);
|
|
5808
|
+
}
|
|
5809
|
+
/**
|
|
5810
|
+
* Iterate every result of X / Twitter Community Search across pages.
|
|
5811
|
+
*
|
|
5812
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5813
|
+
* result pages instead (each carries its own costUsd).
|
|
5814
|
+
*/
|
|
5815
|
+
iterSearchCommunities(input, options) {
|
|
5816
|
+
return paginate(
|
|
5817
|
+
this._core,
|
|
5818
|
+
"twitter.search_communities",
|
|
5819
|
+
input,
|
|
5820
|
+
"communities",
|
|
5821
|
+
false,
|
|
5822
|
+
options
|
|
5823
|
+
);
|
|
5824
|
+
}
|
|
5825
|
+
/**
|
|
5826
|
+
* X / Twitter User Search
|
|
5827
|
+
*
|
|
5828
|
+
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
5829
|
+
*
|
|
5830
|
+
* Price: $0.00075 per request.
|
|
5831
|
+
*
|
|
5832
|
+
* @example
|
|
5833
|
+
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
5834
|
+
*/
|
|
5835
|
+
searchUsers(input, options) {
|
|
5836
|
+
return this._core.run("twitter.search_users", input, options);
|
|
5837
|
+
}
|
|
5838
|
+
/**
|
|
5839
|
+
* Iterate every result of X / Twitter User Search across pages.
|
|
5840
|
+
*
|
|
5841
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5842
|
+
* result pages instead (each carries its own costUsd).
|
|
5843
|
+
*/
|
|
5844
|
+
iterSearchUsers(input, options) {
|
|
5845
|
+
return paginate(
|
|
5846
|
+
this._core,
|
|
5847
|
+
"twitter.search_users",
|
|
5848
|
+
input,
|
|
5849
|
+
"users",
|
|
5850
|
+
false,
|
|
5851
|
+
options
|
|
5852
|
+
);
|
|
5853
|
+
}
|
|
5733
5854
|
/**
|
|
5734
5855
|
* X / Twitter Tweet Thread
|
|
5735
5856
|
*
|
|
@@ -6213,12 +6334,12 @@ var YoutubeNamespace = class {
|
|
|
6213
6334
|
/**
|
|
6214
6335
|
* YouTube Channel Shorts
|
|
6215
6336
|
*
|
|
6216
|
-
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination
|
|
6337
|
+
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
6217
6338
|
*
|
|
6218
6339
|
* Price: $0.002 per request.
|
|
6219
6340
|
*
|
|
6220
6341
|
* @example
|
|
6221
|
-
* const res = await client.youtube.channelShorts({ handle: "@
|
|
6342
|
+
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
|
6222
6343
|
*/
|
|
6223
6344
|
channelShorts(input, options) {
|
|
6224
6345
|
return this._core.run("youtube.channel_shorts", input, options);
|
|
@@ -6422,7 +6543,7 @@ var YoutubeNamespace = class {
|
|
|
6422
6543
|
*
|
|
6423
6544
|
* Fetch the transcript/captions of a YouTube video by URL or ID.
|
|
6424
6545
|
*
|
|
6425
|
-
* Price: $0.
|
|
6546
|
+
* Price: $0.011 per request.
|
|
6426
6547
|
*
|
|
6427
6548
|
* @example
|
|
6428
6549
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -6430,6 +6551,19 @@ var YoutubeNamespace = class {
|
|
|
6430
6551
|
videoTranscript(input, options) {
|
|
6431
6552
|
return this._core.run("youtube.video_transcript", input, options);
|
|
6432
6553
|
}
|
|
6554
|
+
/**
|
|
6555
|
+
* YouTube Video Transcript (Provenance)
|
|
6556
|
+
*
|
|
6557
|
+
* Fetch a YouTube transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
6558
|
+
*
|
|
6559
|
+
* Price: $0.00294 per request plus $0 per result (maximum $0.00294).
|
|
6560
|
+
*
|
|
6561
|
+
* @example
|
|
6562
|
+
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
6563
|
+
*/
|
|
6564
|
+
videoTranscriptFull(input, options) {
|
|
6565
|
+
return this._core.run("youtube.video_transcript_full", input, options);
|
|
6566
|
+
}
|
|
6433
6567
|
};
|
|
6434
6568
|
|
|
6435
6569
|
// src/generated/platforms/zhihu.ts
|
|
@@ -6813,6 +6947,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6813
6947
|
this._core
|
|
6814
6948
|
);
|
|
6815
6949
|
}
|
|
6950
|
+
/**
|
|
6951
|
+
* Typed methods for the naver platform.
|
|
6952
|
+
*/
|
|
6953
|
+
get naver() {
|
|
6954
|
+
return this._namespaces["naver"] ??= new NaverNamespace(
|
|
6955
|
+
this._core
|
|
6956
|
+
);
|
|
6957
|
+
}
|
|
6816
6958
|
/**
|
|
6817
6959
|
* Typed methods for the pandaexpress platform.
|
|
6818
6960
|
*/
|
|
@@ -7133,6 +7275,7 @@ export {
|
|
|
7133
7275
|
LinkedinNamespace,
|
|
7134
7276
|
MapsNamespace,
|
|
7135
7277
|
MobilePhoneNamespace,
|
|
7278
|
+
NaverNamespace,
|
|
7136
7279
|
NotFoundError,
|
|
7137
7280
|
PandaexpressNamespace,
|
|
7138
7281
|
PeopleSearchNamespace,
|