Home / Articles / Blog

Programmatic SEO: How to Do It Properly Without Getting Flagged as Spam

Programmatic SEO: How to Do It Properly Without Getting Flagged as Spam

A 24-point programmatic SEO checklist for builders: find the pattern, check the results page, pick data only you have, build pages from rows, gate quality, then set up Search Console, sitemaps and indexing the right way.

Shrey Vijayvargiya

Programmatic SEO: How to Do It Properly Without Getting Flagged as Spam

Primary keyword: programmatic SEO Long-tail: how to do programmatic SEO, programmatic SEO with AI, programmatic SEO examples, programmatic SEO tools, programmatic SEO and Google spam policy

Google limits, tool prices and policy details were checked on 4 December 2026 against Google's own documentation and each vendor's page. Links are in each section. Prices change often, so check before you buy.

The short version

Programmatic SEO means one template, a dataset, and a few hundred or thousand pages that each answer a real search. It works when each page has facts the other results don't have. It fails when the only difference between pages is the city name.

That line matters because Google has a name for the failure case. Its spam policy on scaled content abuse covers many pages generated mainly to manipulate rankings, and Google's own guidance on generative AI content says using AI to generate many pages without adding value may violate it. Using AI is not the problem. Pages that add nothing are.

Here is the whole approach in one table. The rest of this post expands each row.

PhaseThe questionWhat you decide
1. PatternIs there a repeating search where only one part changes?The URL shape and keyword group
2. Results pageDo the winners share a data source?Whether your angle is already saturated
3. DataWhat do you have that nobody else has?Proprietary, public or scraped data
4. BuildDoes every section come from the row?Template blocks that appear only when data exists
5. GateWhat happens to a page that's too thin?A real 404, kept out of the sitemap
6. TechnicalCan Google find, fetch and index it?Search Console export, sitemaps, links, canonicals

I wrote this from a 24-point list that has been going around for people using Claude for programmatic SEO. I rebuilt it as a build order, checked the technical claims against Google's docs, and cut or softened the ones I couldn't confirm.

New to getting traffic at all? Do the basics first. Our free-to-paid traffic playbook covers directories, Reddit, X and the foundation work. It doesn't cover programmatic SEO, which is why this post exists.

Phase 1: find a pattern worth templating

Why long-tail pages are worth it

Long-tail searches are small, but they're often under-served. Semrush suggests filtering keyword research to 10 to 1,000 monthly searches with exact match, and says even a term with about 10 searches a month can be worth a page when you can generate pages cheaply. SE Ranking suggests keyword difficulty of 40 or below as a starting filter.

The patterns that scale

Every working pattern has one part of the URL that changes and a dataset that fills the page.

PatternExampleVerified at
[thing] in [place]Tripadvisor "things to do in [city]"; Yelp city pagesSemrush
[A] + [B] integrationsZapier: /apps/google-sheets/integrations/trelloZapier
[from] to [to] convertersWise currency pages with a converter, rate chart and links to other pairsSemrush
Profiles with live dataNomad List city pages: cost of living, internet speed, weather, safety, air quality, user reviewsZapier
Templates by categoryWebflow Templates, built from CMS collectionsSE Ranking
Directory profilesSE Ranking's Agency Catalog, built from structured submissionsSE Ranking

Notice what Zapier's article says about its own data: the unique part is each app's triggers and actions, which are specific to Zapier and change often. That is the data doing the work, not the template.

Don't give every phrase its own page

A phrase earns its own page only when the results are different. Check before you build: search two wordings of the same idea and compare the top results. Same URLs means one page. Jessyca's write-up on her wine site is a good honest example. She removed multi-selection gift pages because there wasn't enough long-tail traffic to justify the overhead, and she never built pairwise club comparisons because few people search for specific pairs.

