This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.
A site owner picked a focus keyword for their services page and wants the page's text rewritten to rank for it. Your app runs an optimization job and presents each suggested change for approval.
Prerequisite: The page has a focus keyword set in its SEO settings, for example with the Item SEO Tags API.
To optimize a page:
pageId and its URL path in pagePath, for example /services. Keep the returned predictionId.?predictionId=<predictionId> every few seconds. While status is IN_PROGRESS, keep polling. Generation typically takes under 2 minutes.status is COMPLETED, read pageOptimization. Present metaTitle, metaDescription, h1, h2OrH3, and each entry of content as a before/after pair the owner can accept or reject.before text and replace it with after. Apply the title tag and description tag through the page's SEO settings, for example with the Item SEO Tags API.status is FAILED, call Trigger Page Optimization again to retry.Your app offers a one-click SEO boost for the homepage. The homepage represents the whole site rather than one topic, so it has its own trigger method with homepage-specific guidance.
To optimize the homepage:
pageId and / as pagePath. Keep the returned predictionId.?predictionId=<predictionId> until status is COMPLETED.?pageId=<pageId> instead. It returns the homepage's latest suggestion set even after the predictionId expired.Last updated: 9 September 2026