Fetch metadata of a bookmark url
post
/api/bookmark/metadataReturns link metadata for the given URL.
- name:
og:site_name>og:title>twitter:title>title - description
ob:description>twitter:description>description - icon:
apple-touch-icon>alternate icon>icon>favicon.ico
Request
Security:
Bearer AuthProvide your bearer token in the Authorization header when making requests to protected resources.Example:
Authorization: Bearer <token>Body application/json
urlstring
The Link URL.
Response
Schema:
application/jsoncodestring
dataIBookmarkModel[]
messagestring
IBookmarkMetaModel
ts
export interface IBookmarkMetaModel {
name: string
description: string
icon: string
}export interface IBookmarkMetaModel {
name: string
description: string
icon: string
}Body application/json
json
{
"code": "0",
"data": {
"name": "Title",
"description": "Description",
"icon": "http://www.domain.com/favicon.ico"
},
"message": "Ok"
}{
"code": "0",
"data": {
"name": "Title",
"description": "Description",
"icon": "http://www.domain.com/favicon.ico"
},
"message": "Ok"
}json
// BOOKMARK_URL_REQUIRED
{
"code": "206",
"message": "Bookmark url is required"
}// BOOKMARK_URL_REQUIRED
{
"code": "206",
"message": "Bookmark url is required"
}