This endpoint is useful for extracting metadata from a given URL. It retrieves information such as the page title, description, keywords, and various Open Graph data.
Endpoint
POST https://node.nodetrigger.com/extract-meta
Request
JSON Body Parameters
url
: (string, required) The URL of the webpage from which metadata will be extracted.
Example Request
{
"url": "https://example.com"
}
Response
The response will be a JSON object containing the extracted metadata. The possible fields are:
title
: (string) The title of the webpage.description
: (string) The description of the webpage.keywords
: (string) The keywords of the webpage.canonical
: (string) The canonical link of the webpage.ogTitle
: (string) The Open Graph title of the webpage.ogUrl
: (string) The Open Graph URL of the webpage.ogDescription
: (string) The Open Graph description of the webpage.ogImage
: (string) The Open Graph image of the webpage.viewport
: (string) The viewport settings of the webpage.schemaMarkup
: (string) The JSON-LD schema markup of the webpage.robots
: (string) The robots meta tag content of the webpage.fbVerification
: (string) The Facebook domain verification meta tag content.googleVerification
: (string) The Google site verification meta tag content.fbPixelId
: (string) The Facebook Pixel ID extracted from the webpage.
Example Response
{
"title": "Example Domain",
"description": "This domain is for use in illustrative examples in documents.",
"keywords": "example, domain, illustrative",
"canonical": "https://example.com",
"ogTitle": "Example Domain",
"ogUrl": "https://example.com",
"ogDescription": "This domain is for use in illustrative examples in documents.",
"ogImage": "https://example.com/image.jpg",
"viewport": "width=device-width, initial-scale=1",
"schemaMarkup": "{ \"@context\": \"http://schema.org\", \"@type\": \"WebSite\", \"url\": \"https://example.com\" }",
"robots": "index,follow",
"fbVerification": "fb-verification-code",
"googleVerification": "google-verification-code",
"fbPixelId": "1234567890"
}
How to Make a Call
To make a call to this endpoint, send a POST request to https://node.nodetrigger.com/extract-meta
with the required JSON body parameter.
Example Call using cURL
curl -X POST https://node.nodetrigger.com/extract-meta \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
Example Call using JavaScript (fetch)
fetch('https://node.nodetrigger.com/extract-meta', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ url: 'https://example.com' })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));