SoftwareImpacts / SIMPAC-2024-32

An R package to access the Google Trends API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtrendsAPI

The goal of gtrendsAPI is to provides a platform to access data from the official Google Trends API through R.

Installation

You can install the development version of gtrendsAPI from GitHub like so:

# install.packages("devtools")
devtools::install_github("racorreia/gtrendsAPI", build_vignettes = T)

Example

This is a basic example which shows you how to solve a common problem:

# Load the gtrendsAPI package
library(gtrendsAPI)
# Query the Google Trends API for worldwide search data on the word 'apple'
# apple_sv <- getGraph("apple", api.key = "YOUR_API_KEY")

Examples of the use of each function available in this package are provided in the function help, which can be accessed like so:

# Get function help
?getGraph

About

An R package to access the Google Trends API

License:Other


Languages

Language:R 100.0%