Intrinio Stock API


Intrinio offers a free API to access near real time and historical stock market prices and data.

This package wraps the Intrinio API for R so that the response data is easy to use.


This package can be installed via CRAN install.packages("IntrinioStockAPI").

To install the Github version, use devtools::install_github("intrinio/r-sdk").


Get Your Intrinio API Credentials

First, create an account for the Intrinio Stock API

Load the Library


Fetch Stock Price Data

For example, let’s grab daily prices for the Apple Security…

api_username <- "[YOUR API USERNAME]"
api_password <- "[YOUR API PASSWORD]"
intrinio_api_endpoint_url <- ""

apple_prices <- intrinio_fetch(intrinio_api_endpoint_url, api_username, api_password)

The intrinio_fetch function returns a data frame which can then be easily plotted as follows:


The intrinio_fetch function works for all Intrinio API endpoints. For example, the Executive Compensation API endpoint can be used as follows:

api_username <- "[YOUR API USERNAME]"
api_password <- "[YOUR API PASSWORD]"
intrinio_api_endpoint_url <- ""

tim_cook_comp <- intrinio_fetch(intrinio_api_endpoint_url, api_username, api_password)

Take Your Analysis Further

Full documentation for the Intrinio Financial Data API is available at