Read cached metadata for a standalone Note link
GET
/api/v1/notes/link-previews
const url = 'https://example.com/api/v1/notes/link-previews?url=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/notes/link-previews?url=example' \ --header 'Authorization: Bearer <token>'Route: /api/v1/notes/link-previews. Inputs: url. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”url
required
string
Public HTTP(S) URL; private networks are rejected during every fetch and redirect.
Responses
Section titled “Responses”Media typeapplication/json
Describe a pending, ready, disabled, or silently unavailable preview (#1151).
object
Examplegenerated
{ "preview": { "description": "example", "favicon_url": "example", "image_url": "example", "site_name": "example", "title": "example" }, "stale": true, "state": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}