https://github.com/upi-0/google-trends-api
Shoot the trends.google.com API, and serve that response.
https://github.com/upi-0/google-trends-api
google python wrapper-api
Last synced: 2 months ago
JSON representation
Shoot the trends.google.com API, and serve that response.
- Host: GitHub
- URL: https://github.com/upi-0/google-trends-api
- Owner: upi-0
- Created: 2025-04-19T11:21:14.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-23T01:39:31.000Z (11 months ago)
- Last Synced: 2025-10-25T13:27:39.334Z (5 months ago)
- Topics: google, python, wrapper-api
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Google Trends API
This project provides a simple interface to fetch trend data from Google Trends using Python.
## Instalation
```bash
pip install git+https://github.com/Malykz/google-trends-api
```
## Usage
```python
>>> from google_trends import GoogleTrends
>>> GoogleTrends("id", last_hours=3).result
```
## Output
```json
[
{
"title": "man utd vs wolves",
"region": "ID",
"category": 17,
"searchVolume": 200000,
"breakdown": [
"man utd vs wolves",
"mu vs wolves",
"man united vs wolves",
"tempat menonton manchester united f.c. vs wolves",
"manchester united f.c. vs wolves",
"manchester united vs wolves",
"susunan pemain manchester united f.c. vs wolves",
"wolves",
"wolverhampton wanderers f.c.",
"wolverhampton wanderers fc"
]
},
. . .
]
```
## Disclaimer
Whatever the error is, I'm too lazy to make a handling for it. And if there is an error, it will return None.