Skip to Content
APIGeineAPIGeine

Create a link preview

Fetches a public webpage and returns normalized preview metadata: title, description, icon, preview image, page type and related fields. `title` is required for a successful response; when no title can be found, the API returns `EXTRACTION_FAILED` with whatever was found in `error.details.partial`. `description` is `null` when the page publishes no description metadata.

Subscribe on RapidAPI
POST
/link-preview/v1/preview

Fetches a public webpage and returns normalized preview metadata: title, description, icon, preview image, page type and related fields. title is required for a successful response; when no title can be found, the API returns EXTRACTION_FAILED with whatever was found in error.details.partial. description is null when the page publishes no description metadata.

Request Body

application/json
  1. body
url*string

Public http(s) URL of the page. A missing scheme defaults to https.

Length1 <= length <= 2048
options?
Default
{  "renderJs": "auto",  "includeImages": true,  "includeArticle": true,  "includeStructuredData": false,  "cache": true,  "allowPartial": true}

Response Body

Preview extracted.

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'https://link-preview-url-unfurling-open-graph-metadata4.p.rapidapi.com/link-preview/v1/preview' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://example.com/blog/hello-world"}'
Example Response
{  "success": true,  "data": {    "url": "string",    "resolvedUrl": "string",    "canonicalUrl": "string",    "domain": "string",    "siteName": "string",    "title": "string",    "description": "string",    "icon": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "alt": "string",      "source": "string"    },    "type": "website",    "language": "string",    "themeColor": "string",    "keywords": [      "string"    ],    "author": "string",    "publishedAt": "string",    "modifiedAt": "string",    "article": {      "section": "string",      "tags": [        "string"      ],      "wordCount": 0    },    "product": {      "productName": "string",      "price": "string",      "currency": "string",      "availability": "string",      "brand": "string",      "sku": "string",      "rating": 0,      "reviewCount": 0    },    "video": {      "videoUrl": "string",      "videoType": "string",      "duration": "string",      "thumbnailUrl": "string",      "uploadDate": "string"    },    "metadata": {      "ogType": "string",      "schemaType": "string",      "twitterCard": "string",      "generator": "string",      "robots": "string",      "viewport": "string",      "favicon": "string",      "feedUrl": "string",      "oEmbedUrl": "string",      "manifestUrl": "string"    },    "structuredData": {      "openGraph": {        "property1": [          "string"        ],        "property2": [          "string"        ]      },      "twitter": {        "property1": [          "string"        ],        "property2": [          "string"        ]      },      "jsonLd": [        null      ]    },    "partial": true,    "partialReason": "blocked",    "fetch": {      "method": "http",      "browserFallbackUsed": true,      "statusCode": 0,      "redirects": 0,      "truncated": true,      "httpStatusCode": 0,      "fallbackReason": "http_403",      "browserError": "string",      "cacheStatus": "hit",      "cachedAt": "string"    }  }}