SerpKeywords Data Architecture, PKD% & Backlink Toxicity Methodology
SerpKeywords combines DataForSEO v3 live SERP and 2-trillion backlink endpoints with official read-only Google Search Console OAuth (webmasters.readonly), 7-day PostgreSQL caching, deterministic Domain-Personalized Keyword Difficulty (PKD%), backlinks_spam_score toxicity rules, and native HTTP + Cheerio 8-bot AI readiness checks.
1. How Are Live SERPs, City CPC, and Rank Checks Collected?
SerpKeywords queries DataForSEO v3 Labs endpoints for domain overviews, keyword suggestions, search intent, and 5-way domain intersections, and schedules localized desktop and mobile City/ZIP rank checks through DataForSEO Standard Queue SERPs with asynchronous signed webhook callbacks.
Every research payload is cached in PostgreSQL (`SeoApiCache`) for 7 days so your whole team can inspect and export results for 0 credits. All default schedules operate on `America/Phoenix` (UTC-7, no DST) with per-project timezone overrides.
2. How Does Official Google Search Console OAuth Work?
SerpKeywords requests only Google’s read-only `https://www.googleapis.com/auth/webmasters.readonly` scope. Refresh tokens are encrypted at rest with AES-256-GCM and used exclusively to pull 7/28/90-day verified clicks, impressions, CTR, and multi-URL query cannibalization (`dimensions: ['query', 'page']`) directly inside your workspace.
3. How Are PKD%, Share of Voice (SoV%), and AI Overview Citations Computed?
- Domain-Personalized Keyword Difficulty (PKD%): Adjusts baseline keyword difficulty against the active project’s live Authority Score, clamped cleanly between 1% and 100%, paired with estimated Potential Traffic.
- CTR-Weighted Share of Voice (SoV%): Weights every tracked keyword’s current Google organic position against realistic position-based organic CTR curves (Position #1 through #20) so ranking improvements on Page 1 reflect real visibility gain.
- AI Overview Citation Detection: Inspects live SERP `ai_overview` elements on each scheduled rank check to record both AI Overview presence and whether your domain appears in the cited references (`Cited` vs. `Uncited`).
4. How Does Backlink Toxicity & 8-Bot AI Search Health Scoring Work?
Backlink toxicity reads live DataForSEO `backlinks_spam_score` values, risky exact-match anchor ratios, and broken link-farm patterns while whitelisting established web platforms before generating a UTF-8 Google Disavow file (`domain:...`).
AI Search Health runs via lightweight native `fetch()` + Cheerio (zero headless Chromium/Playwright overhead) to verify HTTP access rules for `OAI-SearchBot`, `GPTBot`, `ChatGPT-User`, `PerplexityBot`, `ClaudeBot`, `Google-Extended`, `Applebot-Extended`, and `CCBot`, plus `X-Robots-Tag`, `/llms.txt`, `/llms-full.txt`, and connected `@graph` JSON-LD.
Methodology FAQ
Where does SerpKeywords get its keyword, SERP, and backlink data?
SerpKeywords pulls live organic search rankings, local city CPC, search intent, keyword difficulty, and 2-trillion backlink metrics from DataForSEO v3 APIs, paired directly with verified first-party clicks and impressions from Google’s official Search Console OAuth API.
How does SerpKeywords calculate Domain-Personalized Keyword Difficulty (PKD%)?
PKD% adjusts each keyword’s baseline SERP difficulty against your active project’s domain authority score, giving smaller sites realistic targets while helping established domains spot fast Page 1 opportunities.
What spam threshold triggers a toxic domain in the disavow.txt generator?
Referring domains are flagged for review and Google disavow export when DataForSEO backlinks_spam_score reaches 50 or higher, when known casino/pharma/link-farm domain patterns appear on low-rank domains, or when broken link-farm ratios exceed 90%—while automatically whitelisting verified major publishers.