The SEO Tags API allows you to generate and resolve SEO tags for sites based on site and page specific metadata. The API takes a page URL and specific content information, and then returns a complete set of SEO tags, such as meta tags, Open Graph data, and structured data (JSON-LD). These SEO tags are generated dynamically in real-time when a site visitor accesses a page. This enables you to personalize SEO content based on user preferences or update product availability and pricing information as you go.
With the SEO Tags API, you can:
- Generate optimized SEO tags for Wix product items and static pages.
- Retrieve SEO tags including HTML meta tags, Open Graph data, and structured data.
Sample flow for real-time rendering:
- A site visitor navigates to
https://store.com/products/air-jordan-1
.
- Your server calls the SEO Tags API with the product slug
air-jordan-1
.
- The API returns product-specific SEO tags (price, availability, reviews).
- Your server injects the tags into the HTML file and serves it to the visitor.
It's important to note the following points before starting to code:
- The API requires full canonical URLs for proper context extraction and SEO tag generation.
- Metadata: Raw information about a web page or content (such as title text, description text, product price, or availability status) that serves as input for generating SEO tags.
- SEO tags: Collection of HTML meta tags, Open Graph data, and structured data (JSON-LD) that enhance search engine understanding of web page content.
- Meta tags: HTML elements that provide metadata about a web page, including title, description, and other SEO-relevant information.
- Canonical URL: Preferred URL for a web page that helps search engines understand the authoritative version of content.
- Structured data: Machine-readable data format that helps search engines understand the content and context of web pages.