reelflow
Version:
Elegant and powerful Instagram video downloader for seamless content extraction
58 lines • 1.3 kB
TypeScript
export interface VideoInfo {
width: string;
height: string;
videoUrl: string;
username?: string;
thumbnail?: string;
description?: string;
}
export interface ImageInfo {
url: string;
username?: string;
thumbnail?: string;
description?: string;
}
export type MediaInfo = VideoInfo | ImageInfo;
export interface GraphQLResponse {
data: {
xdt_shortcode_media: MediaData;
};
extensions: {
is_final: boolean;
};
}
export interface MediaData {
__typename: string;
__isXDTGraphMediaInterface: string;
id: string;
shortcode: string;
thumbnail_src: string;
dimensions: {
height: number;
width: number;
};
is_video: boolean;
video_url: string;
video_duration: number;
owner: {
id: string;
username: string;
is_verified: boolean;
profile_pic_url: string;
full_name: string;
};
}
export interface InstagramMediaInfo {
url: string;
type: 'video' | 'image';
width?: string;
height?: string;
username?: string;
thumbnail?: string;
description?: string;
}
export declare class InstagramError extends Error {
status: number;
constructor(message: string, status?: number);
}
//# sourceMappingURL=types.d.ts.map