media-scraper
Version:
TypeScript-first multi-platform social media scraper without API keys
31 lines (30 loc) • 770 B
TypeScript
import type { GenericAuthorObject } from "../types";
declare const _default: (url: string) => Promise<InstagramMedia>;
export default _default;
interface InstagramMedia {
id: string;
code?: string;
caption?: string;
permalink_url: string;
thumnail_url: string;
author: GenericAuthorObject;
width?: number;
height?: number;
likes_count?: number;
type?: "image" | "video" | "carousel";
created_at?: number;
video?: InstagramVideo;
carousel_media?: {
id: string;
code?: string;
thumbnail_url: string;
width?: number;
height?: number;
type?: "image" | "video";
video?: InstagramVideo;
}[];
}
interface InstagramVideo {
duration?: number;
url?: string;
}