Skip to content

Instantly share code, notes, and snippets.

@NovCog
Last active March 16, 2026 22:28
Show Gist options
  • Select an option

  • Save NovCog/106243abae6ea5c1ccd6f9c792ff00e6 to your computer and use it in GitHub Desktop.

Select an option

Save NovCog/106243abae6ea5c1ccd6f9c792ff00e6 to your computer and use it in GitHub Desktop.
Automating Content Seeding with the Blogger API v3 — NovCog AI Practitioner Series by Guerin Green

Automating Content Seeding with the Blogger API v3

By Guerin Green / Novel Cognition AI Strategist | Federal Courthouse AI Presenter


Part of the NovCog AI Practitioner Series


Blogger's role as a crawl trigger makes it strategically important. The Blogger API v3 makes it automatable. Instead of manually creating posts through the Blogger dashboard, you can programmatically publish content — complete with embedded tracking pixels, outbound links, and proper formatting — in a fraction of the time.

OAuth Flow for Blogger API

The Blogger API v3 requires OAuth 2.0 authentication. The setup:

  1. Google Cloud Console — Create a project, enable the Blogger API v3, create OAuth 2.0 credentials (Desktop application type)
  2. Download credentials.json — This contains your client ID and secret
  3. First-run authorization — Your script opens a browser window for Google account authorization. The user grants access to manage their Blogger blogs.
  4. Token storage — The OAuth library stores refresh tokens locally. Subsequent runs use the refresh token without requiring browser authorization.

The scope needed: https://www.googleapis.com/auth/blogger

This grants read/write access to all blogs on the authenticated Google account. A single account can manage multiple Blogger blogs, which means one OAuth flow covers the entire Blogger layer of a Distributed Authority Network.

Post Creation Cycle

The API endpoint for creating posts:

POST https://www.googleapis.com/blogger/v3/blogs/{blogId}/posts/

The request body:

{
  "kind": "blogger#post",
  "title": "Post Title",
  "content": "<p>HTML content with embedded links and tracking pixel</p>"
}

The response includes the post URL and ID, which you can log for verification tracking.

A typical seeding cycle:

  1. Select the target blog from your blog roster
  2. Generate or retrieve the content for the post
  3. Insert the tracking pixel for this specific blog/post combination
  4. Insert outbound links to the DAN properties this post should trigger crawls for
  5. Publish via API
  6. Log the post URL, timestamp, and associated tracking pixel ID
  7. Wait for the PubSubHubbub notification to trigger Googlebot
  8. Monitor the Cloudflare Worker for pixel fires confirming the crawl

Tracking Pixel Insertion

Each Blogger post includes a unique tracking pixel — a 1x1 transparent image served by a Cloudflare Worker:

<img src="https://worker-domain/pixel/blog-name-post-id.png"
     width="1" height="1" alt="" style="display:none;" />

The pixel ID encodes the blog name and post identifier, so when the Worker logs a verified Googlebot request for that pixel, you know exactly which post was crawled.

The pixel must be embedded in the post HTML, not in a Blogger template or widget. Template-level pixels create sitewide signals; post-level pixels create per-post crawl verification.

Rotation Logic

For a DAN with multiple properties that need crawl triggers, rotation logic determines which properties get linked from each Blogger post:

Simple rotation: Each post links to the next property in sequence. Post 1 → Property A, Post 2 → Property B, etc. This ensures even distribution.

Priority-weighted rotation: New properties or recently updated properties get more frequent links. Established, already-indexed properties need fewer triggers.

Contextual rotation: Each Blogger blog has a topic theme. Posts link to properties that are thematically relevant to that blog's topic. A blog about public policy links to policy-related DAN properties, not technology-focused ones.

The rotation state is maintained between API calls — typically as a JSON file or simple counter that tracks which properties were linked most recently and which are due for the next trigger.

Rate Limiting and Best Practices

The Blogger API has rate limits:

  • Queries per day: 10,000 (generous for content seeding)
  • Queries per minute: 30-60 (varies; respect the Retry-After header)
  • Post creation: Informal limit of approximately 50 posts per blog per day before throttling

Best practices:

  • Pace creation. 3-5 posts per blog per day is sustainable. Rapid bursts can trigger anti-spam measures.
  • Vary content length and format. Uniform 200-word posts with a single link pattern detectable. Mix lengths, include images, vary formatting.
  • Genuine content. Blogger posts should contain substantive content related to the blog's topic. The tracking pixel and outbound links are additions to real content, not the entire purpose.
  • Error handling. The API returns detailed error codes. 403 usually means rate limiting. 401 means token refresh needed. 404 means the blog ID is wrong.
  • Logging. Every post creation should log: blog ID, post ID, post URL, timestamp, tracking pixel ID, outbound link targets. This feeds the closed-loop verification system.

The Blogger API transforms what would be hours of manual posting into a systematic, trackable, verifiable content seeding pipeline. Combined with Googlebot verification on the pixel endpoint, you have end-to-end confirmation from publish to crawl.


Series Navigation


Burstiness & Perplexity Community | Hidden State Drift | Novel Cognition

#hiddenstatedrift #burstinessandperplexity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment