Skip to content

🧮 R wrapper for the SharedCount API

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

news-r/sharedcount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R wrapper to the SharedCount API.

Installation

# install.packages("devtools")
devtools::install_github("news-r/sharedcount")

Functions

Functions that directly call API:

  • sc_set - Setup your session.
  • sc_status - Check API status.
  • sc_quota - Check quota allocation.
  • sc_usage - Check historical usage.
  • sc_domains and sc_whitelist - Retrieve whitelisted domains.
  • sc_count - Get share count of URL.
  • sc_bulk_p and sc_bulk_g - POST bulk URLs and GET their counts.

Convenience funtions:

Since bulk requests (sc_bulk_p and sc_bulk_g) are not part of the free plan, there is a convinience function for free users to call multiple urls in one function but multiple calls.

  • sc_count_n

Setup

Get a free key from the sharedcount.com website.

sharedcount_key(key = "xxXXxxXxxXXxX")

Note that you can specify the SHAREDCOUNT_API_KEY key as an environment variable in your .Renviron for convenience.

Example

All functions start with sc_, at the exception of the one to setup your session sharedcount_key.

sharedcount_key(key = "xxXXxxXxxXXxX")

sc_count("https://cran.r-project.org/")

About

🧮 R wrapper for the SharedCount API

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages