Mika Scraper / instagram
Function: instagram()
instagram(
url
):Promise
<InstagramMedia
>
Defined in: src/instagram/instagram.ts:44
Extracts the video and audio stream URLs along with metadata from a specified Instagram reel or post.
Parameters
url
- Type:
string
- Description: The URL of the Instagram reel or post that you wish to extract data from.
Returns
- Type:
Promise
<InstagramMedia
> - Description: A promise resolving to a structured
InstagramMedia
object containing the extracted URLs and metadata.
Example
import { instagram } from 'mika-scraper';
const url = 'https://www.instagram.com/reel/some_instagram_reel';
instagram(url)
.then(media => {
console.log(media);
})
.catch(error => {
console.error('Error extracting media:', error);
});
Last updated on