{
  "schema_version": 1,
  "workflow": "semrush-competitor-keywords",
  "mode": "offline",
  "example": "Fictional, abridged Semrush Domain Analytics responses. Replay with the saved responses and compare the output with expected.",
  "report": {
    "method": "GET",
    "path": "/apis/v4/domain-analytics/v1/organic-search/keywords/monthly",
    "name": "Get Monthly Organic Positions",
    "parameters": {
      "scope": "ROOT_DOMAIN",
      "country": "US",
      "device_type": "DESKTOP",
      "month": "2026-10",
      "position_type": "ORGANIC",
      "limit": 3
    }
  },
  "samples": {
    "own": {
      "domain": "harbor-roofing.example",
      "response": {
        "meta": { "success": true, "status_code": 200, "country": "US", "device_type": "DESKTOP", "scope": "ROOT_DOMAIN", "month": "2026-10", "limit": 3, "url": "https://harbor-roofing.example" },
        "data": [
          { "keyword": "roof repair brooklyn", "position": 11, "url": "https://harbor-roofing.example/roof-repair" },
          { "keyword": "roof inspection brooklyn", "position": 6, "url": "https://harbor-roofing.example/roof-inspection" }
        ]
      }
    },
    "competitor": {
      "domain": "north-pier-roofing.example",
      "response": {
        "meta": { "success": true, "status_code": 200, "country": "US", "device_type": "DESKTOP", "scope": "ROOT_DOMAIN", "month": "2026-10", "limit": 3, "url": "https://north-pier-roofing.example" },
        "data": [
          { "keyword": "roof repair brooklyn", "position": 4, "url": "https://north-pier-roofing.example/roof-repair" },
          { "keyword": "emergency roof repair brooklyn", "position": 9, "url": "https://north-pier-roofing.example/emergency-repair" }
        ]
      }
    }
  },
  "expected": [
    { "keyword": "emergency roof repair brooklyn", "own_position": null, "own_url": null, "competitor_position": 9, "competitor_url": "https://north-pier-roofing.example/emergency-repair", "comparison": "competitor_sample_only" },
    { "keyword": "roof inspection brooklyn", "own_position": 6, "own_url": "https://harbor-roofing.example/roof-inspection", "competitor_position": null, "competitor_url": null, "comparison": "own_sample_only" },
    { "keyword": "roof repair brooklyn", "own_position": 11, "own_url": "https://harbor-roofing.example/roof-repair", "competitor_position": 4, "competitor_url": "https://north-pier-roofing.example/roof-repair", "comparison": "both_samples" }
  ]
}