Find your pattern with keyword data

  1. Take a head term and its modifiers, and pull the matching terms.
  2. Group keywords by the repeating phrase where only one part changes, like "best [tool] for [job]".
  3. For each group, read three numbers: how many variations, their combined monthly volume, and keyword difficulty.
  4. In Ahrefs, filter Matching terms to the phrase with a minimum volume of 10. In Semrush, use the Keyword Magic Tool filter above.

A group with a few variations is a blog post. A group with hundreds is a template.

Phase 2: check the results page before you build

Open the top results for a handful of keywords in the group. Write down what the winners share: page type, sections, data points, and where the data comes from.

If more than half use the same data source, that source is saturated. A page built only on it adds nothing, and Google has no reason to prefer yours.

Webflow's guide makes a related point: give each page a take on its keyword that is different enough from competitors to justify existing, and write at least a paragraph per use case rather than swapping keywords into otherwise identical copy.

Phase 3: choose the data before you write the template

You have three choices:

Data sourceStrengthRisk
Proprietary data only you haveNobody can copy itTakes time to collect
Public or licensed dataFast to getYour competitors probably have it too
Figures scraped from other sitesCheapCopyright problems, and often the same feed everyone has

Pick the one your competitors aren't using. Unique data beats unique wording. What counts: proprietary or aggregated datasets, reviews and user contributions, prices, ratings, stats, specs, availability. What doesn't count: synonyms, shuffled sentences, or an LLM rewrite of the same feed everyone has.

Two honest warnings from vendors who have a reason to oversell. SE Ranking notes that careless large-scale use can backfire and AI-generated content needs human review. Zapier advises validating before you scale, for example with affiliates already ranking or paid ads, and warns that every page is maintenance debt for both code and content.

Want to see a dataset where the list isn't the product? Our post on 393 SaaS directories and the agent that has to use them is about exactly that gap: a long row-per-site table is easy to make, and the part with value is what you add to each row.

[ADD YOUR STORY: which of your own datasets could become a template? Your 393-row directories table, jobs data or something else. Say only what you have actually built or tested.]

Phase 4: build every section as a function of the row

This is the part most programmatic SEO gets wrong, so I'll be specific.

Build every block as a function of the row. A block renders only if its data exists. No reviews, no reviews block, and no filler like "be the first to review". An empty field should remove a section, never get covered with generic copy. Then count how many real blocks each page ended up with.

Compute insights instead of writing around the data. Rank within a category, averages, highs and lows, change over time, comparison with the nearest neighbours. A computed sentence is different on every page for a real reason, and you can check it. On "A vs B" pages, show the differences in numbers instead of pasting two descriptions side by side.

Enrich the rows. Join more than one source and add first-hand input: user reviews, photos, hours, specs checked by someone who used the thing. Google's guidance for helpful content asks whether the page shows first-hand expertise and avoids simply copying or rewriting other sources. If your only source is a feed other sites also have, you're a mirror.

Use AI on one row at a time. Turn one row of verified data into a short plain summary, with the prompt restricted to the fields in that row. Google says generative AI can help with research and adding structure to original content, but you still need to fact-check everything, including titles, meta descriptions, structured data and alt text. Add a line on the page about how the content was made.

Scaling content with AI and worried about the penalty? Our post on writing 100+ SEO blogs a day for under $10 without a scaled-content penalty is our take on the same risk from the blog side. [CHECK: I could not open this post to confirm its details. Read it before publishing this link.]

Scale in stages

Build the template on 10 rows first and read every page. Then ship one template and its sitemap, read its Page indexing numbers, fix what they show, and only then ship the next one.

Put an editorial pass before and after every batch. Read a random sample from each template and ask Google's own questions:

  • Does it give substantial value compared with other pages in the results?
  • Is it a page you'd bookmark or send to a friend?
  • Does it leave the reader needing to search again?

Ask someone who doesn't work on the site.

Phase 5: set a quality gate

Define, per template, the fields a page must have and the minimum number of real blocks. A page that fails shouldn't go live as a normal page.

Here's a small gate I wrote and ran. It takes one row, builds the blocks that have data, and returns the HTTP status and whether the page belongs in the sitemap.

js
// pseudo-seo-quality-gate.mjs
// One row in, a list of real blocks out. A block exists only if its data exists.
export function blocks(row, peers = []) {
  const out = [];
  if (row.specs && Object.keys(row.specs).length >= 3) out.push({ type: "specs", data: row.specs });
  if (row.price != null) {
    const prices = peers.map(p => p.price).filter(n => n != null).sort((a, b) => a - b);
    const rank = prices.length ? prices.filter(p => p < row.price).length + 1 : null;
    out.push({ type: "price", data: { price: row.price, rankCheapestFirst: rank, of: prices.length } });
  }
  if (row.reviews?.length) out.push({ type: "reviews", data: row.reviews });
  if (row.firstHandNote) out.push({ type: "note", data: row.firstHandNote });
  return out;
}

export function gate(row, peers, { required = ["name"], minBlocks = 3 } = {}) {
  const missing = required.filter(k => row[k] == null || row[k] === "");
  const b = blocks(row, peers);
  const ok = missing.length === 0 && b.length >= minBlocks;
  // Failing pages get a real 404 and stay out of the sitemap.
  return { ok, status: ok ? 200 : 404, inSitemap: ok, blocks: b.map(x => x.type), missing };
}

I ran it on three sample rows. A full row (name, price, three specs, a review, a first-hand note) returned 200 with four blocks. A row with only a name and price returned 404 with one block. A row with no name returned 404 with missing: ["name"]. That is all I tested: the logic, not a real site. The rankCheapestFirst value is the kind of computed sentence from Phase 4: it's different on every page and you can check it.

What to do with a page that fails the gate

Pick the right tool, because the wrong one makes things worse.

SituationUseWhy
The page shouldn't existA real 404 (or 410)A 200 with "no results" is a soft 404. Google reports empty pages and error messages on a 200 as soft 404s in Search Console
Users still need the page, but it shouldn't ranknoindexGoogle still requests the URL, so it costs crawl time
Crawl traps like filter and sort combinationsrobots.txtStops the crawl, not the indexing

One rule that trips people up: never block a noindex URL in robots.txt. Google has to crawl the page to see the tag, and Google's noindex docs say a robots.txt block means the tag can't be seen. And keep failing pages out of the sitemap.

Phase 6: technical setup that actually matters

1. Turn on Search Console bulk export before you publish

The bulk data export sends daily performance data to BigQuery. The first export can take up to 48 hours. Google's launch post says it includes all performance data apart from anonymized queries, so it isn't capped by the daily row limit. Turn it on before you publish so you have the history from day one.

Why it matters: the regular report is limited. The UI exports 1,000 rows, and the Search Analytics API gives at most 50,000 rows per day per site per search type.

Also add one URL-prefix property per folder (/city/, /compare/) so each template gets its own tables. Keep your domain property too.

