# โœ… SIMPLIFIED FLOW - Informational Keywords Only ## ๐ŸŽฏ What Changed ### 1. **Fixed Domain Format** (Critical!) **Before (WRONG):** ``` *|or|competitor1|+|or|competitor2|-|or|client ``` **After (CORRECT per [SEMrush Tutorial](https://developer.semrush.com/api/basics/api-tutorials/analytics-api/#analyze-keyword-gaps-among-competitors/)):** ``` -|or|client|+|or|competitor1|+|or|competitor2 ``` ### 2. **Removed Unnecessary Complexity** - โŒ Removed "At Least One Competitor" tab - โŒ Removed "All Competitors Have" tab - โœ… **Just show: Informational Gap Keywords (Intent=1)** ### 3. **Added phrase_this Validation** - โœ… Checkbox enabled by default - โœ… Each keyword hits: `https://api.semrush.com/?type=phrase_this&phrase=KEYWORD&export_columns=In` - โœ… Cost: 10 units per keyword - โœ… Shows in Network tab ### 4. **Simplified Output** - โœ… Domain Metrics (kept) - โœ… Informational Gap Keywords only - โœ… API Usage Report with phrase_this breakdown - โŒ No complex tabs or multiple views --- ## ๐Ÿ”„ Complete Flow (Simplified) ``` USER FILLS FORM โ”œโ”€ Client: evendigit.com โ”œโ”€ Competitor 1: infidigit.com โ”œโ”€ Competitor 2: ignitevisibility.com โ”œโ”€ Display Limit: 100 โ””โ”€ โœ… Validate with phrase_this (checked) โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ STEP 1: domain_domains API Call โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ GET /api/semrush/?type=domain_domains &domains=-|or|evendigit.com|+|or|infidigit.com|+|or|ignitevisibility.com &display_limit=100 &export_columns=Ph,P0,P1,P2,In,Nq,Kd,Co,Cp Response: 68 keywords (all intents) Cost: 680 units โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ STEP 2: phrase_this API Validation โ”‚ โ”‚ (EACH keyword validated) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ For EACH of the 68 keywords: 1. GET /api/semrush/?type=phrase_this&phrase=seo+tips&export_columns=In Response: Intent=1 โ†’ โœ… KEEP 2. GET /api/semrush/?type=phrase_this&phrase=buy+seo+tools&export_columns=In Response: Intent=3 โ†’ โŒ REMOVE 3. GET /api/semrush/?type=phrase_this&phrase=seo+guide&export_columns=In Response: Intent=1 โ†’ โœ… KEEP ... (65 more API calls) Total phrase_this calls: 68 Cost: 68 ร— 10 = 680 units Result: 46 keywords with Intent=1 โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ STEP 3: Fetch Domain Metrics โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ Parallel calls for 3 domains: - domain_ranks (3 calls ร— 10 = 30 units) - backlinks_overview (3 calls ร— 10 = 30 units) - backlinks_refdomains (3 calls ร— 100 = 300 units) Cost: 360 units โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ STEP 4: Display Results โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ๐Ÿ“Š API Usage Report โ”œโ”€ Total Units: 1,720 โ”œโ”€ Cost: $0.086 โ””โ”€ phrase_this: 68 calls, 680 units ๐ŸŽฏ Informational Gap Keywords: 46 โ”œโ”€ Keywords competitors have, client doesn't โ””โ”€ All verified as Intent=1 (Informational) ๐Ÿ“ Domain Metrics (3 domains) โ”œโ”€ Client: evendigit.com โ”‚ โ”œโ”€ Authority Score: 29 โ”‚ โ”œโ”€ Organic Traffic: 73 โ”‚ โ””โ”€ Organic Keywords: 641 โ”œโ”€ Competitor 1: infidigit.com โ””โ”€ Competitor 2: ignitevisibility.com ``` --- ## ๐Ÿงช Console Output Example When you run with `validateWithPhrasethis=true`, you'll see: ```bash โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ” PHRASE_THIS API VALIDATION - Intent Verification โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ“Š Keywords to validate: 68 ๐Ÿ’ฐ Cost: 68 keywords ร— 10 units = 680 units ๐Ÿ’ต Estimated: $0.0340 ๐Ÿ” API: https://api.semrush.com/?type=phrase_this&phrase=KEYWORD&export_columns=In โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• [BATCH 1/7] Validating keywords 1-10... 1. "seo tips" (Volume: 5400) 2. "seo guide" (Volume: 3200) 3. "content marketing" (Volume: 2100) ... [API CALL] phrase_this for "seo tips" URL: /api/semrush/?type=phrase_this&phrase=seo+tips&database=us&export_columns=In&key=*** Cost: 10 units Response: Intent = 1 [RESULT] "seo tips" - Intent: Informational (1) โœ… INFORMATIONAL โœ… "seo tips" โ†’ Intent=1 (Informational) - KEPT โŒ "buy seo tools" โ†’ Intent=3 (Transactional) - FILTERED OUT โœ… "seo guide" โ†’ Intent=1 (Informational) - KEPT [BATCH 1] โœ… Complete: 7/10 keywords are Informational ... (batches 2-7) โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ“Š VALIDATION COMPLETE โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ“ฅ Keywords received: 68 ๐Ÿ” API calls made: 68 โœ… Keywords validated (Intent=1): 46 โŒ Keywords filtered out: 22 ๐Ÿ’ฐ Total units consumed: 680 units ๐Ÿ’ต Total cost: $0.0340 โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ``` --- ## ๐ŸŒ Network Tab - You'll See ``` Name Status Type Size โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ domain_domains?key=...&domains=-|or|... 200 xhr 2.1kB phrase_this?phrase=seo+tips&... 200 xhr 15B phrase_this?phrase=buy+seo+tools&... 200 xhr 15B phrase_this?phrase=seo+guide&... 200 xhr 15B phrase_this?phrase=content+marketing&... 200 xhr 15B ... (64 more phrase_this calls) domain_ranks?domain=evendigit.com&... 200 xhr 156B domain_ranks?domain=infidigit.com&... 200 xhr 156B domain_ranks?domain=ignitevisibility.com&... 200 xhr 156B backlinks_overview?target=evendigit.com&... 200 xhr 245B ... (more backlink calls) ``` --- ## โœ… What You Get 1. **API Usage Report** - Shows total units, cost, and phrase_this breakdown 2. **Informational Gap Keywords** - ONLY Intent=1 keywords (simplified!) 3. **Domain Metrics** - Authority Score, Traffic, Keywords, Backlinks 4. **No unnecessary tabs** - Clean, single view --- ## ๐Ÿš€ Ready to Test! 1. **Refresh browser** (Cmd+Shift+R) 2. **Fill form:** - Client: `evendigit.com` - Competitor 1: `infidigit.com` - Competitor 2: `ignitevisibility.com` - Display Limit: `100` - โœ… **Validate with phrase_this** (checked by default) 3. **Open Network tab** 4. **Click "Run Unified Analysis"** 5. **Watch phrase_this calls appear!** ๐ŸŽ‰ Each keyword will hit the phrase_this API and you'll see it in the Network tab!