How to fill the SEO Split Test Calculator with DataForSEO
============================================================

Data source: DataForSEO Labs: Ranked Keywords (every keyword a domain ranks for, with its ranking URL, position and volume).
DataForSEO supplies the URL or query list and the audit trail; you add the measurements listed below.

1. Request the data
   POST https://api.dataforseo.com/v3/dataforseo_labs/google/ranked_keywords/live
   Body:
   [
     {
       "target": "yourdomain.com",
       "location_code": 2840,
       "language_code": "en",
       "limit": 1000
     }
   ]
   Auth: HTTP Basic with your DataForSEO API login and password. Keep credentials out of shared files.

2. Save the complete JSON response (not just the task ID) next to this folder, e.g. response.json.

3. Convert it to the input CSV (offline, Python 3.10+, no API call, no credentials):
   python3 Automation/dataforseo_import.py import --template 33 --input response.json --output my-inputs.csv

4. Complete the columns DataForSEO can't supply:
   - Experiment ID
   - Treatment before
   - Treatment after
   - Control before
   - Control after
   - Hypothesis
   - Pretrend reviewed
   - Evidence

5. Open the workbook, clear the demo rows in Workspace (lime input cells only), and paste the CSV values at cell A13.

Filled automatically: the audit trail only (Source reference)
Source reference fills automatically with the task ID, endpoint, location, language, device and snapshot time, so every row is traceable.

Costs: estimate them first with the DataForSEO Cost Calculator (template 38). Live endpoints cost more than task_post/task_get.
Docs: https://docs.dataforseo.com/v3/