Skip to main content

Scenario

Report on ranking changes — which keywords improved, which dropped, and what to do. Pull current positions from domain_organic, compare against a stored baseline, then send change data to Mave for an executive-ready narrative report.

Architecture

Code

Example Output

Error Handling

On first run, all keywords appear as “new.” Run twice with a gap (daily/weekly) for meaningful change data.
Match the database parameter to your target market. US rankings won’t match UK Search Console data.
Delete the baseline file and rebuild after domain migrations, URL restructures, or redirect changes.