X means twitter and OG means opengraph.
XOGAPI is a REST-API that you can use to extract opengraph and twitter metadata of a website by providing the url as input. For example -
fetch('https://xogapi.ddebajyati.workers.dev?url=https://debajyati.com')
.then(resp => resp.json())
.then(data => console.log(data))the above code will return the json response -
{
"openGraph": {
"title": "Debajyati Dey - Web Developer and Freelance Technical Writer",
"description": "Hi I'm Debajyati Dey, a skilled Web Developer creating dynamic web solutions and a Freelance Technical Writer delivering precise, user-friendly documentation. Let's build something great!",
"image": "https://debajyati.com/og-image.png",
"url": "https://debajyati.com"
},
"xTwitter": {
"title": "Debajyati Dey - Web Developer and Freelance Technical Writer",
"description": "Hi I'm Debajyati Dey, a skilled Web Developer creating dynamic web solutions and a Freelance Technical Writer delivering precise, user-friendly documentation. Let's build something great!",
"image": "https://debajyati.com/twitter-card-enhanced.png",
"url": "https://debajyati.com"
}
}