Overview
This endpoint is designed to extract meta data from a given webpage URL. When you provide the endpoint with a URL, it retrieves and returns various meta tags and other related information from that webpage. This can be useful for understanding a webpage’s SEO attributes, social media preview information, and other page descriptions.
Endpoint Information
- Method: POST
- Endpoint URL:
https://node.nodetrigger.com/api/extract-meta
- Content Type: application/json
Example Requests
To use this endpoint, you need to send a JSON object containing the URL of the page you want to analyze. For example:
{
"url": "https://www.example.com"
}
The response will include the following information extracted from the webpage:
- title: The content of the <title> tag.
- description: The content of the meta name=”description”.
- keywords: The content of the meta name=”keywords”.
- canonical: The link[rel=”canonical”] href attribute.
- ogTitle: The content of the meta property=”og:title”.
- ogUrl: The content of the meta property=”og:url”.
- ogDescription: The content of the meta property=”og:description”.
- ogImage: The content of the meta property=”og:image”.
- viewport: The content of the meta name=”viewport”.
- schemaMarkup: The content of the script[type=”application/ld+json”].
- robots: The content of the meta name=”robots”.
Notes
Here are a few notes to ensure successful usage of the endpoint:
- Ensure that the URL provided is valid and publicly accessible; otherwise, the meta data cannot be retrieved.
- The URL must be included in the body of the POST request as a JSON object with the key “url”.
- In case of any errors, the response will include an error message to help identify the issue.
“`