@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.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
|
|
@@ -6322,12 +6386,12 @@ var YoutubeNamespace = class {
|
|
|
6322
6386
|
/**
|
|
6323
6387
|
* YouTube Channel Shorts
|
|
6324
6388
|
*
|
|
6325
|
-
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination
|
|
6389
|
+
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
6326
6390
|
*
|
|
6327
6391
|
* Price: $0.002 per request.
|
|
6328
6392
|
*
|
|
6329
6393
|
* @example
|
|
6330
|
-
* const res = await client.youtube.channelShorts({ handle: "@
|
|
6394
|
+
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
|
6331
6395
|
*/
|
|
6332
6396
|
channelShorts(input, options) {
|
|
6333
6397
|
return this._core.run("youtube.channel_shorts", input, options);
|
|
@@ -6531,7 +6595,7 @@ var YoutubeNamespace = class {
|
|
|
6531
6595
|
*
|
|
6532
6596
|
* Fetch the transcript/captions of a YouTube video by URL or ID.
|
|
6533
6597
|
*
|
|
6534
|
-
* Price: $0.
|
|
6598
|
+
* Price: $0.011 per request.
|
|
6535
6599
|
*
|
|
6536
6600
|
* @example
|
|
6537
6601
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -6539,6 +6603,19 @@ var YoutubeNamespace = class {
|
|
|
6539
6603
|
videoTranscript(input, options) {
|
|
6540
6604
|
return this._core.run("youtube.video_transcript", input, options);
|
|
6541
6605
|
}
|
|
6606
|
+
/**
|
|
6607
|
+
* YouTube Video Transcript (Provenance)
|
|
6608
|
+
*
|
|
6609
|
+
* Fetch a YouTube transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
6610
|
+
*
|
|
6611
|
+
* Price: $0.00294 per request plus $0 per result (maximum $0.00294).
|
|
6612
|
+
*
|
|
6613
|
+
* @example
|
|
6614
|
+
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
6615
|
+
*/
|
|
6616
|
+
videoTranscriptFull(input, options) {
|
|
6617
|
+
return this._core.run("youtube.video_transcript_full", input, options);
|
|
6618
|
+
}
|
|
6542
6619
|
};
|
|
6543
6620
|
|
|
6544
6621
|
// src/generated/platforms/zhihu.ts
|
|
@@ -6922,6 +6999,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6922
6999
|
this._core
|
|
6923
7000
|
);
|
|
6924
7001
|
}
|
|
7002
|
+
/**
|
|
7003
|
+
* Typed methods for the naver platform.
|
|
7004
|
+
*/
|
|
7005
|
+
get naver() {
|
|
7006
|
+
return this._namespaces["naver"] ??= new NaverNamespace(
|
|
7007
|
+
this._core
|
|
7008
|
+
);
|
|
7009
|
+
}
|
|
6925
7010
|
/**
|
|
6926
7011
|
* Typed methods for the pandaexpress platform.
|
|
6927
7012
|
*/
|
|
@@ -7243,6 +7328,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7243
7328
|
LinkedinNamespace,
|
|
7244
7329
|
MapsNamespace,
|
|
7245
7330
|
MobilePhoneNamespace,
|
|
7331
|
+
NaverNamespace,
|
|
7246
7332
|
NotFoundError,
|
|
7247
7333
|
PandaexpressNamespace,
|
|
7248
7334
|
PeopleSearchNamespace,
|