bruno/memori-dashboard/Link preview.bru

45 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2025-03-26 16:44:26 +01:00
meta {
name: Link preview
type: http
seq: 1
}
get {
url: {{host}}/api/linkpreview/:url
body: none
auth: inherit
}
params:path {
url: https%3A%2F%2Fmemori.ai
}
docs {
# Get link preview info
Uses [nzambello/link-previewer](https://github.com/nzambello/link-previewer).
Example:
```sh
http http://localhost:3000/api/linkpreview/https%3A%2F%2Frawmaterial.it%2Fen
```
Returns:
```json
{
"description": "RawMaterial is an innovative and emerging company at the forefront of providing sustainable web solutions and environmental consulting services for a sustainable, inclusive, equitable and community future.",
"favicon": "https://rawmaterial.it/favicon.ico",
"image": "https://rawmaterial.it/en/@@images/33b46076-8aca-430e-bdf5-4c6154d4a3a7.png",
"imageHeight": 295,
"imageWidth": 800,
"images": [
"https://rawmaterial.it/it/risorse/plone-logo.svg/@@images/image/icon",
"https://rawmaterial.it/it/risorse/rawmaterial-it.png/@@images/image/icon",
"https://rawmaterial.it/it/risorse/logo_treedom_friend_green.png/@@images/image/icon"
],
"title": "RawMaterial",
"videos": []
}
```
}