@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.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
LinkedinNamespace: () => LinkedinNamespace,
|
|
61
61
|
MapsNamespace: () => MapsNamespace,
|
|
62
62
|
MobilePhoneNamespace: () => MobilePhoneNamespace,
|
|
63
|
+
NaverNamespace: () => NaverNamespace,
|
|
63
64
|
NotFoundError: () => NotFoundError,
|
|
64
65
|
PandaexpressNamespace: () => PandaexpressNamespace,
|
|
65
66
|
PeopleSearchNamespace: () => PeopleSearchNamespace,
|
|
@@ -1898,11 +1899,24 @@ var FacebookNamespace = class {
|
|
|
1898
1899
|
* Price: $0.002 per request.
|
|
1899
1900
|
*
|
|
1900
1901
|
* @example
|
|
1901
|
-
* const res = await client.facebook.adDetails({ id: "
|
|
1902
|
+
* const res = await client.facebook.adDetails({ id: "1249043200627555" });
|
|
1902
1903
|
*/
|
|
1903
1904
|
adDetails(input, options) {
|
|
1904
1905
|
return this._core.run("facebook.ad_details", input, options);
|
|
1905
1906
|
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Facebook Ad Creative Details
|
|
1909
|
+
*
|
|
1910
|
+
* Pull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action.
|
|
1911
|
+
*
|
|
1912
|
+
* Price: $0.00441 per request plus $0 per result (maximum $0.00441).
|
|
1913
|
+
*
|
|
1914
|
+
* @example
|
|
1915
|
+
* const res = await client.facebook.adDetailsFull({ id: "1519158199783790" });
|
|
1916
|
+
*/
|
|
1917
|
+
adDetailsFull(input, options) {
|
|
1918
|
+
return this._core.run("facebook.ad_details_full", input, options);
|
|
1919
|
+
}
|
|
1906
1920
|
/**
|
|
1907
1921
|
* Facebook Ad Transcript
|
|
1908
1922
|
*
|
|
@@ -2371,7 +2385,7 @@ var FacebookNamespace = class {
|
|
|
2371
2385
|
*
|
|
2372
2386
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
2373
2387
|
*
|
|
2374
|
-
* Price: $0 per request plus $0.00315 per result (maximum $0.
|
|
2388
|
+
* Price: $0.00006 per request plus $0.00315 per result (maximum $0.0631).
|
|
2375
2389
|
*
|
|
2376
2390
|
* @example
|
|
2377
2391
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -3246,7 +3260,7 @@ var InstagramNamespace = class {
|
|
|
3246
3260
|
*
|
|
3247
3261
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
3248
3262
|
*
|
|
3249
|
-
* Price: $0.
|
|
3263
|
+
* Price: $0.002 per request.
|
|
3250
3264
|
*
|
|
3251
3265
|
* @example
|
|
3252
3266
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -3301,7 +3315,7 @@ var InstagramNamespace = class {
|
|
|
3301
3315
|
* Price: $0.002 per request.
|
|
3302
3316
|
*
|
|
3303
3317
|
* @example
|
|
3304
|
-
* const res = await client.instagram.searchHashtag({ hashtag: "
|
|
3318
|
+
* const res = await client.instagram.searchHashtag({ hashtag: "skincare", datePosted: "last-month", mediaType: "reel" });
|
|
3305
3319
|
*/
|
|
3306
3320
|
searchHashtag(input, options) {
|
|
3307
3321
|
return this._core.run("instagram.search_hashtag", input, options);
|
|
@@ -3900,6 +3914,43 @@ var MobilePhoneNamespace = class {
|
|
|
3900
3914
|
}
|
|
3901
3915
|
};
|
|
3902
3916
|
|
|
3917
|
+
// src/generated/platforms/naver.ts
|
|
3918
|
+
var NaverNamespace = class {
|
|
3919
|
+
constructor(_core) {
|
|
3920
|
+
this._core = _core;
|
|
3921
|
+
}
|
|
3922
|
+
_core;
|
|
3923
|
+
/**
|
|
3924
|
+
* Naver Blog Search
|
|
3925
|
+
*
|
|
3926
|
+
* 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.
|
|
3927
|
+
*
|
|
3928
|
+
* Price: $0.036 per request.
|
|
3929
|
+
*
|
|
3930
|
+
* @example
|
|
3931
|
+
* const res = await client.naver.blogSearch({ query: "제주도 맛집", limit: 5, sort: "relevance" });
|
|
3932
|
+
*/
|
|
3933
|
+
blogSearch(input, options) {
|
|
3934
|
+
return this._core.run("naver.blog_search", input, options);
|
|
3935
|
+
}
|
|
3936
|
+
/**
|
|
3937
|
+
* Iterate every result of Naver Blog Search across pages.
|
|
3938
|
+
*
|
|
3939
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
3940
|
+
* result pages instead (each carries its own costUsd).
|
|
3941
|
+
*/
|
|
3942
|
+
iterBlogSearch(input, options) {
|
|
3943
|
+
return paginate(
|
|
3944
|
+
this._core,
|
|
3945
|
+
"naver.blog_search",
|
|
3946
|
+
input,
|
|
3947
|
+
"items",
|
|
3948
|
+
false,
|
|
3949
|
+
options
|
|
3950
|
+
);
|
|
3951
|
+
}
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3903
3954
|
// src/generated/platforms/pandaexpress.ts
|
|
3904
3955
|
var PandaexpressNamespace = class {
|
|
3905
3956
|
constructor(_core) {
|
|
@@ -5472,6 +5523,19 @@ var TiktokNamespace = class {
|
|
|
5472
5523
|
videoTranscript(input, options) {
|
|
5473
5524
|
return this._core.run("tiktok.video_transcript", input, options);
|
|
5474
5525
|
}
|
|
5526
|
+
/**
|
|
5527
|
+
* TikTok Video Transcript (Audio)
|
|
5528
|
+
*
|
|
5529
|
+
* 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.
|
|
5530
|
+
*
|
|
5531
|
+
* Price: $0.0168 per request plus $0 per result (maximum $0.0168).
|
|
5532
|
+
*
|
|
5533
|
+
* @example
|
|
5534
|
+
* const res = await client.tiktok.videoTranscriptFull({ url: "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421" });
|
|
5535
|
+
*/
|
|
5536
|
+
videoTranscriptFull(input, options) {
|
|
5537
|
+
return this._core.run("tiktok.video_transcript_full", input, options);
|
|
5538
|
+
}
|
|
5475
5539
|
};
|
|
5476
5540
|
|
|
5477
5541
|
// src/generated/platforms/tiktok_shop.ts
|
|
@@ -5839,6 +5903,64 @@ var TwitterNamespace = class {
|
|
|
5839
5903
|
options
|
|
5840
5904
|
);
|
|
5841
5905
|
}
|
|
5906
|
+
/**
|
|
5907
|
+
* X / Twitter Community Search
|
|
5908
|
+
*
|
|
5909
|
+
* 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.
|
|
5910
|
+
*
|
|
5911
|
+
* Price: $0.00018 per request plus $0.00018 per result (maximum $0.00198).
|
|
5912
|
+
*
|
|
5913
|
+
* @example
|
|
5914
|
+
* const res = await client.twitter.searchCommunities({ query: "artificial intelligence" });
|
|
5915
|
+
*/
|
|
5916
|
+
searchCommunities(input, options) {
|
|
5917
|
+
return this._core.run("twitter.search_communities", input, options);
|
|
5918
|
+
}
|
|
5919
|
+
/**
|
|
5920
|
+
* Iterate every result of X / Twitter Community Search across pages.
|
|
5921
|
+
*
|
|
5922
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5923
|
+
* result pages instead (each carries its own costUsd).
|
|
5924
|
+
*/
|
|
5925
|
+
iterSearchCommunities(input, options) {
|
|
5926
|
+
return paginate(
|
|
5927
|
+
this._core,
|
|
5928
|
+
"twitter.search_communities",
|
|
5929
|
+
input,
|
|
5930
|
+
"communities",
|
|
5931
|
+
false,
|
|
5932
|
+
options
|
|
5933
|
+
);
|
|
5934
|
+
}
|
|
5935
|
+
/**
|
|
5936
|
+
* X / Twitter User Search
|
|
5937
|
+
*
|
|
5938
|
+
* 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.
|
|
5939
|
+
*
|
|
5940
|
+
* Price: $0.00075 per request.
|
|
5941
|
+
*
|
|
5942
|
+
* @example
|
|
5943
|
+
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
5944
|
+
*/
|
|
5945
|
+
searchUsers(input, options) {
|
|
5946
|
+
return this._core.run("twitter.search_users", input, options);
|
|
5947
|
+
}
|
|
5948
|
+
/**
|
|
5949
|
+
* Iterate every result of X / Twitter User Search across pages.
|
|
5950
|
+
*
|
|
5951
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5952
|
+
* result pages instead (each carries its own costUsd).
|
|
5953
|
+
*/
|
|
5954
|
+
iterSearchUsers(input, options) {
|
|
5955
|
+
return paginate(
|
|
5956
|
+
this._core,
|
|
5957
|
+
"twitter.search_users",
|
|
5958
|
+
input,
|
|
5959
|
+
"users",
|
|
5960
|
+
false,
|
|
5961
|
+
options
|
|
5962
|
+
);
|
|
5963
|
+
}
|
|
5842
5964
|
/**
|
|
5843
5965
|
* X / Twitter Tweet Thread
|
|
5844
5966
|
*
|
|
@@ -6322,12 +6444,12 @@ var YoutubeNamespace = class {
|
|
|
6322
6444
|
/**
|
|
6323
6445
|
* YouTube Channel Shorts
|
|
6324
6446
|
*
|
|
6325
|
-
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination
|
|
6447
|
+
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
6326
6448
|
*
|
|
6327
6449
|
* Price: $0.002 per request.
|
|
6328
6450
|
*
|
|
6329
6451
|
* @example
|
|
6330
|
-
* const res = await client.youtube.channelShorts({ handle: "@
|
|
6452
|
+
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
|
6331
6453
|
*/
|
|
6332
6454
|
channelShorts(input, options) {
|
|
6333
6455
|
return this._core.run("youtube.channel_shorts", input, options);
|
|
@@ -6531,7 +6653,7 @@ var YoutubeNamespace = class {
|
|
|
6531
6653
|
*
|
|
6532
6654
|
* Fetch the transcript/captions of a YouTube video by URL or ID.
|
|
6533
6655
|
*
|
|
6534
|
-
* Price: $0.
|
|
6656
|
+
* Price: $0.011 per request.
|
|
6535
6657
|
*
|
|
6536
6658
|
* @example
|
|
6537
6659
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -6539,6 +6661,19 @@ var YoutubeNamespace = class {
|
|
|
6539
6661
|
videoTranscript(input, options) {
|
|
6540
6662
|
return this._core.run("youtube.video_transcript", input, options);
|
|
6541
6663
|
}
|
|
6664
|
+
/**
|
|
6665
|
+
* YouTube Video Transcript (Provenance)
|
|
6666
|
+
*
|
|
6667
|
+
* Fetch a YouTube transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
6668
|
+
*
|
|
6669
|
+
* Price: $0.00294 per request plus $0 per result (maximum $0.00294).
|
|
6670
|
+
*
|
|
6671
|
+
* @example
|
|
6672
|
+
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
6673
|
+
*/
|
|
6674
|
+
videoTranscriptFull(input, options) {
|
|
6675
|
+
return this._core.run("youtube.video_transcript_full", input, options);
|
|
6676
|
+
}
|
|
6542
6677
|
};
|
|
6543
6678
|
|
|
6544
6679
|
// src/generated/platforms/zhihu.ts
|
|
@@ -6922,6 +7057,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6922
7057
|
this._core
|
|
6923
7058
|
);
|
|
6924
7059
|
}
|
|
7060
|
+
/**
|
|
7061
|
+
* Typed methods for the naver platform.
|
|
7062
|
+
*/
|
|
7063
|
+
get naver() {
|
|
7064
|
+
return this._namespaces["naver"] ??= new NaverNamespace(
|
|
7065
|
+
this._core
|
|
7066
|
+
);
|
|
7067
|
+
}
|
|
6925
7068
|
/**
|
|
6926
7069
|
* Typed methods for the pandaexpress platform.
|
|
6927
7070
|
*/
|
|
@@ -7243,6 +7386,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7243
7386
|
LinkedinNamespace,
|
|
7244
7387
|
MapsNamespace,
|
|
7245
7388
|
MobilePhoneNamespace,
|
|
7389
|
+
NaverNamespace,
|
|
7246
7390
|
NotFoundError,
|
|
7247
7391
|
PandaexpressNamespace,
|
|
7248
7392
|
PeopleSearchNamespace,
|