# Can JavaScript generate structured data?

> Yes.

Google documents JavaScript-generated structured data and supports JSON-LD injected dynamically.

However, dynamic generation introduces additional rendering dependencies.

For rapidly changing product data such as availability and price, Google specifically warns that dynamically generated markup can make Shopping crawls less frequent or reliable.

## Sources

- [Google Search Central — Generate Structured Data With Javascript](https://developers.google.com/search/docs/appearance/structured-data/generate-structured-data-with-javascript)

## Related questions

- [How do you approach JavaScript-generated metadata?](https://www.theseocentral.com/technical-seo-faq/how-do-you-approach-javascript-generated-metadata.md)
- [How do you handle pagination on large sites?](https://www.theseocentral.com/technical-seo-faq/how-do-you-handle-pagination-on-large-sites.md)
- [How does hreflang work?](https://www.theseocentral.com/technical-seo-faq/how-does-hreflang-work.md)
- [How does structured data fit into Technical SEO?](https://www.theseocentral.com/technical-seo-faq/how-does-structured-data-fit-into-technical-seo.md)
- [How should infinite scroll be implemented for SEO?](https://www.theseocentral.com/technical-seo-faq/how-should-infinite-scroll-be-implemented-for-seo.md)
- [How should you structure international websites?](https://www.theseocentral.com/technical-seo-faq/how-should-you-structure-international-websites.md)
- [How would you audit structured data at scale?](https://www.theseocentral.com/technical-seo-faq/how-would-you-audit-structured-data-at-scale.md)
- [What are common hreflang implementation failures?](https://www.theseocentral.com/technical-seo-faq/what-are-common-hreflang-implementation-failures.md)
- [What is the difference between structured data eligibility and ranking?](https://www.theseocentral.com/technical-seo-faq/what-is-the-difference-between-structured-data-eligibility-and-ranking.md)

---

Answered by Abhinav Krishna (https://www.theseocentral.com/author/abhinav-krishna)
Source: https://www.theseocentral.com/technical-seo-faq/can-javascript-generate-structured-data
