I am using the very simple code to find the data of the keyword by region. But everytime i ran it, it gives me 429 error, prompting that too many requests have been made but infact the request was made very first time and never before. The error i am getting is mentioned below.
raise exceptions.TooManyRequestsError.from_response(response) pytrends.exceptions.TooManyRequestsError: The request failed: Google returned a response with code 429
Here is the code, i am running.
import pandas as pd
from pytrends.request import TrendReq
pytrend = TrendReq()
kw_list = ["Blockchain"]
pytrend.build_payload(kw_list, cat=0, timeframe='today 12-m', geo='', gprop='')
# Interest by Region
df = pytrend.interest_by_region()
df.head(10)