Calculator

import requests api_key = “your_api_key” domain = “yourdomain.com” url = f”https://api.semrush.com/?type=domain_organic&key={api_key}&export_columns=Ph,Nq,Cp,Co,Nr,Td&domain={domain}” response = requests.get(url) if response.status_code == 200: data = response.json()[“data”] for keyword_data in data: keyword = keyword_data[“Ph”] search_volume = keyword_data[“Nq”] competition = keyword_data[“Cp”] # You can use this keyword data to generate your own list of keywords else: print(“Error: Could not retrieve keyword data”)