Six weeks automating SEO ops for a launch: the launchd + API pipeline that replaced manual work
After six weeks, the launch pipeline cut daily SEO operations from roughly 40 minutes to 7 minutes. We processed 214 publish or update events, reduced duplicate submissions by 91%, and moved median time to the first Goog
After six weeks, the launch pipeline cut daily SEO operations from roughly 40 minutes to 7 minutes. We processed 214 publish or update events, reduced duplicate submissions by 91%, and moved median time to the first Google Search Console impression from 41 hours to 18. The automation did not βforceβ indexing, but it removed the waiting, copying, and spreadsheet work that made launch monitoring unreliable.
The project site was the Vietnam Arrival Guide, with background and sourcing details on its about page. The useful engineering lesson was that publishing, notification, resubmission, and measurement needed to be one repeatable system.
The pipeline
The flow was deliberately boring:
publish event
-> canonical URL queue
-> launchd runner
-> IndexNow notification
-> Google sitemap resubmission
-> daily Search Console query
-> Markdown report
A small Python service stored URLs and states in SQLite. Each row contained the canonical URL, content hash, last submitted timestamp, response code, and retry count. Hashing mattered: editing a pageβs navigation menu should not submit the same URL five times.
launchd ran the worker every 15 minutes through a plist with StartInterval=900. The worker acquired a lock file, drained at most 25 URLs, and exited cleanly. That made failures visible in logs without leaving a long-running daemon to supervise.
What each API actually did
IndexNow handled changed URLs for participating search engines. We sent one canonical URL per request, recorded the response, and retried transient failures with exponential backoff. Of 201 unique canonical URLs, 194 were accepted on the first attempt and seven succeeded after retry. Acceptance only means the notification was received; it is not an indexing guarantee. The IndexNow documentation is explicit about the submission endpoint, but it does not promise ranking or crawl timing.
Googleβs Indexing API required a scope check. Its documentation limits the API to pages containing JobPosting or livestreaming BroadcastEvent data (Googleβs Indexing API guide). Our travel guides did not qualify, so the launch produced zero valid Indexing API notifications. That was a valuable result: removing an ineligible integration prevented us from mistaking API calls for SEO progress.
For Google, the reliable mechanism was the sitemap. The worker submitted the sitemap once per night using the Search Console APIβs PUT endpoint, which requires the webmaster authorization scope (sitemap submission reference). We made six submissions during the six-week window, one after each batch of structural changes, rather than resubmitting after every copy edit.
The daily report
At 06:10 local time, a second launchd job queried the previous day and the trailing seven days. The report grouped clicks, impressions, CTR, and average position by page, query, country, and device. Search Console data can arrive late, so each report marked the newest day as provisional. The query API supports those dimensions and requires a date range of at least one day (Search Analytics reference).
The report also listed queue failures: redirects, non-200 responses, missing canonicals, and URLs removed from the sitemap. Three pages failed validation during the launch; all three were fixed by correcting canonical tags, not by sending more notifications.
The biggest improvement was operational. Every submission had an audit trail, and every morning started with the same numbers. That made it easier to decide whether a page needed technical work or simply needed more time.
The same process can support a small travel site such as the Noi Bai airport guide: publish, validate, notify where appropriate, resubmit the sitemap, then measure. If you are landing in Hanoi and want an agent to meet you, the booking page is the low-pressure next step; payment is made to your agent on the day.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.