Microlink x og:image

node v18.11.0
version: 1.0.0
endpointsharetweet
const mql = require('@microlink/mql') const { data } = await mql('https://kikobeats.com', { data: { ogImage: { selector: [ 'meta[property="og:image:secure_url"]', 'meta[property="og:image:url"]', 'meta[property="og:image"]', ], attr: 'content', type: 'image', } } }) console.log( `The og:image is '${data.ogImage.url}' (${data.ogImage.size_pretty})` )
Loading…

no comments

    sign in to comment