Base URL: https://linkpeek-api.linkpeek.workers.dev
All preview endpoints require an API key. Pass it via any of:
?key=YOUR_KEYX-API-Key: YOUR_KEYAuthorization: Bearer YOUR_KEYCreate a free API key.
Request body (JSON):
{ "email": "you@example.com" }
Response:
{
"api_key": "lp_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345",
"plan": "free",
"daily_limit": 100,
"message": "Save your API key - it cannot be recovered."
}
Extract metadata from a URL.
| Parameter | Type | Description |
|---|---|---|
| url | string (required) | The URL to preview |
| key | string (required) | Your API key |
Response:
{
"url": "https://github.com",
"title": "GitHub: Let's build from here",
"description": "GitHub is where over 100 million developers...",
"image": "https://github.githubassets.com/assets/social.png",
"site_name": "GitHub",
"favicon": "https://github.githubassets.com/favicons/favicon.svg",
"type": "website"
}
Response headers:
| Header | Description |
|---|---|
| X-Cache | HIT or MISS |
| X-RateLimit-Limit | Your daily request limit |
| X-RateLimit-Remaining | Requests remaining today |
| X-RateLimit-Reset | When the limit resets (ISO 8601) |
Generate an SVG preview card from a URL.
| Parameter | Type | Description |
|---|---|---|
| url | string (required) | The URL to preview |
| key | string (required) | Your API key |
Response: SVG image (Content-Type: image/svg+xml)
Embed directly:
<img src="https://linkpeek-api.linkpeek.workers.dev/v1/preview/image?url=https://github.com&key=YOUR_KEY" />
Check your usage statistics.
{
"plan": "free",
"daily_limit": 100,
"today": 42,
"total": 1337
}
Health check endpoint. No authentication required.
| Status | Meaning |
|---|---|
| 400 | Bad request (missing or invalid parameters) |
| 401 | API key not provided |
| 403 | Invalid API key |
| 429 | Rate limit exceeded |
| 502 | Failed to fetch target URL |
| Plan | Requests/day | Price |
|---|---|---|
| Free | 100 | $0 |
| Pro | 5,000 | $9/mo |
| Business | 50,000 | $29/mo |
LinkPeek API v1.1 · Powered by Cloudflare Workers