"Etsy SEO tool" gets about 2,400 US searches a month, and most of the tools that rank for it are subscriptions that do three things behind the scenes: they read Etsy's search autocomplete, they look at who ranks on page one, and they guess how well those listings sell. You can build that yourself in a couple hundred lines of Node.js, and you will understand your numbers better because you know exactly where they come from.

This post builds a small keyword research pipeline with no dependencies (Node 20+, built-in fetch):

  1. suggest.mjs expands one seed ("crochet bag") into an autocomplete keyword tree
  2. serp.mjs measures page-one competition for the best terms: how many titles already contain the words, bestseller badges, small shops, ads, price bands
  3. demand.mjs opens the top listings and reads Etsy's own demand line ("57 people bought this in the last 24 hours")
  4. report.mjs joins it all into a ranked CSV and checks a listing title against the terms buyers type

Everything below ran on November 23, 2026 (Asia/Saigon morning) with Node v24.22.1. My earlier Etsy post was a Python overview of the official API and HTML. This one is only about keyword research.

Read this first: Etsy's Terms of Use prohibit scraping. Section 6.E of the Terms of Use says: "You agree not to use automated bots to access, scan, crawl, scrape, or spider any page of the Services ... without our express permission." Section 6.C adds that Etsy "may ... prohibit the use of Automated Agents for any purpose, including browsing, data collection", and that you must not circumvent its bot detection. Etsy's robots.txt also disallows /api/ and /search?*q= for all user agents. Review the terms and the legal risk for your use case and location before running anything. Where it covers your needs, use the official Etsy Open API v3 with an approved app key. It has no autocomplete endpoint, though. The scripts here made about 100 requests in total. Raw responses sit in a local cache that expires after 12 hours (delete it when you're done), and the reports keep only numbers and search terms.

Step 1: What a plain Node.js client gets

Before writing any parser, check what etsy.com sends to a script:

// probe.mjs: what a plain Node.js client gets from etsy.com today. const UA = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36'; const urls = [ 'https://www.etsy.com/robots.txt', 'https://www.etsy.com/api/v3/ajax/public/search/autosuggest?search_type=all&query=crochet+bag', 'https://www.etsy.com/search?q=crochet+bag', 'https://www.etsy.com/listing/4608105850/', 'https://openapi.etsy.com/v3/application/listings/active?keywords=crochet+bag', ]; for (const url of urls) { const res = await fetch(url, { headers: { 'user-agent': UA, 'accept-language': 'en-US' } }); const text = await res.text(); console.log(res.status, String(text.length).padStart(6), new URL(url).pathname.slice(0, 40).padEnd(40), text.replace(/\s+/g, ' ').slice(0, 60)); if (url.endsWith('robots.txt')) { const star = text.split(/User-agent: \*/)[1] ?? ''; console.log(' robots.txt (*):', star.split('\n').filter((l) => /Disallow: \/(api\/|search\?)/.test(l)).join(' | ')); } } 
$ node probe.mjs 200 55539 /robots.txt User-agent: Spinn3r Disallow: / User-agent: AdsBot-Google-Mo robots.txt (*): Disallow: /api/ | Disallow: /search?*q= 200 372 /api/v3/ajax/public/search/autosuggest [{"query":"crochet bag pattern"},{"query":"crochet bag patte 403 793 /search <html lang="en"><head><title>etsy.com</title><style>#cmsg{an 403 776 /listing/4608105850/ <html lang="en"><head><title>etsy.com</title><style>#cmsg{an 403 80 /v3/application/listings/active {"error":"Invalid API key: should be in the format 'keystrin 

What that means:

  • Autocomplete answers plain fetch(). The JSON endpoint behind the search box returns up to 11 suggestions. But it lives under /api/, which robots.txt disallows.
  • Search and listing pages return 403 from DataDome (server: DataDome, a "Please enable JS and disable any ad blocker" page that loads a captcha from geo.captcha-delivery.com). Headless Chrome got the same block page, even for the Terms of Use page. Getting past that means fingerprint and proxy work, which section 6.C of the terms specifically forbids.
  • The official Open API rejects calls without a key in keystring:shared_secret format. With an approved app, findAllListingsActive covers keyword listing search. It doesn't give you the ranked page with ads and badges that buyers actually see, or the autocomplete.

So in the pipeline, one small client does the fetching, and everything after it is plain data work you can point at any source.

Step 2: A client with a disk cache

The scripts read Etsy through ScrapeAtlas*, which returns autocomplete (/v1/etsy/search/suggestions), one ranked search page with organic and promoted cards (/v1/etsy/search), and a listing page (/v1/etsy/listing) as JSON. Each successful call costs 1 credit, and failed ones cost nothing. Keyword research repeats itself a lot (the same listing ranks for five related terms), so the client caches every response on disk. A re-run of the report costs nothing:

// sa.mjs: tiny ScrapeAtlas client with a disk cache, so re-running a report costs 0 credits. import { createHash } from 'node:crypto'; import { mkdir, readFile, writeFile } from 'node:fs/promises'; const KEY = process.env.SCRAPEATLAS_API_KEY; const TTL_MS = Number(process.env.CACHE_HOURS ?? 12) * 3600_000; export const stats = { calls: 0, cached: 0, failed: 0 }; export async function etsy(path, params = {}) { const url = `https://api.scrapeatlas.com/v1/etsy/${path}?${new URLSearchParams(params)}`; const file = `cache/${createHash('sha1').update(url).digest('hex').slice(0, 16)}.json`; try { const hit = JSON.parse(await readFile(file, 'utf8')); if (Date.now() - hit.savedAt < TTL_MS) { stats.cached++; return hit.body; } } catch {} if (!KEY) throw new Error('set SCRAPEATLAS_API_KEY first'); for (let attempt = 0; ; attempt++) { const res = await fetch(url, { headers: { 'x-api-key': KEY }, signal: AbortSignal.timeout(90_000) }); const body = await res.json().catch(() => ({ success: false, failure: { code: `http_${res.status}` } })); if (body.success) { stats.calls++; await mkdir('cache', { recursive: true }); await writeFile(file, JSON.stringify({ savedAt: Date.now(), url, body })); return body; } if (res.status >= 500 && attempt < 2) { await new Promise((r) => setTimeout(r, 2000 * 2 ** attempt)); continue; } stats.failed++; const err = new Error(`${path} ${res.status} ${body.failure?.code}: ${body.failure?.message ?? ''}`); err.status = res.status; throw err; } } // Run `limit` promises at a time; Etsy calls take 2-6 s each, so this matters. export async function pool(items, limit, fn) { const out = new Array(items.length); let next = 0; await Promise.all(Array.from({ length: limit }, async () => { while (next < items.length) { const i = next++; out[i] = await fn(items[i], i); } })); return out; } // console.table without the box drawing: narrower, and pastes cleanly. export function printTable(rows) { const cols = Object.keys(rows[0] ?? {}); const w = cols.map((c) => Math.max(c.length, ...rows.map((r) => String(r[c] ?? '').length))); for (const r of [Object.fromEntries(cols.map((c) => [c, c])), ...rows]) { console.log(cols.map((c, i) => String(r[c] ?? '').padEnd(w[i])).join(' ').trimEnd()); } } 

Etsy calls take 2 to 6 seconds each, so pool() runs 3 to 4 at a time. 27 autocomplete calls finished in 9 seconds.

Step 3: An autocomplete keyword tree

Etsy's autocomplete is the closest thing to buyer search data you can get without Etsy's seller tools. One call per prefix only gives about 11 terms. The classic trick is the "alphabet soup": query the seed, then seed a, seed b, ... seed z. A term that shows up under the bare seed and under letter prefixes is one Etsy keeps pushing:

// suggest.mjs: expand one seed into an Etsy autocomplete keyword tree. // usage: node suggest.mjs "crochet bag" [letters] import { writeFile, mkdir } from 'node:fs/promises'; import { etsy, pool, stats } from './sa.mjs'; const seed = (process.argv[2] ?? '').trim().toLowerCase(); const letters = process.argv[3] ?? 'abcdefghijklmnopqrstuvwxyz'; if (!seed) throw new Error('usage: node suggest.mjs "<seed>" [letters]'); // The bare seed, then "seed a", "seed b", ... Each prefix returns up to ~11 terms. const prefixes = [seed, ...[...letters].map((c) => `${seed} ${c}`)]; const seen = new Map(); // term -> { term, hits, bestRank, prefixes: [] } await pool(prefixes, 4, async (prefix) => { let res; try { res = await etsy('search/suggestions', { query: prefix }); } catch (e) { console.error('skip', JSON.stringify(prefix), e.message); return; } res.items.forEach(({ query }, rank) => { const term = query.trim().toLowerCase(); const row = seen.get(term) ?? { term, hits: 0, bestRank: 99, prefixes: [] }; row.hits++; row.bestRank = Math.min(row.bestRank, rank + 1); row.prefixes.push(prefix); seen.set(term, row); }); }); // A term that shows up under the bare seed AND under letter prefixes is one Etsy // pushes hard; sort by that first, then by its best position in any list. const rows = [...seen.values()] .map((r) => ({ ...r, fromSeed: r.prefixes.includes(seed) })) .sort((a, b) => b.fromSeed - a.fromSeed || b.hits - a.hits || a.bestRank - b.bestRank); await mkdir('data', { recursive: true }); const out = `data/suggest-${seed.replace(/\W+/g, '-')}.json`; await writeFile(out, JSON.stringify({ seed, fetchedAt: new Date().toISOString(), rows }, null, 1)); console.log(`${prefixes.length} prefixes -> ${rows.length} unique terms (${stats.calls} paid, ${stats.cached} cached, ${stats.failed} failed) -> ${out}`); for (const r of rows.slice(0, 15)) { console.log(`${r.fromSeed ? '*' : ' '} ${String(r.hits).padStart(2)}x best #${String(r.bestRank).padEnd(2)} ${r.term}`); } 
$ node suggest.mjs "crochet bag" 27 prefixes -> 246 unique terms (27 paid, 0 cached, 0 failed) -> data/suggest-crochet-bag.json * 6x best #1 crochet bag pattern * 5x best #3 crochet bag handmade * 3x best #1 crochet bag tutorial * 2x best #1 crochet bag charm * 2x best #1 crochet bag holder pattern * 2x best #2 crochet bag pattern pdf * 2x best #2 crochet bag charm pattern * 2x best #2 crochet bag holder * 2x best #6 crochet bag pattern women * 1x best #5 crochet bags * 1x best #8 crochet bags for women 2x best #2 crochet bag large 1x best #1 crochet bag accessories 

* marks terms Etsy shows for the bare seed. 27 calls returned 246 unique terms, all starting with "crochet bag". Rare letters return short lists (crochet bag z: 3, x: 4, q: 5), and that's normal. One thing that surprised me: the seed itself never comes back as a suggestion, so it ends up with hits: 0 in the report. Treat it as the head term.

Step 4: Page-one competition

The search data has no result count, and the one size number you do get is useless. Every query I tried returned totalPages: 20 and 36 organic cards, including a nonsense query, zzqx crochet narwhal bag. Etsy pads results with loosely related listings. So competition has to come from what's on page one:

// serp.mjs: page-1 competition metrics for the top terms of a suggest-*.json file. // usage: node serp.mjs data/suggest-crochet-bag.json [howMany=10] import { readFile, writeFile } from 'node:fs/promises'; import { etsy, pool, printTable, stats } from './sa.mjs'; const [file, howMany = 10] = process.argv.slice(2); const { seed, rows } = JSON.parse(await readFile(file, 'utf8')); const terms = [seed, ...rows.map((r) => r.term).filter((t) => t !== seed)].slice(0, Number(howMany)); const pct = (n, d) => (d ? Math.round((100 * n) / d) : 0); const quantile = (xs, q) => { const s = [...xs].sort((a, b) => a - b); return s.length ? s[Math.min(s.length - 1, Math.floor(q * s.length))] : null; }; // "Preview seller" is a placeholder Etsy prints on most cards; shopId is the real key. const shopKey = (i) => i.shopId ?? (i.seller !== 'Preview seller' ? i.seller : null) ?? i.id; const words = (s) => s.toLowerCase().replace(/[^a-z0-9 ]+/g, ' ').split(' ').filter(Boolean); const hasPhrase = (title, term) => ` ${words(title).join(' ')} `.includes(` ${words(term).join(' ')} `); // Etsy matches words in any order, so "Handmade Crochet Bag" ranks for "crochet bag handmade". const hasAllWords = (title, term) => { const t = new Set(words(title)); return words(term).every((w) => t.has(w)); }; export function metrics(term, page) { const org<...
Source:https://dev.to/viktorhendelmann/how-to-scrape-etsy-with-nodejs-autocomplete-keyword-trees-page-one-competition-demand-signals-9li