PLAYGROUND
Test openlink
Enter any URL to extract metadata. See what openlink returns in real-time.
Try:
METADATA FIELDS
What openlink extracts
title
og:title, twitter:title, <title>
description
og:description, meta description
image
og:image, twitter:image
favicon
link[rel=icon], /favicon.ico
siteName
og:site_name
url
og:url, canonical
type
og:type
author
article:author, meta author
publishedTime
article:published_time
themeColor
meta theme-color
twitterCard
twitter:card
locale
og:locale
video
og:video
audio
og:audio
keywords
meta keywords
API USAGE
Use in your code
npm package
import { preview } from "openlink"
const data = await preview("github.com")
console.log(data.title)Hosted API
const url = "openlink.sh/api/preview"
const res = await fetch(url + "?url=github.com")
const { data } = await res.json()