Skip to content

Instantly share code, notes, and snippets.

View voltek62's full-sized avatar

Vincent Terrasi voltek62

View GitHub Profile
library(googleAnalyticsR)
# https://dataseolabs.com
## authentication with both GA and SC
options(googleAuthR.scopes.selected =
c("https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.readonly"))
@voltek62
voltek62 / api-semrush.R
Last active June 30, 2018 14:27
get SEO metrics from SEMrush API with R
library(dplyr)
# https://dataseolabs.com
# Doc : https://fr.semrush.com/api-documentation/
# Get your key here : https://fr.semrush.com/billing-admin/profile/subscription/api-units
# conf
keyAPI <- "YOURKEY"
domain <- "cnn.com"
country <- "fr"
@voltek62
voltek62 / api-majestic.R
Last active June 29, 2018 23:29
get TF and CF from Majestic API with R
library(httr)
library(urltools)
library(dplyr)
# https://dataseolabs.com
# Doc : https://developer-support.majestic.com/api/
# Create your key here : https://developer-support.majestic.com/security/
apiUrl <- "https://api.majestic.com/api/json?app_api_key="
apiKey <- "YOURKEY"
@voltek62
voltek62 / api-similarweb.R
Last active June 4, 2020 16:09
get Web Traffic Data from SimilarWeb API with R
library(httr)
library(jsonlite)
# https://dataseolabs.com
# Doc : https://www.similarweb.com/corp/developer/
# Create your key here : https://pro.similarweb.com/#/account/api-management
# You can have freely 3 Months of Web Traffic Data
# conf
myList <- c("cuisineaz.com","marmiton.org","odelices.com","allrecipes.fr")