Skip to Content
APIGeineAPIGeine

Create link previews for several URLs

Preview up to 10 URLs in one request, with the same rules and options as a single preview. A failed URL never fails the batch: each entry in `results` has either `data` or `error`, in input order. Duplicate URLs are processed once. Page rendering is limited per batch; beyond that limit the standard result is returned.

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

Preview up to 10 URLs in one request, with the same rules and options as a single preview. A failed URL never fails the batch: each entry in results has either data or error, in input order. Duplicate URLs are processed once. Page rendering is limited per batch; beyond that limit the standard result is returned.

Request Body

application/json
  1. body
urls*array<>

URLs to preview, up to 10 per request.

Items1 <= items <= 25
options?
Default
{  "renderJs": "auto",  "includeImages": true,  "includeArticle": true,  "includeStructuredData": false,  "cache": true,  "allowPartial": true}

Response Body

Batch processed. Individual URLs may still have failed; check each result's success.

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/batch' \  -H 'Content-Type: application/json' \  -d '{  "urls": [    "https://example.com",    "https://github.com",    "https://news.ycombinator.com"  ]}'
Example Response
{  "success": true,  "data": {    "results": [      {        "url": "string",        "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"          }        }      }    ],    "summary": {      "total": 0,      "succeeded": 0,      "failed": 0    }  }}