LinkPreview API

LinkPreview API

Get basic website information from any given URL. You can find out more about LinkPreview at [https://www.linkpreview.net](https://www.linkpreview.net). Get…

Data & analytics#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Get basic website information from any given URL. You can find out more about LinkPreview at https://www.linkpreview.net. Get you API key for free at https://my.linkpreview.net.

Endpoints 1

API Request

  • GETGet link preview/?q=https://google.com&key=123456Get a link preview

API details

Base URL
https://api.linkpreview.net
http://api.linkpreview.net
Authentication
An API key in the key query parameter
Operations
1 operation on 1 pathGET 1
Main resources
API Request 1
Response formats
application/json
Description format
OpenAPI 3.0.0, API version 1.0.0

How to test the LinkPreview API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the LinkPreview API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Get link preview” (GET /?q=https://google.com&key=123456), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the LinkPreview API?

Get basic website information from any given URL. You can find out more about LinkPreview at [https://www.linkpreview.net](https://www.linkpreview.net). Get… It is listed under Data & analytics and has 1 endpoint.

Who publishes the LinkPreview API?

It is listed from LinkPreview API's public API description (an OpenAPI document), not published by LinkPreview API on Swastik Codes. Anyone who controls linkpreview.net can claim the profile by adding a DNS TXT record.

What is the base URL of the LinkPreview API?

Its description lists 2 base URLs: https://api.linkpreview.net, http://api.linkpreview.net. The first is the usual one; the others are typically sandbox or regional servers.

How do I authenticate with the LinkPreview API?

With an API key in the key query parameter.

How many endpoints does the LinkPreview API have?

1 operation on 1 path (1 GET). The largest groups are API Request.

Is forking the LinkPreview API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.