vidnavigator 1.0.0 → 1.0.1
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/README.md +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -26,12 +26,12 @@ The official JavaScript/TypeScript SDK for the [VidNavigator Developer API](http
|
|
|
26
26
|
| YouTube | Yes | - | - |
|
|
27
27
|
| Instagram Reels | - | Yes | Yes |
|
|
28
28
|
| Instagram Posts | - | Yes | Yes (`all_videos`) |
|
|
29
|
-
| TikTok |
|
|
30
|
-
| X / Twitter |
|
|
31
|
-
| Vimeo |
|
|
32
|
-
| Facebook |
|
|
33
|
-
| Dailymotion |
|
|
34
|
-
| Loom |
|
|
29
|
+
| TikTok | Yes | Yes | - |
|
|
30
|
+
| X / Twitter | Yes | Yes | - |
|
|
31
|
+
| Vimeo | Yes | Yes | - |
|
|
32
|
+
| Facebook | Yes | Yes | - |
|
|
33
|
+
| Dailymotion | Yes | Yes | - |
|
|
34
|
+
| Loom | Yes | Yes | - |
|
|
35
35
|
| Uploaded files | Yes | Yes | - |
|
|
36
36
|
|
|
37
37
|
> **Transcript** = fast caption/subtitle extraction. **Transcribe** = speech-to-text via AI models (works when captions are unavailable).
|
|
@@ -91,18 +91,18 @@ Pass `transcript_text: true` to get the full transcript as a single plain-text s
|
|
|
91
91
|
|
|
92
92
|
### 2. Instagram Reel / TikTok / X / Vimeo
|
|
93
93
|
|
|
94
|
-
For
|
|
94
|
+
For most non-YouTube platforms, you can use either `getTranscript` (fast, caption-based) or `transcribeVideo` (speech-to-text). **Note:** Instagram only supports `transcribeVideo`.
|
|
95
95
|
|
|
96
96
|
```ts
|
|
97
|
-
// Instagram Reel
|
|
97
|
+
// Instagram Reel (speech-to-text only)
|
|
98
98
|
const { video_info, transcript } = await vn.transcribeVideo({
|
|
99
99
|
video_url: 'https://www.instagram.com/reel/C86ZvEaqRmo/',
|
|
100
100
|
});
|
|
101
101
|
console.log(video_info.title);
|
|
102
102
|
console.log(transcript[0].text);
|
|
103
103
|
|
|
104
|
-
// TikTok
|
|
105
|
-
const tiktok = await vn.
|
|
104
|
+
// TikTok (can use getTranscript or transcribeVideo)
|
|
105
|
+
const tiktok = await vn.getTranscript({
|
|
106
106
|
video_url: 'https://www.tiktok.com/@user/video/1234567890',
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -296,7 +296,7 @@ All methods return a `Promise`. Responses are automatically parsed into typed mo
|
|
|
296
296
|
| Method | Description |
|
|
297
297
|
|--------|-------------|
|
|
298
298
|
| `getYouTubeTranscript(payload)` | Get transcript for a YouTube video (fast, caption-based) |
|
|
299
|
-
| `getTranscript(payload)` | Get transcript for non-YouTube videos (Vimeo, X/Twitter, TikTok, etc.) |
|
|
299
|
+
| `getTranscript(payload)` | Get transcript for non-YouTube videos (Vimeo, X/Twitter, TikTok, etc. — note: Instagram not supported) |
|
|
300
300
|
| `transcribeVideo(payload)` | Speech-to-text transcription via AI models; supports Instagram carousel with `all_videos` |
|
|
301
301
|
|
|
302
302
|
**Common options:** `video_url`, `language`, `metadata_only`, `fallback_to_metadata`, `transcript_text`
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { VideoInfo, TranscriptOutput, FileInfo, AnalysisResult, VideoSearchResul
|
|
|
3
3
|
export * from './models';
|
|
4
4
|
export * from './errors';
|
|
5
5
|
/** SDK version (keep in sync with package.json) */
|
|
6
|
-
export declare const SDK_VERSION = "1.0.
|
|
6
|
+
export declare const SDK_VERSION = "1.0.1";
|
|
7
7
|
export interface SDKConfig {
|
|
8
8
|
apiKey: string;
|
|
9
9
|
baseURL?: string;
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const errors_1 = require("./errors");
|
|
|
26
26
|
__exportStar(require("./models"), exports);
|
|
27
27
|
__exportStar(require("./errors"), exports);
|
|
28
28
|
/** SDK version (keep in sync with package.json) */
|
|
29
|
-
exports.SDK_VERSION = '1.0.
|
|
29
|
+
exports.SDK_VERSION = '1.0.1';
|
|
30
30
|
//endregion
|
|
31
31
|
function parseApiErrorPayload(data) {
|
|
32
32
|
const errorField = data?.error;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED