GraphQL
The GraphQL API is a great way to integrate Advanced SEO with your headless front end.
Enable GraphQL
Enable GraphQL in the addon's config:
SEO Fields
The Advance SEO data of your entries and terms is separated into three distinct fields:
The easiest way to get the data is to use the seo
field on Statamic's existing entries
, entry
, terms
, and term
queries:
Available Queries
SEO Meta
The seoMeta
query is an alternative to using the seo
field on the entries
, entry
, terms
, and term
queries.
Get the computed title of an entry:
Get the computed title of the brands
term of the tags
taxonomy in the german
site:
SEO Defaults
Use the seoDefaults
query to get the default data. The query consists of three fields:
Site Defaults
Get the site_name
from the general
site defaults:
Get the data from the german
site:
Collection Defaults
Get the title
from the pages
collection defaults:
Get the data from the german
site:
Taxonomy Defaults
Get the title
from the tags
taxonomy defaults:
Get the data from the german
site:
SEO Sitemaps
Use the seoSitemaps
query to get the data of your collection, taxonomy, and custom sitemaps. The query consists of three fields sharing the same structure:
Get the loc
of all collection, taxonomy, and custom sitemaps:
Last updated