The URLPreview API allows you to retrieve clean, structured metadata for any public URL, including title, description, images, and favicon.
GET https://app.urlpreview.com/api/v1/preview
You can authenticate in one of two ways:
?url=https://example.com&apiKey=YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
You can find your API key in your dashboard after signing up.
url
(required): The full URL you want to preview.apiKey
(optional): Only required if not using the
Authorization header.
curl "https://app.urlpreview.com/api/v1/preview?url=https://example.com&apiKey=YOUR_API_KEY"
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://app.urlpreview.com/api/v1/preview?url=https://example.com"
{
"url": "https://example.com",
"title": "Example Domain",
"description": "This domain is for use in illustrative examples in documents.",
"image": "https://example.com/og-image.jpg",
"favicon": "https://example.com/favicon.ico"
}
Your plan determines your monthly quota:
On error, the API responds with a JSON object containing an
error
field.
{
"error": "Invalid or unreachable URL"
}
For help, contact us at support@urlpreview.com.