@getanyapi/sdk 0.85.0 → 0.86.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.d.cts CHANGED
@@ -20560,7 +20560,7 @@ declare class GoogleNamespace {
20560
20560
  *
20561
20561
  * Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
20562
20562
  *
20563
- * Price: $0.0005 per request.
20563
+ * Price: $0.0004 per request.
20564
20564
  *
20565
20565
  * @example
20566
20566
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -23439,6 +23439,11 @@ interface InstagramReelTranscriptItem {
23439
23439
  * The reel's short code, the part of its instagram.com URL after /reel/. Empty when the request supplied a CDN media URL.
23440
23440
  */
23441
23441
  shortcode?: string;
23442
+ /**
23443
+ * Why the transcript reads the way it does. "audio_asr" means the words come from speech recognition over the reel's audio; a reel with only music in it transcribes to an empty text this way, and its audio time is charged. "no_audio" means there was nothing to listen to: the video has no audio track, or the post is a photo with no video. The transcript is empty because that is the answer, and only the request price is charged, with no audio time. "transcript_unavailable" means recognition did not complete for this reel, so the transcript is empty for that reason rather than because the reel has no speech in it; the rest of the record is still what we resolved, and no audio time is charged.
23444
+ * One of: audio_asr, no_audio, transcript_unavailable.
23445
+ */
23446
+ source?: "audio_asr" | "no_audio" | "transcript_unavailable";
23442
23447
  /**
23443
23448
  * The full speech transcript. Empty when the reel has no detectable spoken audio, or when the post is a photo with no video to transcribe. Populated whenever the provider has data for the entity.
23444
23449
  */
@@ -25798,7 +25803,7 @@ declare class InstagramNamespace {
25798
25803
  *
25799
25804
  * List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
25800
25805
  *
25801
- * Price: $0.0008 per request.
25806
+ * Price: $0.00095 per request.
25802
25807
  *
25803
25808
  * @example
25804
25809
  * const res = await client.instagram.userReels({ handle: "nasa" });
@@ -55437,10 +55442,10 @@ interface TiktokVideoTranscriptFullData {
55437
55442
  */
55438
55443
  segments?: TiktokVideoTranscriptFullSegment[];
55439
55444
  /**
55440
- * How the text was produced. "audio_asr" means the words come from speech recognition over the video's audio, never from a caption track TikTok published - for TikTok's own captions, use tiktok.video_transcript. "transcript_unavailable" means recognition did not complete for this video, so the transcript is empty for that reason rather than because the video has no speech in it; the rest of the record is still what we resolved, and no audio time is charged. Populated whenever the provider has data for the entity.
55441
- * One of: audio_asr, transcript_unavailable.
55445
+ * How the text was produced. "audio_asr" means the words come from speech recognition over the video's audio, never from a caption track TikTok published - for TikTok's own captions, use tiktok.video_transcript. "transcript_unavailable" means recognition did not complete for this video, so the transcript is empty for that reason rather than because the video has no speech in it; the rest of the record is still what we resolved, and no audio time is charged. "no_audio" means there was nothing to listen to: the video has no audio track, or the post has no video. The transcript is empty because that is the answer, the rest of the record is still what we resolved, and only the request price is charged, with no audio time. Populated whenever the provider has data for the entity.
55446
+ * One of: audio_asr, no_audio, transcript_unavailable.
55442
55447
  */
55443
- source: "audio_asr" | "transcript_unavailable";
55448
+ source: "audio_asr" | "no_audio" | "transcript_unavailable";
55444
55449
  /**
55445
55450
  * Cover image for the video. A signed, short-lived TikTok CDN URL, often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support.
55446
55451
  * Format: uri.
@@ -59480,7 +59485,7 @@ declare class TwitterNamespace {
59480
59485
  *
59481
59486
  * List recent tweets posted in a Twitter/X community by URL.
59482
59487
  *
59483
- * Price: $0.0005 per request.
59488
+ * Price: $0.00045 per request.
59484
59489
  *
59485
59490
  * @example
59486
59491
  * const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -59491,7 +59496,7 @@ declare class TwitterNamespace {
59491
59496
  *
59492
59497
  * Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
59493
59498
  *
59494
- * Price: $0.0005 per request.
59499
+ * Price: $0.00045 per request.
59495
59500
  *
59496
59501
  * @example
59497
59502
  * const res = await client.twitter.followers({ username: "nasa", limit: 200 });
@@ -59509,7 +59514,7 @@ declare class TwitterNamespace {
59509
59514
  *
59510
59515
  * List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
59511
59516
  *
59512
- * Price: $0.0005 per request.
59517
+ * Price: $0.00045 per request.
59513
59518
  *
59514
59519
  * @example
59515
59520
  * const res = await client.twitter.following({ username: "nasa", limit: 200 });
@@ -59538,7 +59543,7 @@ declare class TwitterNamespace {
59538
59543
  *
59539
59544
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
59540
59545
  *
59541
- * Price: $0.0005 per request.
59546
+ * Price: $0.00045 per request.
59542
59547
  *
59543
59548
  * @example
59544
59549
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
@@ -59556,7 +59561,7 @@ declare class TwitterNamespace {
59556
59561
  *
59557
59562
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
59558
59563
  *
59559
- * Price: $0.00065 per request.
59564
+ * Price: $0.0006 per request.
59560
59565
  *
59561
59566
  * @example
59562
59567
  * const res = await client.twitter.search({ query: "openai" });
@@ -59592,7 +59597,7 @@ declare class TwitterNamespace {
59592
59597
  *
59593
59598
  * 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.
59594
59599
  *
59595
- * Price: $0.00075 per request.
59600
+ * Price: $0.0007 per request.
59596
59601
  *
59597
59602
  * @example
59598
59603
  * const res = await client.twitter.searchUsers({ query: "ai agents" });
@@ -59654,7 +59659,7 @@ declare class TwitterNamespace {
59654
59659
  *
59655
59660
  * Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
59656
59661
  *
59657
- * Price: $0.0005 per request.
59662
+ * Price: $0.00045 per request.
59658
59663
  *
59659
59664
  * @example
59660
59665
  * const res = await client.twitter.userPosts({ handle: "levelsio" });
@@ -59672,7 +59677,7 @@ declare class TwitterNamespace {
59672
59677
  *
59673
59678
  * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
59674
59679
  *
59675
- * Price: $0.0005 per request.
59680
+ * Price: $0.00045 per request.
59676
59681
  *
59677
59682
  * @example
59678
59683
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -63434,7 +63439,7 @@ declare class YoutubeNamespace {
63434
63439
  *
63435
63440
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
63436
63441
  *
63437
- * Price: $0.0008 per request.
63442
+ * Price: $0.0012 per request.
63438
63443
  *
63439
63444
  * @example
63440
63445
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.d.ts CHANGED
@@ -20560,7 +20560,7 @@ declare class GoogleNamespace {
20560
20560
  *
20561
20561
  * Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
20562
20562
  *
20563
- * Price: $0.0005 per request.
20563
+ * Price: $0.0004 per request.
20564
20564
  *
20565
20565
  * @example
20566
20566
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -23439,6 +23439,11 @@ interface InstagramReelTranscriptItem {
23439
23439
  * The reel's short code, the part of its instagram.com URL after /reel/. Empty when the request supplied a CDN media URL.
23440
23440
  */
23441
23441
  shortcode?: string;
23442
+ /**
23443
+ * Why the transcript reads the way it does. "audio_asr" means the words come from speech recognition over the reel's audio; a reel with only music in it transcribes to an empty text this way, and its audio time is charged. "no_audio" means there was nothing to listen to: the video has no audio track, or the post is a photo with no video. The transcript is empty because that is the answer, and only the request price is charged, with no audio time. "transcript_unavailable" means recognition did not complete for this reel, so the transcript is empty for that reason rather than because the reel has no speech in it; the rest of the record is still what we resolved, and no audio time is charged.
23444
+ * One of: audio_asr, no_audio, transcript_unavailable.
23445
+ */
23446
+ source?: "audio_asr" | "no_audio" | "transcript_unavailable";
23442
23447
  /**
23443
23448
  * The full speech transcript. Empty when the reel has no detectable spoken audio, or when the post is a photo with no video to transcribe. Populated whenever the provider has data for the entity.
23444
23449
  */
@@ -25798,7 +25803,7 @@ declare class InstagramNamespace {
25798
25803
  *
25799
25804
  * List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
25800
25805
  *
25801
- * Price: $0.0008 per request.
25806
+ * Price: $0.00095 per request.
25802
25807
  *
25803
25808
  * @example
25804
25809
  * const res = await client.instagram.userReels({ handle: "nasa" });
@@ -55437,10 +55442,10 @@ interface TiktokVideoTranscriptFullData {
55437
55442
  */
55438
55443
  segments?: TiktokVideoTranscriptFullSegment[];
55439
55444
  /**
55440
- * How the text was produced. "audio_asr" means the words come from speech recognition over the video's audio, never from a caption track TikTok published - for TikTok's own captions, use tiktok.video_transcript. "transcript_unavailable" means recognition did not complete for this video, so the transcript is empty for that reason rather than because the video has no speech in it; the rest of the record is still what we resolved, and no audio time is charged. Populated whenever the provider has data for the entity.
55441
- * One of: audio_asr, transcript_unavailable.
55445
+ * How the text was produced. "audio_asr" means the words come from speech recognition over the video's audio, never from a caption track TikTok published - for TikTok's own captions, use tiktok.video_transcript. "transcript_unavailable" means recognition did not complete for this video, so the transcript is empty for that reason rather than because the video has no speech in it; the rest of the record is still what we resolved, and no audio time is charged. "no_audio" means there was nothing to listen to: the video has no audio track, or the post has no video. The transcript is empty because that is the answer, the rest of the record is still what we resolved, and only the request price is charged, with no audio time. Populated whenever the provider has data for the entity.
55446
+ * One of: audio_asr, no_audio, transcript_unavailable.
55442
55447
  */
55443
- source: "audio_asr" | "transcript_unavailable";
55448
+ source: "audio_asr" | "no_audio" | "transcript_unavailable";
55444
55449
  /**
55445
55450
  * Cover image for the video. A signed, short-lived TikTok CDN URL, often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support.
55446
55451
  * Format: uri.
@@ -59480,7 +59485,7 @@ declare class TwitterNamespace {
59480
59485
  *
59481
59486
  * List recent tweets posted in a Twitter/X community by URL.
59482
59487
  *
59483
- * Price: $0.0005 per request.
59488
+ * Price: $0.00045 per request.
59484
59489
  *
59485
59490
  * @example
59486
59491
  * const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -59491,7 +59496,7 @@ declare class TwitterNamespace {
59491
59496
  *
59492
59497
  * Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
59493
59498
  *
59494
- * Price: $0.0005 per request.
59499
+ * Price: $0.00045 per request.
59495
59500
  *
59496
59501
  * @example
59497
59502
  * const res = await client.twitter.followers({ username: "nasa", limit: 200 });
@@ -59509,7 +59514,7 @@ declare class TwitterNamespace {
59509
59514
  *
59510
59515
  * List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
59511
59516
  *
59512
- * Price: $0.0005 per request.
59517
+ * Price: $0.00045 per request.
59513
59518
  *
59514
59519
  * @example
59515
59520
  * const res = await client.twitter.following({ username: "nasa", limit: 200 });
@@ -59538,7 +59543,7 @@ declare class TwitterNamespace {
59538
59543
  *
59539
59544
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
59540
59545
  *
59541
- * Price: $0.0005 per request.
59546
+ * Price: $0.00045 per request.
59542
59547
  *
59543
59548
  * @example
59544
59549
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
@@ -59556,7 +59561,7 @@ declare class TwitterNamespace {
59556
59561
  *
59557
59562
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
59558
59563
  *
59559
- * Price: $0.00065 per request.
59564
+ * Price: $0.0006 per request.
59560
59565
  *
59561
59566
  * @example
59562
59567
  * const res = await client.twitter.search({ query: "openai" });
@@ -59592,7 +59597,7 @@ declare class TwitterNamespace {
59592
59597
  *
59593
59598
  * 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.
59594
59599
  *
59595
- * Price: $0.00075 per request.
59600
+ * Price: $0.0007 per request.
59596
59601
  *
59597
59602
  * @example
59598
59603
  * const res = await client.twitter.searchUsers({ query: "ai agents" });
@@ -59654,7 +59659,7 @@ declare class TwitterNamespace {
59654
59659
  *
59655
59660
  * Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
59656
59661
  *
59657
- * Price: $0.0005 per request.
59662
+ * Price: $0.00045 per request.
59658
59663
  *
59659
59664
  * @example
59660
59665
  * const res = await client.twitter.userPosts({ handle: "levelsio" });
@@ -59672,7 +59677,7 @@ declare class TwitterNamespace {
59672
59677
  *
59673
59678
  * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
59674
59679
  *
59675
- * Price: $0.0005 per request.
59680
+ * Price: $0.00045 per request.
59676
59681
  *
59677
59682
  * @example
59678
59683
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -63434,7 +63439,7 @@ declare class YoutubeNamespace {
63434
63439
  *
63435
63440
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
63436
63441
  *
63437
- * Price: $0.0008 per request.
63442
+ * Price: $0.0012 per request.
63438
63443
  *
63439
63444
  * @example
63440
63445
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.js CHANGED
@@ -3159,7 +3159,7 @@ var GoogleNamespace = class {
3159
3159
  *
3160
3160
  * Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
3161
3161
  *
3162
- * Price: $0.0005 per request.
3162
+ * Price: $0.0004 per request.
3163
3163
  *
3164
3164
  * @example
3165
3165
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -4074,7 +4074,7 @@ var InstagramNamespace = class {
4074
4074
  *
4075
4075
  * List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
4076
4076
  *
4077
- * Price: $0.0008 per request.
4077
+ * Price: $0.00095 per request.
4078
4078
  *
4079
4079
  * @example
4080
4080
  * const res = await client.instagram.userReels({ handle: "nasa" });
@@ -7390,7 +7390,7 @@ var TwitterNamespace = class {
7390
7390
  *
7391
7391
  * List recent tweets posted in a Twitter/X community by URL.
7392
7392
  *
7393
- * Price: $0.0005 per request.
7393
+ * Price: $0.00045 per request.
7394
7394
  *
7395
7395
  * @example
7396
7396
  * const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -7403,7 +7403,7 @@ var TwitterNamespace = class {
7403
7403
  *
7404
7404
  * Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
7405
7405
  *
7406
- * Price: $0.0005 per request.
7406
+ * Price: $0.00045 per request.
7407
7407
  *
7408
7408
  * @example
7409
7409
  * const res = await client.twitter.followers({ username: "nasa", limit: 200 });
@@ -7432,7 +7432,7 @@ var TwitterNamespace = class {
7432
7432
  *
7433
7433
  * List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
7434
7434
  *
7435
- * Price: $0.0005 per request.
7435
+ * Price: $0.00045 per request.
7436
7436
  *
7437
7437
  * @example
7438
7438
  * const res = await client.twitter.following({ username: "nasa", limit: 200 });
@@ -7474,7 +7474,7 @@ var TwitterNamespace = class {
7474
7474
  *
7475
7475
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
7476
7476
  *
7477
- * Price: $0.0005 per request.
7477
+ * Price: $0.00045 per request.
7478
7478
  *
7479
7479
  * @example
7480
7480
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
@@ -7503,7 +7503,7 @@ var TwitterNamespace = class {
7503
7503
  *
7504
7504
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
7505
7505
  *
7506
- * Price: $0.00065 per request.
7506
+ * Price: $0.0006 per request.
7507
7507
  *
7508
7508
  * @example
7509
7509
  * const res = await client.twitter.search({ query: "openai" });
@@ -7561,7 +7561,7 @@ var TwitterNamespace = class {
7561
7561
  *
7562
7562
  * 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.
7563
7563
  *
7564
- * Price: $0.00075 per request.
7564
+ * Price: $0.0007 per request.
7565
7565
  *
7566
7566
  * @example
7567
7567
  * const res = await client.twitter.searchUsers({ query: "ai agents" });
@@ -7642,7 +7642,7 @@ var TwitterNamespace = class {
7642
7642
  *
7643
7643
  * Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
7644
7644
  *
7645
- * Price: $0.0005 per request.
7645
+ * Price: $0.00045 per request.
7646
7646
  *
7647
7647
  * @example
7648
7648
  * const res = await client.twitter.userPosts({ handle: "levelsio" });
@@ -7671,7 +7671,7 @@ var TwitterNamespace = class {
7671
7671
  *
7672
7672
  * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
7673
7673
  *
7674
- * Price: $0.0005 per request.
7674
+ * Price: $0.00045 per request.
7675
7675
  *
7676
7676
  * @example
7677
7677
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -8327,7 +8327,7 @@ var YoutubeNamespace = class {
8327
8327
  *
8328
8328
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
8329
8329
  *
8330
- * Price: $0.0008 per request.
8330
+ * Price: $0.0012 per request.
8331
8331
  *
8332
8332
  * @example
8333
8333
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });