microlink logo

Microlink Recipe

Interact with instagram.com

instagram.js
const mql = require('@microlink/mql')

const instagram = (url, opts) =>
  mql(url, {
    data: {
      avatar: {
        selector: 'meta[property="og:image"]',
        attr: 'content',
        type: 'image',
      },
    },
    ...opts,
  })

const result = await instagram('https://www.instagram.com/willsmith')
console.log(result)