Unfurlkit API Reference
Unfurlkit has one public endpoint: an image URL. You put it in og:image and social crawlers fetch it. New here? Start with the Quickstart.
Endpoint
GET https://unfurlkit.com/v1/{template}.png?{params}
- Output: 1200×630 PNG.
- Templates:
basic,blog,product,changelog,repo,eventandpodcast. Each one's params are on its template page. Any other template name returns404. - Methods:
GETandHEAD.HEADreturns the status and headers aGETwould (includingETag, cache headers,X-Unfurlkit-*and304for a matchingIf-None-Match) with no body and noContent-Length. For an image that's already cached (any URL that has been fetched before),HEADis free: it never renders or counts. For a URL that has never been fetched, our CDN fills its cache by rendering the image once, and that render counts once, exactly as the firstGETwould have; laterGETs andHEADs of that URL are cache hits and don't count. SoHEADnever causes more than one render per unique URL.
basic parameters
| Param | Type | Required | Limits and values | Default |
|---|---|---|---|---|
title |
string | yes | Non-empty. Truncated to 120 characters. | — |
subtitle |
string | no | Truncated to 160 characters. | none |
theme |
enum | no | dark | light |
dark |
accent |
hex color | no | 6-digit hex without # |
7c3aed |
v |
string | no | Version or cache-buster. Any string. | none |
k |
string | Pro | Public key: pk_ followed by 8–64 of A–Z a–z 0–9 _ - |
none |
s |
string | Pro | Signature (see Signing) | none |
font |
enum | no (Pro) | inter, roboto, playfair-display or jetbrains-mono. Applied on signed Pro URLs. |
none |
logo |
https URL, saved or none |
no (Pro) | https, ≤ 2048 chars; a PNG, JPEG, GIF, WebP or SVG up to 2 MB and 4096 px a side (SVGs up to 256 KB, with no scripts, embedded images or links to other files). saved uses the logo you uploaded for this key on your account page, which is also the default when logo is left out; none turns it off. Applied on signed Pro URLs. |
your saved logo, if any |
Validation. Only the params above are accepted. Unknown keys, including another template's params, are rejected. Free-text values are never rejected for length: they're truncated when rendered.
Ignored params. font and logo apply only to signed Pro URLs. On Free and unsigned URLs they're validated and then ignored (never an error): the image renders as if they were absent, and the response includes X-Unfurlkit-Ignored listing the ones present (for example font,logo). If a logo can't be fetched, the image renders without it. AVIF logos, and SVGs that fail the safety checks, are left out and named in X-Unfurlkit-Ignored (for example logo:unsupported_format_avif or logo:svg_external_ref).
Saved logo. On your account page you can upload a logo for each key (PNG, JPEG, GIF, WebP or SVG, up to 512 KB), replace it, or remove it. Signed Pro images for that key then show it whenever the URL has no logo (or logo=saved), so you don't need to host the file. Changes show up on already-published images within a few minutes.
Right-to-left scripts such as Arabic and Hebrew aren't supported yet at launch.
Responses
| Status | When | Body | Caching |
|---|---|---|---|
200 |
Rendered (or served from cache) | PNG | See Caching |
304 |
If-None-Match matches the ETag |
none | Same headers as 200. Not counted as a render. |
400 |
title missing or empty |
Error PNG ("400 · missing title"), header X-Unfurlkit-Error: missing_param:title |
no-store |
400 |
Any other invalid param (unknown key, bad theme, non-hex accent, malformed k/s, bad font/logo) |
Plain text: invalid param: <name> |
no-store |
404 |
Unknown template (including blog/product before launch) |
unknown template |
no-store |
429 |
Too many unsigned renders from one IP (see Rate limits) | Fallback PNG. Headers Retry-After (seconds until the per-minute window resets, 1–60), X-RateLimit-Limit, X-RateLimit-Remaining (0), X-RateLimit-Reset (epoch seconds) and X-Unfurlkit-Error: rate_limited. |
no-store |
A bad signature is still a 200 image, never a 403. An unsigned request, an unknown or revoked key, or a signature that doesn't verify gets the sign-up placeholder (X-Unfurlkit-Error: account_required), not a watermarked unsigned render. A signature that still verifies against a rotated-out secret (stale) and a failed key lookup (error) keep the watermarked render. The response includes an X-Unfurlkit-Signature header:
| Value | Meaning |
|---|---|
stale |
Known, active key, but s is wrong or missing (for example, signed with a secret you've since rotated) |
invalid |
Unknown or revoked key, or s without k |
error |
Key lookup failed on our side. Cached only for 60 seconds. |
Pro renders are exempt from the global capacity limit.
Caching
Each unique URL is rendered once and then served from the CDN.
Cache-Control: public, max-age=3600for browsers and crawlers.- The CDN keeps the image for about a year, shared across all edge locations.
- The cache key is the full query string. Any change, including
v, is a new image. ETagis based on the inputs, so a matchingIf-None-Matchgets304without rendering.- Over-limit images on signed Free keys are cached for 24 hours (see Limits).
The v parameter
Use v to force a fresh image without changing the text, for example v=2 or your page's last-updated date. A new v is a new URL, so it's a new image and counts as one render. Social platforms cache previews separately, so re-scrape after changes (see OG image not showing).
Signing
Pro URLs carry your public key k and a signature s. Sign on your server or in your build. Never in browser code.
- Take every query param except
s, includingkandv. - Sort by key in UTF-16 code-unit order, breaking ties by value.
- RFC 3986-encode each key and value, and join them as
key=valuepairs with&. - Canonical string = the public path (for example
/v1/basic.png) +?+ the joined params. s= HMAC-SHA256 of the canonical string, with your secret key's UTF-8 bytes as the key. Encode it as base64url without padding and keep the first 16 characters.- Append
&s=<signature>to the URL.
Use exactly the params you signed, in the same encoding. Tested Node and Python snippets are in Signing Pro URLs.
A valid signature applies your plan (Pro: no watermark) and counts toward your account's usage.
Key rotation
- Rotating a key revokes the old secret immediately.
- URLs signed with the old secret that are already published keep rendering, but with the watermark, so your pages don't break, until you re-sign them with the new key.
- Images that are already cached may keep serving until they're purged.
- Need help? We reply within 1 business day at support@unfurlkit.com.
Request a sign-in link at /account/recover. On the manage page, choose "Rotate key and reveal new secret". The old secret stops working immediately; URLs signed with it keep rendering with the Free watermark until you re-sign them.
Render counting
- A render is counted only when a unique image is generated and wasn't already cached.
- Shares, CDN cache hits and
304responses don't count. - Re-rendering an image that was purged or expired from the cache counts.
- When you upgrade to Pro, your cached images are purged and re-rendered without the watermark. Those re-renders don't count.
Limits
| Feature | Unsigned | Signed Free key | Pro |
|---|---|---|---|
| Price | $0 | $0 | $9/mo or $90/yr |
| Renders | None: a key is required (sign-up placeholder) | 10 total | 10,000 / month |
| Watermark | — | Small "unfurlkit" | None |
| Custom fonts (Inter, Roboto, Playfair Display, JetBrains Mono) and logo | — | — | Pro |
| Resets | n/a | Never (10 renders in total) | Your billing date |
| Over the limit | 429 past the per-IP rate limit |
New images still render, as a plain basic card with the small mark (not counted). The free allowance doesn't reset. | No hard stop and no overage charge. We may contact you about your usage. |
Unused renders don't roll over. Upgrade to Pro to remove watermarks from all your images. See pricing.
Rate limits
Every image URL needs your key. Requests without a valid key get the sign-up placeholder (X-Unfurlkit-Error: account_required), not a regular unsigned render. Renders that still go out without a verified signature (the site's own same-origin examples, a signature that verifies only against a rotated-out secret, or a failed key lookup) are limited per client IP. The limit is 30 renders per minute. Over that, you get 429 with Retry-After set to the seconds until the window resets (1–60), plus X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Those unverified 200 responses carry X-RateLimit-Limit only. The 30-per-minute limit is the one you'll normally hit. Separately, our hosting network has a best-effort limit of 120 requests per minute per IP that runs in front of the cache, so it counts cached images too, and it can take about 10 seconds to kick in. It can answer 429 (or occasionally 403) before the request reaches us, without those headers. Cache hits don't count toward this limit, which is shared across all our servers. Verified signed renders aren't IP-limited. Your plan's limit applies instead: 10 renders in total on Free (never resets), 10,000 a month on Pro.
A global monthly capacity cap of 40,000 renders applies to Free renders and to unverified signatures; above it a fallback image is served. Verified Pro renders are exempt.
Related
Check any page with the Free OG Image Checker.




