Search.../

structuredData

Gets the page's structured data.

Description

The structured data on your page helps search engines understand more about your page and your business so they can display a richer snippet of your pages in search results.

Set the structured data with a list of structured data objects in the JSON-LD format as defined by schema.org.

Note:

You should always invoke the wixSeo.structuredData getter outside of the onReady() event handler to ensure receiving the proper response.

Type:

Array<Object>Read Only

Related Content:

Was this helpful?

Get a page's structured data

Code Example

Copy Code
1import wixSeo from 'wix-seo';
2
3// ...
4
5let structuredData = wixSeo.structuredData;
6
7/* structuredData:
8 *
9 * [
10 * {
11 * "@context": "http://schema.org",
12 * "@type": "Organization",
13 * "name": "My Organization Name",
14 * "url": "https://www.myorgdomain.com"
15 * },
16 * {
17 * "@context": "http://schema.org",
18 * "@type": "Person",
19 * "email": "mailto:john.doe@somedomain.com",
20 * "jobTitle": "Professor",
21 * "name": "John Doe",
22 * "telephone": "(555) 555-555"
23 * }
24 * ]
25 */