{"slug": "show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration", "title": "Show HN: Open-source pytrends alternative with Google Ads anchor calibration", "summary": "An MIT-licensed open-source tool called google-trends-for-agent (gtfa) has been released as a replacement for the archived pytrends library, returning calibrated daily search volume estimates derived from 59 public Google Ads anchors instead of pytrends' relative 0–100 curves. The project ships as an npm package with a CLI, an MCP server (gtfa-mcp) for Claude Code, Cursor, Codex and Windsurf, and an Apify Actor, and its author states it runs at $0 with unlimited queries on a local IP or a user-supplied HTTPS_PROXY/HTTP_PROXY, versus pytrends' frequent TooManyRequestsError (429) failures. The tool calls undocumented public Google Trends web endpoints, is not affiliated with or endorsed by Google, and its author warns that use may conflict with Google's Terms of Service and is suited to light interactive analysis rather than bulk scraping or an SLA.", "body_md": "**Free, open-source (MIT) `pytrends` alternative for AI agents, CLI & MCP — real daily search volume calibrated via 59 Google Ads anchors.**\n\nEnglish | [简体中文](https://github.com/meka-im/google-trends-for-agent/blob/main/README.zh-CN.md) | [Interactive Demo & 59 Anchors](https://meka.im/google-trends-for-agent) | [X (@hey_boyce)](https://x.com/hey_boyce)\n\n`google-trends-for-agent` (`gtfa`) is a modern open-source (MIT) alternative to the archived [`pytrends`](https://github.com/GeneralMills/pytrends) library, built for AI agents, CLI workflows, and MCP clients. Instead of raw 0–100 relative curves or frequent HTTP 429 failures, it returns a stable JSON envelope, **calibrated daily search volume estimates** (using 59 public Google Ads anchors), charts, and explicit error codes.\n\n<sub>Real snapshot output, trimmed. The full envelope also includes the series, primary and 7-day traffic blocks, related-query context, warnings, and metadata.</sub>\n\nWarning\n\n**Unofficial. Not affiliated with or endorsed by Google.** This project calls undocumented public Google Trends web endpoints that can change or fail without notice, and use may conflict with Google's Terms of Service. Use it for light, interactive analysis, not bulk scraping or an SLA.\n\nRun immediately with `npx` on your own local IP (**`$0` unlimited** — also honors your own `HTTPS_PROXY` / `HTTP_PROXY` with zero quota cap):\n\n```\nnpx -y -p google-trends-for-agent gtfa snapshot Sora --geo US --json --pretty\n```\n\nOr install globally from npm ([`google-trends-for-agent`](https://www.npmjs.com/package/google-trends-for-agent)):\n\n```\nnpm install -g google-trends-for-agent\n```\n\nAdd the local MCP server (`gtfa-mcp`) to Claude Code, Cursor, Codex, or Windsurf:\n\n```\n{\n  \"mcpServers\": {\n    \"google-trends\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"-p\", \"google-trends-for-agent\", \"gtfa-mcp\"]\n    }\n  }\n}\n```\n\n- **`gtfa snapshot <term>`** (` trends_snapshot` ) — trend curve,**calibrated daily search volume** , and related queries in one call.\n- **`gtfa ask <term>`** (` trends_ask` ) — quick single-term momentum check with optional anchor validation (`--validate` ).\n- **`gtfa compare <a,b,...>`** (` trends_compare` ) — compare up to 5 keywords side by side (`--calibrate` for daily searches).\n- **`gtfa now`** (` trends_now` ) — real-time trending searches across up to 30 countries.\n\n| Capability | `google-trends-for-agent` (MIT) | `pytrends` (Archived Apr 2025) | Legacy SEO Tools (Ahrefs / Semrush) | \n|---|---|---|---|\n| **Status & License** | Actively maintained · 100% Free MIT | Archived read-only (last push 2024) | Paid subscription ($99–$139+/mo) | \n| **Breakout Keywords** | Real-time capture (e.g. `gemini 4 carbon` at`18,000/day` ) | Relative `0–100` only | Shows `0` for 30+ days | \n| **Daily Search Volume** | Calibrated via [59 open Google Ads anchors](https://meka.im/google-trends-for-agent#anchors) | No absolute volume | Lagging monthly averages | \n| **HTTP 429 Recovery** | **`$0` unlimited** on Local IP or your own`HTTPS_PROXY` /`HTTP_PROXY` · or 1-click switch to**Public Open-Source Actor** (`$5/mo` Apify free tier ≈ 3,000–7,000 queries) or**Self-Hosted Actor** (same MIT repo) | Frequent `TooManyRequestsError (429)` | Closed database | \n| **Surfaces** | CLI ( `gtfa` ), MCP (`gtfa-mcp` ), DeepSeek Harness (`dsh` ) plugin, Apify Actor | Python script only | Web UI / paid API | \n\n| `pytrends` call | `google-trends-for-agent` (`gtfa` ) equivalent | \n|---|---|\n| `pytrends.interest_over_time()` (single term) | `gtfa snapshot \"cursor\" --geo US --json` (adds calibrated daily volume + related queries) | \n| `pytrends.interest_over_time()` (2–5 terms) | `gtfa compare \"cursor,windsurf,codex\" --geo US --calibrate --json` | \n| `pytrends.related_queries()` | Included automatically in `gtfa snapshot` (`related.top` &`related.rising` ) | \n| `pytrends.trending_searches(pn='united_states')` | `gtfa now --geo US --json` | \n| `TooManyRequestsError: 429` | Set `HTTPS_PROXY` (`$0` unlimited), or add`--egress actor-public` with`APIFY_TOKEN` for residential proxy rotation | \n\nSee the full walkthrough: [Fixing `pytrends` HTTP 429 & Migrating to `google-trends-for-agent`](https://meka.im/blog/pytrends-429-fix-alternative).\n\n**AI agents: start at the [Client Setup Router](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients.md) and open the guide for your exact host before installing or calling tools.**\n\n- [DeepSeek Harness (dsh)](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/dsh.md) ·[GrokBot](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/grokbot.md) ·[Muse](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/muse.md) ·[Dots & Web Agents](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/dots.md)\n- [Claude Code & Desktop](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/claude.md) ·[OpenAI Codex](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/codex.md) ·[Cursor / VS Code / Windsurf / Cline](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/cursor-vscode.md) ·[OpenClaw & CLI](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients/openclaw.md)\n\n| Route | Where it runs | Execution | \n|---|---|---|\n| Local | This machine | Default **`$0` unlimited** direct access (also honors custom`HTTPS_PROXY` /`HTTP_PROXY` ) via CLI, stdio MCP, or native dsh tools | \n| Public Actor | Your Apify account | One run per query; exits when done, no deployment ( `$5/mo` free tier) | \n| My own Actor | Your Apify account | Deploy this MIT repo once, then run on demand | \n\n**Muse, GrokBot and Dots: use Apify on demand by default**, with either the public Actor or your own deployment. Use the managed remote MCP gateway where supported, or the client's authenticated Apify connector/API. Local access remains available for development and explicit direct-use setups.\n\nFork the repository and build it with Link Git repository in Apify Console, or run `apify push`. Keep Server / Standby disabled. In dsh, select My own Actor, sign in with Apify, and select the built Actor.\n\nFor an existing deployment from official main, use **Update selected Actor** in dsh. After the build finishes, **Test connection** shows keyword access and the actual Actor/plugin versions separately. Custom or pinned source is updated in Apify Console. See the [release and acceptance checklist](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/releasing.md).\n\nFor Muse, GrokBot and Dots with remote MCP support, use Apify's hosted gateway and complete OAuth in the client:\n\n```\n{\n  \"mcpServers\": {\n    \"google-trends\": {\n      \"url\": \"https://mcp.apify.com?tools=meka.im/google-trends-for-agent\"\n    }\n  }\n}\n```\n\nFor your own deployment, replace `meka.im/google-trends-for-agent` in `tools=` with your account's `<username>/<actor-name>`. The account must have access to it.\n\nThe gateway exposes this project as an Actor tool and supplies Dataset, key-value-store, and abort tools. It starts a one-off run; it does not promise the four direct `trends_*` names. Local MCP and the native dsh plugin provide the four `trends_*` tools. For ordinary `tool` / `terms` Actor input, read the results using the returned Dataset id.\n\nApify's `full_api_access` OAuth scope grants account-wide API access. Clients without MCP OAuth can configure a Bearer header through their credential storage. See the [Actor reference](https://github.com/meka-im/google-trends-for-agent/blob/main/.actor/README.md) and [Actor costs](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md#actor-costs).\n\nThe CLI is `gtfa`; `gtfa-mcp` runs the local MCP server. Both default to `local` egress (this machine's network) and also support Apify on-demand cloud egress (`--egress actor-public` or `--egress actor-own --actor <id>`, or `GTFA_EGRESS` / `GTFA_APIFY_ACTOR` with `APIFY_TOKEN`), giving direct access to the four `trends_*` tools through Apify's residential proxy:\n\n```\n{\n  \"mcpServers\": {\n    \"google-trends\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"-p\", \"google-trends-for-agent\", \"gtfa-mcp\", \"--egress\", \"actor-public\"],\n      \"env\": { \"APIFY_TOKEN\": \"<your-apify-token>\" }\n    }\n  }\n}\n```\n\nAfter a global install (`npm install -g google-trends-for-agent`), use this config (or an absolute path to `gtfa-mcp`) directly without invoking `npx` on every start:\n\n```\n{\n  \"mcpServers\": { \"google-trends\": { \"command\": \"gtfa-mcp\", \"args\": [] } }\n}\n```\n\nFor a local **Streamable HTTP** endpoint (bound to `127.0.0.1`):\n\n```\nnpx -y -p google-trends-for-agent gtfa-mcp --http --port 4321   # http://127.0.0.1:4321/mcp\n```\n\n## Build from source, packaging audit notes & connectivity diagnostics\n\nBuild from a local git checkout:\n\n```\ngit clone https://github.com/meka-im/google-trends-for-agent.git\ncd google-trends-for-agent\nnpm ci\nnpm install -g \"$(npm pack | tail -1)\"\n```\n\nThe source checkout tracks the repository's default `main` branch. If your review process requires an immutable source revision, pin a published npm version or git commit rather than relying on a moving branch.\n\nThe published tarball bundles the audited `apify` dependency tree so a consumer install does not re-resolve older vulnerable Apify transitives. Root npm `overrides` do not propagate into consumers, so this bundle is part of the consumer protection. The root also applies an explicit `@crawlee/core` → `minimatch` `^11.0.1` security override (lock: `11.0.8`); Crawlee declares `^9`, so consumer `npm ls` may show a range warning even though the explicit override is intentional. Audits cover both the root tree and a clean install of the packed artifact. Bundling materially increases package size.\n\nCheck both package-download and data-fetch connectivity:\n\n```\ncurl -I https://registry.npmjs.org\ncurl -I https://trends.google.com\n```\n\nIf `npx …` exits non-zero with empty stdout/stderr, the npm package fetch failed before gtfa started; inspect the npm debug log (typically `~/.npm/_logs/`). **MCP fails to start** means npx/npm errors or EOF before the handshake. **MCP started but a tool fetch failed** means the handshake and `tools/list` succeed, but the tool returns `NETWORK_ERROR`, `RATE_LIMITED`, or another upstream error. Use `gtfa doctor --json` for the latter.\n\n<sub>DeepSeek Harness (macOS): open **Plugins → + Install plugin**, enter `google-trends-for-agent` directly (no npmjs.com URL), then restart to load the backend.</sub>\n\n- **DeepSeek Harness Desktop (macOS):** open**Plugins → + Install plugin** , enter the npm package name**`google-trends-for-agent`** directly (do not paste a full` npmjs.com` web URL), and install with one click—no manual`allowBuilds` editing required.\n- **dsh CLI (`dsh web`):** requires**Node >=24.9** and**pnpm >=10** on` PATH` (install dsh with`npm i -g @deepseek-ai/dsh` and pnpm with`npm i -g pnpm@10` ; CLI/MCP alone only require Node 20+):\n\n```\ndsh plugin --profile web add google-trends-for-agent\n```\n\nAfter installing or upgrading the plugin, fully quit and reopen dsh to load its backend. Saving plugin settings applies them immediately.\n\n## Alternative: installing unreleased commits from GitHub `main`\n\nTo test unreleased commits from `main` instead of the published npm package, install from GitHub:\n\n```\ndsh plugin --profile web add github:meka-im/google-trends-for-agent\n```\n\nThe first run usually prints a build-approval key and fails (unless cached in the pnpm store). Append the printed key (ending in the commit hash) as an `allowBuilds:` map entry to `$DSH_HOME/profiles/web/pnpm-workspace.yaml` (`DSH_HOME` defaults to `~/.dsh`), keeping all existing keys, then re-run:\n\n```\nallowBuilds:\n  \"google-trends-for-agent@https://codeload.github.com/meka-im/google-trends-for-agent/tar.gz/<commit>\": true\n```\n\nUse `: true` under `allowBuilds:` rather than an `onlyBuiltDependencies:` list; the key changes whenever `main` advances.\n\nThe plugin is enabled by default after install and provides four native tools plus a `gtfa` skill. Click **Plugin settings** (or the route pill) inside the **Google Trends** sidebar panel—or open **Plugins → Google Trends → Components → Google Trends / gtfa**—to open the standalone settings page. Choose **Local (this machine)**, **Public Actor**, or **My own Actor** under **Egress**, then click **Save**; login itself needs no Save. When the Host provides its credentials service, both Actor routes offer **Sign in with Apify**: the page shows Apify's official authorization link and user code, checks pending status every 2 seconds while honoring Apify's polling interval (including `slow_down`), pauses when closed, resumes when reopened, and restarts an expired attempt. Apify's only current device OAuth scope is `full_api_access`—full Apify API access, not access limited to this Actor or tool.\n\nThe settings page uses three egress cards, with OAuth status and usage directly below. Expand **Usage details** for billing-cycle and proxy details. **Advanced** groups **Calibration baselines**, **Manual Token** (Actor routes only), and **Files and charts**. **Save** and **Discard** float above the page while scrolling; **Test connection** checks the current connection, including unsaved Actor or manual-token changes, without saving them. Use the account menu beside the connection check to sign out. The layout follows the Host's light/dark theme and stacks on narrow screens.\n\nCredentials are re-resolved on every operation: a stored OAuth session is used first; only when none is stored does the plugin use the saved config token, then `APIFY_TOKEN`. A stored session that is expired or damaged and cannot be refreshed requires signing in again; it does not silently fall back or report success. OAuth credentials do not enter browser-visible status or model-visible tool input/output; Host-internal code resolves them through the credentials service. Without that service, OAuth is unavailable, while local egress, the manual token, and `APIFY_TOKEN` still work. For the dsh device flow, the current access token is long-lived with no refresh token; future standard expiry/refresh responses can be handled by the plugin.\n\nPersistence is delegated to the dsh credentials service/provider-managed store, separate from the profile; backend location, record keys, and schema can vary. The current local file-backed provider uses owner-only `0700` directory and `0600` file permissions when applicable; it is not an OS Keychain or encrypted storage and cannot stop other processes under the same OS user from reading it. The manual token remains an **Advanced / fallback** option and is still stored in plaintext in `cordis.patch.yml` (mode `0600`), hidden in the UI, never logged, and absent from browser-visible status and model-visible tool input/output. **Cancel** only stops a pending flow. **Sign out** removes the stored OAuth session but retains reusable client registration according to the provider backend; it does **not** revoke the cloud authorization, so use Apify Console for that. See the [dsh plugin reference](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md#dsh-plugin) for routes and lifecycle details.\n\nOpen **Google Trends** from the dsh sidebar (or **More**) for **Query** and **History**. Single-term snapshots and comparisons default to **7 days (`now 7-d`)** and support all nine time ranges, from the past hour to all time. **Plugin settings** opens the existing installed-plugin page. Chat still uses the same four native tools.\n\nThe query form accepts 1–5 comma-separated keywords and selects the tool automatically. Multi-term queries use one shared batch and one on-demand Actor run, with a calibration anchor included when space permits. The current adapter uses Classic Explore's five comparison slots; Google's [new Explore interface supports more groups](https://support.google.com/trends/answer/4359550?hl=en). Five selected terms occupy this adapter's whole batch; volume can then be calibrated only if one of them is already a known regional anchor. Missing or weak calibration stays null. The page shows real Actor stages and elapsed time, and retains the draft, in-flight request and result when navigating to another dsh panel. Cancel explicitly stops the current request; closing/reloading the browser or unloading the plugin cancels it.\n\nThe Host retains the latest 1,000 manual and Agent calls under `<snapshotDir>/.query-history`, including failures and saved result copies. Viewing or refreshing history never starts a query. Clear individual, selected, or all records with confirmation; statistics follow retained records, while query caches, Apify runs and billing remain separate. Actor costs show only amounts returned by linked runs; missing amounts stay unknown. Opening the dashboard starts no Actor and performs no background data collection.\n\nRelative `snapshotDir` and `chartDir` paths resolve from the directory where `dsh web` was started (cwd); charts default to `<cwd>/.gtfa/charts/`.\n\n**Test connection** verifies connectivity and real data for ChatGPT, Gemini and weather together (US, past 24 hours). It shows each keyword's data-point counts and supports cancellation. Actor mode starts one usage-billed run after preflight, then exits; the check stops on challenges or rate limits without retrying.\n\n| Established terms | New & rising terms | \n|---|---|\n| <sub>**notion** · peak 45.9k · latest 30.3k searches/day</sub> | <sub>**gemini 4 carbon** · peak 18.0k · latest 7.7k searches/day</sub> | \n\n<sub>More charts: [midjourney](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/assets/traffic-midjourney-us-7d.svg) · [genie 4](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/assets/traffic-genie-4-us-7d.svg) · [perplexity](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/assets/traffic-perplexity-us-7d.svg) · [pika h3](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/assets/traffic-pika-h3-us-7d.svg). Estimates calibrated to the `gpts` anchor ≈ 3,500 searches/day; US, last 7 days, labels in UTC, fetched 2026-11-12 UTC.</sub>\n\n| Tool | What it does | \n|---|---|\n| `trends_ask` | Interest, Popular/Rising queries, regions, optional verdict and diff (default: `US` ,`now 7-d` ). | \n| `trends_snapshot` | Calibrated searches/day with multi-tier MEKA auto-calibration (automatic 2nd-round tier retry when out of range), anchor/traffic/calibration blocks, verdict, `chart7d` /`traffic7d` . | \n| `trends_compare` | Relative 0–100 interest for 1–5 distinct keywords on one shared scale; optional `calibrate: true` attaches multi-tier`batchVolume` estimates. | \n| `trends_now` | Trending Now by country, with rank, growth, categories, and links. | \n\nInputs, time windows, defaults, and envelope fields are in the [reference](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md) and the [MCP field guide](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/mcp-api.md).\n\n| Command | What it does | \n|---|---|\n| `gtfa ask <term>` | One term (default `US` ,`now 7-d` ), with optional`--validate` ,`--diff` ,`--points` , batch`--from` ,`--egress` , per-request`--timeout MS` , and`--pretty` . | \n| `gtfa snapshot <term>` | Multi-tier calibrated traffic, related queries, verdict, SVG charts, `--egress` , and per-request`--timeout MS` . | \n| `gtfa compare <kw> [<kw> ...]` | Relative interest for 1–5 distinct keywords (also `--query` mode); optional`--calibrate` for`batchVolume` and`--egress` . | \n| `gtfa now --geo US` | Trending Now by country; `--hours` is the Now window; supports`--egress` . | \n| `gtfa baselines [--sync]` | Inspect the active MEKA calibration baseline catalog or manually sync the latest catalog from `meka.im` . | \n| `gtfa doctor` | Check Node, Google Trends reachability, proxy, and one `gpts` US 24h fetch.`--timeout MS` bounds each network check; a challenge or HTTP 429 stops before the live fetch.`--json` for machines. | \n\nFull flags and examples: [reference](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md#cli-surface).\n\n`gtfa ask --pretty` indents JSON for ordinary asks, validation batches, diffs, and errors while `ask --validate` without `--json` remains a table; `--timeout MS` applies to each Explore request rather than the whole call, so slow VMs can set it up to 60000.\n\n`snapshot`, `ask --validate`, and `compare --calibrate` put terms and MEKA regional anchors on one shared 0–100 scale, then compute `traffic = round(score ÷ anchorLevel × dailySearches)`. These are anchor-based estimates, not measured Google search volume. Traffic stays `null` when no calibration exists or the anchor fails its reliability gate.\n\nAll surfaces (Library API, CLI, MCP, Apify Actor, and dsh) share the same **MEKA v1 baseline catalog** (59 Google Ads Keyword Planner anchors across 7 regions, revision `2026-11-19`, synced once on initial install/first boot and updated manually via `gtfa baselines --sync` or dsh Settings). When `trends_snapshot` runs without a pinned anchor and round 1 is out of range, it automatically performs one second-round multi-tier MEKA retry and upgrades `anchor` / `traffic` if rescued.\n\nCalibration baselines—including version 2 files and user-provided anchor rows—apply only to **web searches in category 0**. A CLI filter using another property or category can still return relative interest, but `traffic` / `traffic7d` objects remain with their searches/day fields set to `null` and an explanation; the version 2 format is unchanged. Only snapshot Popular/Rising rows retain `estDaily` for schema compatibility, and it is always `null`: those related lists do not share the primary term's scale. Ask tables do not contain `estDaily`.\n\nSnapshot defaults to `now 7-d` (reusing the primary series for `chart7d` / `traffic7d` with no extra request). For a primary window other than `now 7-d`, it tries the separate 7-day request sequentially after the primary attempt finishes unless the primary ended in `BLOCKED` or `RATE_LIMITED`; other errors such as `NETWORK_ERROR` do not by themselves prevent that attempt. If the attempt is skipped, the empty chart, null traffic, and baseline metadata are returned with a warning. Caller cancellation or the overall deadline propagates through the whole snapshot and is not converted into those normal fallback fields.\n\n| Region | Default anchor | Baseline (searches/day) | Tiers in catalog | \n|---|---|---|---|\n| US ( `US` ) | `sudoku` | **88,000/day** , ±50% | 10 anchors | \n| Canada ( `CA` ) | `sudoku` | **15,000/day** , ±50% | 7 anchors | \n| United Kingdom ( `GB` ) | `crossword solver` | **27,000/day** , ±50% | 8 anchors | \n| Germany ( `DE` ) | `Kreuzworträtsel` | **22,000/day** , ±50% | 8 anchors | \n| France ( `FR` ) | `sudoku` | **22,000/day** , ±50% | 8 anchors | \n| Japan ( `JP` ) | `テトリス` | **18,000/day** , ±50% | 8 anchors | \n| Worldwide ( `\"\"` ) | `stopwatch` | **160,000/day** , ±50% | 10 anchors | \n\nUnsupported regions and sparse data retain `null` traffic. See [regional values, sources and validation](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/baselines.md) and [Calibration and the anchor](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md#calibration-and-the-anchor) for overrides, version 2 baseline files, and null-traffic rules.\n\n[Client setup](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/clients.md) · [Reference](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/reference.md) · [MCP field guide (中文)](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/mcp-api.md) · [Architecture](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/assets/architecture.svg) · [Changelog](https://github.com/meka-im/google-trends-for-agent/blob/main/CHANGELOG.md) · [Baselines](https://github.com/meka-im/google-trends-for-agent/blob/main/examples/baselines.json)\n\nTests use local fixtures and mocked transports; they do not call Google.\n\nSee [automated checks and dsh compatibility testing](https://github.com/meka-im/google-trends-for-agent/blob/main/docs/testing.md) for CI,\nsettings interactions, and the real Host baseline checks.\n\n```\nnpm install\nnpm test\nnpm run typecheck\nnpm run build\nnpm run trends -- --help\n```\n\n- [Interactive Demo & Docs](https://meka.im/google-trends-for-agent) — live walkthrough, client setup tabs, and egress comparison.\n- [59 Open Google Ads Calibration Anchors (JSON)](https://meka.im/datasets/google-trends-anchors) — auditable daily search volume baselines across 7 regions.\n- [How to Fix `pytrends` HTTP 429 & Broken Endpoints (2026)](https://meka.im/blog/fix-pytrends-429-too-many-requests-broken-endpoints) — root-cause breakdown, 2026 alternatives comparison, and step-by-step migration.\n- [How to Get Real Daily Search Volume from Google Trends (Not 0–100)](https://meka.im/blog/get-real-daily-search-volume-from-google-trends) — anchor calibration math, SEO rising-query workflows, and`pandas` CSV export.\n- [MEKA Platform](https://meka.im) — structured web data APIs, tools, and datasets for AI agents.\n\nMIT. See [LICENSE](https://github.com/meka-im/google-trends-for-agent/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration", "canonical_source": "https://github.com/meka-im/google-trends-for-agent", "published_at": "2026-12-01 13:12:01+00:00", "updated_at": "2026-12-01 13:19:56.697659+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "generative-engine-optimization"], "entities": ["google-trends-for-agent", "gtfa", "pytrends", "Google", "Google Ads", "Apify", "Claude Code", "Cursor"], "also_reported_by": [], "takeaway": "gtfa replaces pytrends' relative 0–100 curves with daily search volume calibrated against 59 Google Ads anchors, and avoids 429 errors by running on a local IP or your own HTTPS_PROXY at $0 with no quota cap.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration", "markdown": "https://wpnews.pro/news/show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration.md", "text": "https://wpnews.pro/news/show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration.txt", "jsonld": "https://wpnews.pro/news/show-hn-open-source-pytrends-alternative-with-google-ads-anchor-calibration.jsonld"}}