@getanyapi/sdk 0.44.0 → 0.45.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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -23
- package/dist/index.d.ts +33 -23
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -14506,10 +14506,6 @@ interface GoogleAiOverviewInput {
|
|
|
14506
14506
|
* The question or prompt to answer with a Google AI Overview.
|
|
14507
14507
|
*/
|
|
14508
14508
|
prompt: string;
|
|
14509
|
-
/**
|
|
14510
|
-
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `citations` or `index`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
14511
|
-
*/
|
|
14512
|
-
requireFields?: ("citations" | "index" | "scrapedAt" | "title" | "url")[];
|
|
14513
14509
|
}
|
|
14514
14510
|
interface GoogleAiOverviewCitation {
|
|
14515
14511
|
/**
|
|
@@ -17105,6 +17101,11 @@ interface InstagramMediaTranscriptData {
|
|
|
17105
17101
|
* Input for Instagram Post (instagram.post).
|
|
17106
17102
|
*/
|
|
17107
17103
|
interface InstagramPostInput {
|
|
17104
|
+
/**
|
|
17105
|
+
* Set true to also get the post's video on a hosted MP4 link that plays without an Instagram session. The file is downloaded and stored for you, and the response adds `hostedUrl`, `expiresUtc` and `bytes`. It is charged as an extra on top of the price, and it never changes which source serves you: every source offers it at the same price. A post with no video, or a post that does not exist, is refused with no charge rather than billed for a file that cannot exist. Omit it and nothing is downloaded, nothing is stored, and nothing extra is charged.
|
|
17106
|
+
* Default: false.
|
|
17107
|
+
*/
|
|
17108
|
+
hostVideo?: boolean;
|
|
17108
17109
|
/**
|
|
17109
17110
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
17110
17111
|
* Range: minimum 1.
|
|
@@ -17127,10 +17128,23 @@ interface InstagramPostInput {
|
|
|
17127
17128
|
* The `data` payload of Instagram Post (instagram.post).
|
|
17128
17129
|
*/
|
|
17129
17130
|
interface InstagramPostData {
|
|
17131
|
+
/**
|
|
17132
|
+
* Size of the hosted MP4 in bytes. Present only when the request set `hostVideo` to true.
|
|
17133
|
+
*/
|
|
17134
|
+
bytes?: number;
|
|
17130
17135
|
/**
|
|
17131
17136
|
* Populated whenever the provider has data for the entity.
|
|
17132
17137
|
*/
|
|
17133
17138
|
displayUrl: string;
|
|
17139
|
+
/**
|
|
17140
|
+
* When `hostedUrl` stops working, as a UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Present only when the request set `hostVideo` to true.
|
|
17141
|
+
*/
|
|
17142
|
+
expiresUtc?: number;
|
|
17143
|
+
/**
|
|
17144
|
+
* AnyAPI-hosted MP4 of this post's video, playable without an Instagram session. Present only when the request set `hostVideo` to true.
|
|
17145
|
+
* Format: uri.
|
|
17146
|
+
*/
|
|
17147
|
+
hostedUrl?: string;
|
|
17134
17148
|
/**
|
|
17135
17149
|
* Populated whenever the provider has data for the entity.
|
|
17136
17150
|
*/
|
|
@@ -17426,10 +17440,10 @@ interface InstagramProfileContactData {
|
|
|
17426
17440
|
*/
|
|
17427
17441
|
interface InstagramReelTranscriptInput {
|
|
17428
17442
|
/**
|
|
17429
|
-
* Set
|
|
17430
|
-
* Default:
|
|
17443
|
+
* Set true to also get the reel's MP4 on a hosted link you can play without an Instagram session. Charged as an extra on top of the transcript (e.g. true).
|
|
17444
|
+
* Default: false.
|
|
17431
17445
|
*/
|
|
17432
|
-
|
|
17446
|
+
hostVideo?: boolean;
|
|
17433
17447
|
/**
|
|
17434
17448
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
17435
17449
|
* Range: minimum 1.
|
|
@@ -17447,7 +17461,7 @@ interface InstagramReelTranscriptInput {
|
|
|
17447
17461
|
}
|
|
17448
17462
|
interface InstagramReelTranscriptItem {
|
|
17449
17463
|
/**
|
|
17450
|
-
* Size of the
|
|
17464
|
+
* Size of the hosted MP4 in bytes. Present only when hostVideo was true.
|
|
17451
17465
|
*/
|
|
17452
17466
|
bytes?: number;
|
|
17453
17467
|
/**
|
|
@@ -17455,11 +17469,11 @@ interface InstagramReelTranscriptItem {
|
|
|
17455
17469
|
*/
|
|
17456
17470
|
durationSeconds?: number;
|
|
17457
17471
|
/**
|
|
17458
|
-
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. After this moment the hosted MP4 is deleted.
|
|
17472
|
+
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. After this moment the hosted MP4 is deleted. Present only when hostVideo was true.
|
|
17459
17473
|
*/
|
|
17460
17474
|
expiresUtc?: number;
|
|
17461
17475
|
/**
|
|
17462
|
-
* A direct link to the downloaded MP4, hosted by AnyAPI and playable without an Instagram session.
|
|
17476
|
+
* A direct link to the downloaded MP4, hosted by AnyAPI and playable without an Instagram session. Present only when hostVideo was true.
|
|
17463
17477
|
* Format: uri.
|
|
17464
17478
|
*/
|
|
17465
17479
|
hostedUrl?: string;
|
|
@@ -17484,7 +17498,7 @@ interface InstagramReelTranscriptItem {
|
|
|
17484
17498
|
*/
|
|
17485
17499
|
ownerUsername?: string;
|
|
17486
17500
|
/**
|
|
17487
|
-
* Time-aligned transcript segments, each with its text, speaker label, and start/end offsets in seconds. Empty when
|
|
17501
|
+
* Time-aligned transcript segments, each with its text, speaker label, and start/end offsets in seconds. Empty when the reel has no detectable spoken audio.
|
|
17488
17502
|
*/
|
|
17489
17503
|
segments?: InstagramReelTranscriptSegment[];
|
|
17490
17504
|
/**
|
|
@@ -17492,7 +17506,7 @@ interface InstagramReelTranscriptItem {
|
|
|
17492
17506
|
*/
|
|
17493
17507
|
shortcode?: string;
|
|
17494
17508
|
/**
|
|
17495
|
-
* The full speech transcript. Empty when the reel has no detectable spoken audio
|
|
17509
|
+
* The full speech transcript. Empty when the reel has no detectable spoken audio. Populated whenever the provider has data for the entity.
|
|
17496
17510
|
*/
|
|
17497
17511
|
text: string;
|
|
17498
17512
|
/**
|
|
@@ -17503,10 +17517,6 @@ interface InstagramReelTranscriptItem {
|
|
|
17503
17517
|
* The reel URL the request asked for, returned as sent. Populated whenever the provider has data for the entity.
|
|
17504
17518
|
*/
|
|
17505
17519
|
url: string;
|
|
17506
|
-
/**
|
|
17507
|
-
* Number of video views. Absent when the lane that served the lookup does not carry a view count.
|
|
17508
|
-
*/
|
|
17509
|
-
viewCount?: number;
|
|
17510
17520
|
[extra: string]: unknown;
|
|
17511
17521
|
}
|
|
17512
17522
|
interface InstagramReelTranscriptSegment {
|
|
@@ -17552,7 +17562,7 @@ interface InstagramReelTranscriptWord {
|
|
|
17552
17562
|
*/
|
|
17553
17563
|
interface InstagramReelTranscriptData {
|
|
17554
17564
|
/**
|
|
17555
|
-
* Record for the requested reel (one item), with
|
|
17565
|
+
* Record for the requested reel (one item), with the full transcript text, timed segments, source video metadata, and the hosted video link when hostVideo was asked for. Populated whenever the provider has data for the entity.
|
|
17556
17566
|
*/
|
|
17557
17567
|
items: InstagramReelTranscriptItem[];
|
|
17558
17568
|
}
|
|
@@ -18858,7 +18868,7 @@ declare class InstagramNamespace {
|
|
|
18858
18868
|
/**
|
|
18859
18869
|
* Instagram Post
|
|
18860
18870
|
*
|
|
18861
|
-
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
|
|
18871
|
+
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
18862
18872
|
*
|
|
18863
18873
|
* Price: $0.0005 per request.
|
|
18864
18874
|
*
|
|
@@ -18900,7 +18910,7 @@ declare class InstagramNamespace {
|
|
|
18900
18910
|
*
|
|
18901
18911
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
18902
18912
|
*
|
|
18903
|
-
* Price: $0.
|
|
18913
|
+
* Price: $0.0012 per request.
|
|
18904
18914
|
*
|
|
18905
18915
|
* @example
|
|
18906
18916
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -18920,12 +18930,12 @@ declare class InstagramNamespace {
|
|
|
18920
18930
|
/**
|
|
18921
18931
|
* Instagram Reel Transcript
|
|
18922
18932
|
*
|
|
18923
|
-
*
|
|
18933
|
+
* Transcribe any public Instagram reel or video post: the full speech transcript, speaker labels, and word-level timestamps, from a reel URL or an Instagram CDN media URL you already hold. Transcription runs on MAI-Transcribe-2, chosen for its accuracy and its speaker labels. Turn on hostVideo to also get the MP4 on a hosted link that plays without an Instagram session. If you only want the text, instagram.media_transcript is the cheaper transcript-only option; if you only want the file, instagram.post is where you go.
|
|
18924
18934
|
*
|
|
18925
|
-
* Price: $0.
|
|
18935
|
+
* Price: $0.0015 per request plus $0.006 per audio minute (maximum $0.095).
|
|
18926
18936
|
*
|
|
18927
18937
|
* @example
|
|
18928
|
-
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/",
|
|
18938
|
+
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/", hostVideo: true, wordTimestamps: false });
|
|
18929
18939
|
*/
|
|
18930
18940
|
reelTranscript(input: InstagramReelTranscriptInput, options?: RequestOptions): Promise<RunResult<InstagramReelTranscriptData>>;
|
|
18931
18941
|
/**
|
|
@@ -45405,7 +45415,7 @@ declare class YoutubeNamespace {
|
|
|
45405
45415
|
*
|
|
45406
45416
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
45407
45417
|
*
|
|
45408
|
-
* Price: $0.
|
|
45418
|
+
* Price: $0.0005 per request.
|
|
45409
45419
|
*
|
|
45410
45420
|
* @example
|
|
45411
45421
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
package/dist/index.d.ts
CHANGED
|
@@ -14506,10 +14506,6 @@ interface GoogleAiOverviewInput {
|
|
|
14506
14506
|
* The question or prompt to answer with a Google AI Overview.
|
|
14507
14507
|
*/
|
|
14508
14508
|
prompt: string;
|
|
14509
|
-
/**
|
|
14510
|
-
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `citations` or `index`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
14511
|
-
*/
|
|
14512
|
-
requireFields?: ("citations" | "index" | "scrapedAt" | "title" | "url")[];
|
|
14513
14509
|
}
|
|
14514
14510
|
interface GoogleAiOverviewCitation {
|
|
14515
14511
|
/**
|
|
@@ -17105,6 +17101,11 @@ interface InstagramMediaTranscriptData {
|
|
|
17105
17101
|
* Input for Instagram Post (instagram.post).
|
|
17106
17102
|
*/
|
|
17107
17103
|
interface InstagramPostInput {
|
|
17104
|
+
/**
|
|
17105
|
+
* Set true to also get the post's video on a hosted MP4 link that plays without an Instagram session. The file is downloaded and stored for you, and the response adds `hostedUrl`, `expiresUtc` and `bytes`. It is charged as an extra on top of the price, and it never changes which source serves you: every source offers it at the same price. A post with no video, or a post that does not exist, is refused with no charge rather than billed for a file that cannot exist. Omit it and nothing is downloaded, nothing is stored, and nothing extra is charged.
|
|
17106
|
+
* Default: false.
|
|
17107
|
+
*/
|
|
17108
|
+
hostVideo?: boolean;
|
|
17108
17109
|
/**
|
|
17109
17110
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
17110
17111
|
* Range: minimum 1.
|
|
@@ -17127,10 +17128,23 @@ interface InstagramPostInput {
|
|
|
17127
17128
|
* The `data` payload of Instagram Post (instagram.post).
|
|
17128
17129
|
*/
|
|
17129
17130
|
interface InstagramPostData {
|
|
17131
|
+
/**
|
|
17132
|
+
* Size of the hosted MP4 in bytes. Present only when the request set `hostVideo` to true.
|
|
17133
|
+
*/
|
|
17134
|
+
bytes?: number;
|
|
17130
17135
|
/**
|
|
17131
17136
|
* Populated whenever the provider has data for the entity.
|
|
17132
17137
|
*/
|
|
17133
17138
|
displayUrl: string;
|
|
17139
|
+
/**
|
|
17140
|
+
* When `hostedUrl` stops working, as a UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Present only when the request set `hostVideo` to true.
|
|
17141
|
+
*/
|
|
17142
|
+
expiresUtc?: number;
|
|
17143
|
+
/**
|
|
17144
|
+
* AnyAPI-hosted MP4 of this post's video, playable without an Instagram session. Present only when the request set `hostVideo` to true.
|
|
17145
|
+
* Format: uri.
|
|
17146
|
+
*/
|
|
17147
|
+
hostedUrl?: string;
|
|
17134
17148
|
/**
|
|
17135
17149
|
* Populated whenever the provider has data for the entity.
|
|
17136
17150
|
*/
|
|
@@ -17426,10 +17440,10 @@ interface InstagramProfileContactData {
|
|
|
17426
17440
|
*/
|
|
17427
17441
|
interface InstagramReelTranscriptInput {
|
|
17428
17442
|
/**
|
|
17429
|
-
* Set
|
|
17430
|
-
* Default:
|
|
17443
|
+
* Set true to also get the reel's MP4 on a hosted link you can play without an Instagram session. Charged as an extra on top of the transcript (e.g. true).
|
|
17444
|
+
* Default: false.
|
|
17431
17445
|
*/
|
|
17432
|
-
|
|
17446
|
+
hostVideo?: boolean;
|
|
17433
17447
|
/**
|
|
17434
17448
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
|
|
17435
17449
|
* Range: minimum 1.
|
|
@@ -17447,7 +17461,7 @@ interface InstagramReelTranscriptInput {
|
|
|
17447
17461
|
}
|
|
17448
17462
|
interface InstagramReelTranscriptItem {
|
|
17449
17463
|
/**
|
|
17450
|
-
* Size of the
|
|
17464
|
+
* Size of the hosted MP4 in bytes. Present only when hostVideo was true.
|
|
17451
17465
|
*/
|
|
17452
17466
|
bytes?: number;
|
|
17453
17467
|
/**
|
|
@@ -17455,11 +17469,11 @@ interface InstagramReelTranscriptItem {
|
|
|
17455
17469
|
*/
|
|
17456
17470
|
durationSeconds?: number;
|
|
17457
17471
|
/**
|
|
17458
|
-
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. After this moment the hosted MP4 is deleted.
|
|
17472
|
+
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. After this moment the hosted MP4 is deleted. Present only when hostVideo was true.
|
|
17459
17473
|
*/
|
|
17460
17474
|
expiresUtc?: number;
|
|
17461
17475
|
/**
|
|
17462
|
-
* A direct link to the downloaded MP4, hosted by AnyAPI and playable without an Instagram session.
|
|
17476
|
+
* A direct link to the downloaded MP4, hosted by AnyAPI and playable without an Instagram session. Present only when hostVideo was true.
|
|
17463
17477
|
* Format: uri.
|
|
17464
17478
|
*/
|
|
17465
17479
|
hostedUrl?: string;
|
|
@@ -17484,7 +17498,7 @@ interface InstagramReelTranscriptItem {
|
|
|
17484
17498
|
*/
|
|
17485
17499
|
ownerUsername?: string;
|
|
17486
17500
|
/**
|
|
17487
|
-
* Time-aligned transcript segments, each with its text, speaker label, and start/end offsets in seconds. Empty when
|
|
17501
|
+
* Time-aligned transcript segments, each with its text, speaker label, and start/end offsets in seconds. Empty when the reel has no detectable spoken audio.
|
|
17488
17502
|
*/
|
|
17489
17503
|
segments?: InstagramReelTranscriptSegment[];
|
|
17490
17504
|
/**
|
|
@@ -17492,7 +17506,7 @@ interface InstagramReelTranscriptItem {
|
|
|
17492
17506
|
*/
|
|
17493
17507
|
shortcode?: string;
|
|
17494
17508
|
/**
|
|
17495
|
-
* The full speech transcript. Empty when the reel has no detectable spoken audio
|
|
17509
|
+
* The full speech transcript. Empty when the reel has no detectable spoken audio. Populated whenever the provider has data for the entity.
|
|
17496
17510
|
*/
|
|
17497
17511
|
text: string;
|
|
17498
17512
|
/**
|
|
@@ -17503,10 +17517,6 @@ interface InstagramReelTranscriptItem {
|
|
|
17503
17517
|
* The reel URL the request asked for, returned as sent. Populated whenever the provider has data for the entity.
|
|
17504
17518
|
*/
|
|
17505
17519
|
url: string;
|
|
17506
|
-
/**
|
|
17507
|
-
* Number of video views. Absent when the lane that served the lookup does not carry a view count.
|
|
17508
|
-
*/
|
|
17509
|
-
viewCount?: number;
|
|
17510
17520
|
[extra: string]: unknown;
|
|
17511
17521
|
}
|
|
17512
17522
|
interface InstagramReelTranscriptSegment {
|
|
@@ -17552,7 +17562,7 @@ interface InstagramReelTranscriptWord {
|
|
|
17552
17562
|
*/
|
|
17553
17563
|
interface InstagramReelTranscriptData {
|
|
17554
17564
|
/**
|
|
17555
|
-
* Record for the requested reel (one item), with
|
|
17565
|
+
* Record for the requested reel (one item), with the full transcript text, timed segments, source video metadata, and the hosted video link when hostVideo was asked for. Populated whenever the provider has data for the entity.
|
|
17556
17566
|
*/
|
|
17557
17567
|
items: InstagramReelTranscriptItem[];
|
|
17558
17568
|
}
|
|
@@ -18858,7 +18868,7 @@ declare class InstagramNamespace {
|
|
|
18858
18868
|
/**
|
|
18859
18869
|
* Instagram Post
|
|
18860
18870
|
*
|
|
18861
|
-
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
|
|
18871
|
+
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
18862
18872
|
*
|
|
18863
18873
|
* Price: $0.0005 per request.
|
|
18864
18874
|
*
|
|
@@ -18900,7 +18910,7 @@ declare class InstagramNamespace {
|
|
|
18900
18910
|
*
|
|
18901
18911
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
18902
18912
|
*
|
|
18903
|
-
* Price: $0.
|
|
18913
|
+
* Price: $0.0012 per request.
|
|
18904
18914
|
*
|
|
18905
18915
|
* @example
|
|
18906
18916
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -18920,12 +18930,12 @@ declare class InstagramNamespace {
|
|
|
18920
18930
|
/**
|
|
18921
18931
|
* Instagram Reel Transcript
|
|
18922
18932
|
*
|
|
18923
|
-
*
|
|
18933
|
+
* Transcribe any public Instagram reel or video post: the full speech transcript, speaker labels, and word-level timestamps, from a reel URL or an Instagram CDN media URL you already hold. Transcription runs on MAI-Transcribe-2, chosen for its accuracy and its speaker labels. Turn on hostVideo to also get the MP4 on a hosted link that plays without an Instagram session. If you only want the text, instagram.media_transcript is the cheaper transcript-only option; if you only want the file, instagram.post is where you go.
|
|
18924
18934
|
*
|
|
18925
|
-
* Price: $0.
|
|
18935
|
+
* Price: $0.0015 per request plus $0.006 per audio minute (maximum $0.095).
|
|
18926
18936
|
*
|
|
18927
18937
|
* @example
|
|
18928
|
-
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/",
|
|
18938
|
+
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/", hostVideo: true, wordTimestamps: false });
|
|
18929
18939
|
*/
|
|
18930
18940
|
reelTranscript(input: InstagramReelTranscriptInput, options?: RequestOptions): Promise<RunResult<InstagramReelTranscriptData>>;
|
|
18931
18941
|
/**
|
|
@@ -45405,7 +45415,7 @@ declare class YoutubeNamespace {
|
|
|
45405
45415
|
*
|
|
45406
45416
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
45407
45417
|
*
|
|
45408
|
-
* Price: $0.
|
|
45418
|
+
* Price: $0.0005 per request.
|
|
45409
45419
|
*
|
|
45410
45420
|
* @example
|
|
45411
45421
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
package/dist/index.js
CHANGED
|
@@ -3541,7 +3541,7 @@ var InstagramNamespace = class {
|
|
|
3541
3541
|
/**
|
|
3542
3542
|
* Instagram Post
|
|
3543
3543
|
*
|
|
3544
|
-
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
|
|
3544
|
+
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
3545
3545
|
*
|
|
3546
3546
|
* Price: $0.0005 per request.
|
|
3547
3547
|
*
|
|
@@ -3598,7 +3598,7 @@ var InstagramNamespace = class {
|
|
|
3598
3598
|
*
|
|
3599
3599
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
3600
3600
|
*
|
|
3601
|
-
* Price: $0.
|
|
3601
|
+
* Price: $0.0012 per request.
|
|
3602
3602
|
*
|
|
3603
3603
|
* @example
|
|
3604
3604
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -3622,12 +3622,12 @@ var InstagramNamespace = class {
|
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Instagram Reel Transcript
|
|
3624
3624
|
*
|
|
3625
|
-
*
|
|
3625
|
+
* Transcribe any public Instagram reel or video post: the full speech transcript, speaker labels, and word-level timestamps, from a reel URL or an Instagram CDN media URL you already hold. Transcription runs on MAI-Transcribe-2, chosen for its accuracy and its speaker labels. Turn on hostVideo to also get the MP4 on a hosted link that plays without an Instagram session. If you only want the text, instagram.media_transcript is the cheaper transcript-only option; if you only want the file, instagram.post is where you go.
|
|
3626
3626
|
*
|
|
3627
|
-
* Price: $0.
|
|
3627
|
+
* Price: $0.0015 per request plus $0.006 per audio minute (maximum $0.095).
|
|
3628
3628
|
*
|
|
3629
3629
|
* @example
|
|
3630
|
-
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/",
|
|
3630
|
+
* const res = await client.instagram.reelTranscript({ url: "https://www.instagram.com/reel/CfY6jCIgH-P/", hostVideo: true, wordTimestamps: false });
|
|
3631
3631
|
*/
|
|
3632
3632
|
reelTranscript(input, options) {
|
|
3633
3633
|
return this._core.run("instagram.reel_transcript", input, options);
|
|
@@ -7244,7 +7244,7 @@ var YoutubeNamespace = class {
|
|
|
7244
7244
|
*
|
|
7245
7245
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
7246
7246
|
*
|
|
7247
|
-
* Price: $0.
|
|
7247
|
+
* Price: $0.0005 per request.
|
|
7248
7248
|
*
|
|
7249
7249
|
* @example
|
|
7250
7250
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|