[ADD LINK: a Search Console basics post. We don't have one yet; this is a gap worth filling.]

2. Keep the HTML under Google's byte limit

Googlebot fetches up to 2MB for an individual URL, excluding PDFs. That 2MB includes the HTTP header, and anything past it isn't fetched, rendered or indexed. For most pages it won't matter. It can matter when you inline big JSON, base64 images or giant menus ahead of the real content. Check it:

bash
curl -s https://yoursite.com/your-page | wc -c

Put your title, canonical and structured data near the top of the document so a cut-off can't remove them, as Google's post advises.

Want to see what a bot actually sees? Our post explaining how AI visibility checkers like geo.new and Is Agentic score a website includes a short Python script that checks robots.txt access for AI bots and counts words in the raw HTML. That is the same "is the content really in the HTML?" test, from the AI-search side.

3. One sitemap per template

A sitemap holds at most 50,000 URLs or 50MB uncompressed, and a sitemap index can list up to 50,000 sitemaps. Submit each template's sitemap on its own so the Page indexing report can filter to it. Host sitemaps at the root: unless you submit through Search Console, a sitemap only affects the folder it sits in and below.

Two traps:

  • lastmod. Google says it uses it only if it is consistently and verifiably accurate. Don't stamp every URL with the build date. Google's sitemap post says if your page changed seven years ago and you say yesterday, Google stops trusting it.
  • Sitemap ping. The old ping endpoint is dead. Google said it would return a 404 error. Submit through Search Console or robots.txt instead.

[ADD LINK: a sitemap and IndexNow how-to post. Another gap on our site.]

4. Read the "not indexed" reasons correctly

The Page indexing report sorts non-indexed URLs by reason. Three matter most for programmatic pages:

StatusWhat it meansType of problem
Discovered, currently not indexedGoogle found the URL but hasn't crawled it. The crawl was rescheduled to avoid overloading your siteCapacity and discovery
Crawled, currently not indexedGoogle fetched the page and chose not to index itPage quality
Duplicate, Google chose different canonical than userGoogle thinks the page duplicates the URL it pickedCanonicals. Run URL Inspection and compare the two

Sources: Search Engine Journal on the first, Ahrefs on the second, Scandiweb on the third. If most of your templated pages sit in "Crawled, currently not indexed", Google has read them and decided they add nothing. More sitemaps won't fix that. Better data will.

Googlebot finds new URLs mainly from links on pages it already crawled, and it generally follows only <a> tags with an href. Build a hierarchy where every page has a parent link and sibling links: home, then state, then city, then page. Then crawl your own site and diff the result against your sitemaps. A sitemap URL with nothing linking to it is an orphan.

Jessyca's write-up makes the same point from experience: programmatic internal linking is valuable, and users notice it right away.

6. Make canonical signals agree

Google's canonicalization docs rank the signals: a redirect is strong, rel="canonical" is strong, a sitemap entry is weak. So use a self-referencing canonical on every page, list only canonical URLs in the sitemap, and never give the sitemap one URL and the tag another. For "A + B" pages, pick one order and redirect the other.

7. Crawl budget: probably not your problem yet

Crawl budget is crawl capacity plus crawl demand, set per hostname. Google's guide is aimed at large sites. The earlier version says sites with 1 million or more unique pages updating weekly, or 10,000 or more updating daily, are the target. If your pages are getting crawled the day they're published, you don't need to worry about it.

What does apply to everyone: a launch on a slow origin throttles itself. Slow responses and server errors lower the crawl capacity limit. Open the Crawl Stats report to see host status and whether Googlebot is mostly discovering or refreshing.

8. Verify Googlebot before you trust your logs

The user agent proves nothing. Google's verification steps: run a reverse DNS lookup on the IP, check the name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup on that name and confirm it returns the same IP. You can also match the IP against Google's published ranges. Then count verified hits per template per day by status code.

9. IndexNow helps Bing, not Google

IndexNow lets you host a key file at your site root and submit up to 10,000 URLs per POST. Submissions are shared with participating engines like Bing, Yandex and Naver. Google doesn't participate, so sitemaps stay your path to Google.

And don't use Google's Indexing API as a shortcut. Google says it can only be used for pages with JobPosting or BroadcastEvent markup.

Tools: build it or buy it

If you don't want to code the whole pipeline, these are the ones that came up in the sources. Treat vendor comparisons with care: Prismic's own article says it favours Prismic, and Orshot's list includes its own product.

ToolWhat it doesPrice as published
SEOmaticFinds a repeated search pattern from Search Console, builds pages from a data row, publishes in batches to WordPress, Shopify or Webflow; only rows with search demand become pagesThe page lists a 14-day $1 trial. Prismic's article says $149 a month for 1,000 pages. Orshot's list says paid plans from $99 a month, so check the live page
The SEO AgentFull researched articles for long-tail searches, with a separate fact-check pass. It says it is not for thousands of database-driven pages like city directories$1 for a 3-day trial, then $99 a month for one site and up to 30 articles a month
AirOpsWorkflow builder you run across a spreadsheetSolo $200 a month for 20,000 tasks (per Prismic)
BywordLong-form articles from keyword structuresFrom $99 a month for 25 articles (per Prismic)
WP All ImportCreates WordPress posts from CSV or XML$99 a year (per Orshot)
WhalesyncSyncs Airtable or Sheets with Webflow CMSStarter $16 a month (per Orshot)
Screaming FrogFinds broken links, duplicate titles and orphan pagesFree up to 500 URLs (per Orshot)

Note the split. SEOmatic suits spreadsheets full of real facts. The SEO Agent says outright that it writes researched articles, not database pages. Pick based on where the difference between your pages comes from.

The weekly loop

Getting a page to rank is one thing, and keeping it there is another. The loop that holds up:

  1. Monday: pull last week's data from the Search Console export. Which templates gained impressions? Which sit in "Crawled, currently not indexed"?
  2. Tuesday: have your coding agent sample 10 pages from each template and score them against the gate and Google's three questions.
  3. Wednesday: fix the template or the data, not individual pages.
  4. Thursday: ship one change, one template, one sitemap.
  5. Friday: check verified Googlebot hits per template by status code.

Here is a prompt you can give Claude to start. It is short on purpose.

text
You are helping me run programmatic SEO for [site].
Inputs: Search Console export in BigQuery table [table], our sitemaps per template, 
and a folder of rendered sample pages per template.
Each week:
1. List templates where "Crawled, currently not indexed" is rising.
2. For 10 random pages per template, count real blocks and flag any with generic filler.
3. Propose ONE change: to the data, the template, or the gate. Not to individual pages.
4. Never publish. Write the change and the expected effect, and wait for my approval.

What next? Programmatic pages need links from somewhere. Our free traffic playbook covers the directories and communities that send the first visitors and links.

Common mistakes

  • Making a page for every phrase when the results are identical
  • Using a data feed everyone already has, then rewriting it with an LLM
  • Covering empty fields with generic text instead of removing the block
  • Letting thin pages go live as a 200 "no results" page
  • Blocking noindex URLs in robots.txt
  • Stamping every URL's lastmod with the build date
  • Shipping every template at once, then not knowing which one broke
  • Building a 5,000-page template for a keyword group with 12 variations

FAQ

What is programmatic SEO? Publishing many pages from one template filled with data from a database, API or spreadsheet, usually targeting long-tail keywords. Semrush and Webflow both describe it this way.

Is programmatic SEO against Google's rules? Not by itself. SE Ranking notes large-scale strategies aren't inherently against Google's guidelines, but careless use can backfire. Google's spam policy targets pages made mainly to manipulate rankings, including doorway pages: substantially similar pages built to rank for similar queries.

Can I use AI to write the pages? Yes, with limits. Google says generative AI can help research a topic and add structure to original content. Generating many pages without adding value may violate its scaled content abuse policy. Restrict each prompt to the fields in one verified row, fact-check the output, and add a line about how it was made.

How many pages should I launch with? Ten, read by hand. Then one template with its own sitemap. Then check the Page indexing report before building the next one.

Do I need to worry about crawl budget? Usually not. Google's guide targets sites with 1 million or more pages updating weekly, or 10,000 or more updating daily. A slow server or a flood of errors can still hurt you at any size.

Does IndexNow work for Google? No. Google isn't a participating engine. Use sitemaps and good internal links.

Sources

External Links (30)
Weekly letter

Subscribe to iHateReading

Our once-a-week newsletter on programming, jobs, AI, and building products online.

Our once a week newsletter on Programming, Jobs, AI, and Business