curl "https://okl.ink/api/og?url=https%3A%2F%2Fgithub.com%2Fhebuildapps"
{
"image": "https://avatars.githubusercontent.com/u/12345678"
}
Utilities
OG Image Resolver
Server-side utility endpoint to parse OpenGraph image metadata from external URLs.
GET
/
api
/
og
curl "https://okl.ink/api/og?url=https%3A%2F%2Fgithub.com%2Fhebuildapps"
{
"image": "https://avatars.githubusercontent.com/u/12345678"
}
OG Image Resolver
Fetches the target URL from server side, parses<meta property="og:image"> and twitter:image tags, resolves relative image paths, and returns the highest quality preview banner image.
Query Parameters
string
required
URL-encoded destination link.
Response
string | null
Absolute URL to the extracted preview image, or
null if none found.curl "https://okl.ink/api/og?url=https%3A%2F%2Fgithub.com%2Fhebuildapps"
{
"image": "https://avatars.githubusercontent.com/u/12345678"
}