Google Trend¶
Google
¶
Google(api_key=None, **kwargs: Any)
Bases: API
Client to fetch Google trend data from DataMaxi+ API.
Parameters:
-
api_key
(str
, default:None
) –The DataMaxi+ API key
-
**kwargs
(Any
, default:{}
) –Keyword arguments used by
datamaxi.api.API
.
keywords
¶
keywords() -> List[str]
Get Google trend supported keywords
GET /api/v1/google/keywords
https://docs.datamaxiplus.com/rest/trend/google/keywords
Returns:
-
List[str]
–List of supported Google trend keywords
trend
¶
trend(
keyword: str, pandas: bool = True
) -> Union[List, pd.DataFrame]
Get Google trend for given keyword
GET /api/v1/google/trend
https://docs.datamaxiplus.com/rest/trend/google/trend
Parameters:
-
keyword
(str
) –keyword to search for
-
pandas
(bool
, default:True
) –Return data as pandas DataFrame
Returns:
-
Union[List, DataFrame]
–Google trend data