Wood Between StudioAPIs & Actors

Home / APIs / LinkPeek

LinkPeek Link Preview & URL Metadata

Turn any URL into a rich preview: Open Graph, Twitter Card, favicon, oEmbed (YouTube, Vimeo, Spotify, X) and feeds.

Open on RapidAPI

Endpoints

PathWhat it does
/previewPreview one URL
/bulkPreview up to 10 URLs

Examples

Replace YOUR_KEY with your RapidAPI key. Host: linkpeek-link-preview-url-metadata.p.rapidapi.com

curl

curl --request GET \
  --url 'https://linkpeek-link-preview-url-metadata.p.rapidapi.com/preview?url=https://github.com' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: linkpeek-link-preview-url-metadata.p.rapidapi.com'

JavaScript

const res = await fetch('https://linkpeek-link-preview-url-metadata.p.rapidapi.com/preview?url=https://github.com', {
  headers: {
    'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
    'X-RapidAPI-Host': 'linkpeek-link-preview-url-metadata.p.rapidapi.com'
  }
});
const data = await res.json();

Python

import os, requests
r = requests.get(
    'https://linkpeek-link-preview-url-metadata.p.rapidapi.com/preview?url=https://github.com',
    headers={
        'X-RapidAPI-Key': os.environ['RAPIDAPI_KEY'],
        'X-RapidAPI-Host': 'linkpeek-link-preview-url-metadata.p.rapidapi.com',
    },
)
print(r.json())

Notes

Nothing you send is stored by our code. Calls go through RapidAPI, which bills according to the plan you pick. The origin runs on Cloudflare Workers.