A serverless project that can fetch the raw open graph tags of a given URL.
- open-graph-scraper
- cheerio
You can install following libraries and other dev dependencies using below command.
npm installRun the serverless project locally.
serverless offlineOR
sls offlineIt will generate a POST URL for you. Something like this.
http://localhost:3000/dev/fetchMetadata You can use below request to test the API.
{
url: "https://npmjs.com/package/str2bin"
}Output
{
title: 'str2bin',
description: 'This will convert string to binary code and vice-versa.',
images:[
'https://static.npmjs.com/338e4905a2684ca96e08c7780fc68412.png'
]
}Found a bug, please create an issue
- Star our GitHub repo 🌟
- Create pull requests, submit bugs, suggest new features or documentation updates 🔧
We're always happy to receive your feedback!