> ## Documentation Index
> Fetch the complete documentation index at: https://okl-ink.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OG Image Resolver

> Server-side utility endpoint to parse OpenGraph image metadata from external URLs.

# 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

<ParamField query="url" type="string" required>
  URL-encoded destination link.
</ParamField>

### Response

<ResponseField name="image" type="string | null">
  Absolute URL to the extracted preview image, or `null` if none found.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://okl.ink/api/og?url=https%3A%2F%2Fgithub.com%2Fhebuildapps"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "image": "https://avatars.githubusercontent.com/u/12345678"
  }
  ```
</ResponseExample>
