The Financial Modeling Prep API is a tool that provides access to a wide range of financial data, including real-time stock prices, historical prices, and financial statements. The data is sourced from trusted sources and the API is easy to use and well documented.

Financial Modeling Prep has a Google Sheets add-on. You can either use their add-on to get data into your Google Sheets, or you can use the Apipheny add-on. The following tutorial is for Apipheny users.

In this tutorial, you will learn how to connect the Financial Modeling Prep API to Google Sheets using Apipheny in 5 steps:

  1. Install the Apipheny Add-on
  2. Obtain an API Key
  3. Choose an endpoint
  4. Enter your API request into Apipheny
  5. Run the API request in your Google Sheet

Step 1.) Install and open the Apipheny add-on for Google Sheets

Apipheny is a free API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to API data sources, easily.

1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace:

2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.

In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser:

Step 2.) Obtain an API Key

After signing up and logging into your Financial Modeling Prep account, you should see the API token displayed in your dashboard:

Copy your token to a safe location, because you’ll need it in the next steps.

Step 3.) Choose an endpoint

In this section, we’ll show you how to browse the Financial Modeling Prep API documentation to find the API URL which retrieves the information you need. If you already know your URL, or if you want to use the same example URL as us, just skip to Step 4.

First, open the Financial Modeling Prep API documentation page after you sign up for an account.

The left side of the documentation page lists different categories, each with its own endpoints:

An example endpoint is Quote, which gives you the latest bid and ask prices for a stock, as well as the volume and last trade price in real time. The URL for this endpoint is:[your_API_key]

If you use this URL, don’t forget to replace AAPL with the ticker of the company you want to get data for, and replace [your_API_key] with your actual API key

The endpoint’s documentation contains a short description of the endpoint’s purpose, the endpoint URI, a list of the accepted parameters, and an example response.

Step 4.) Enter your API Request into Apipheny

Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the Import tab. With the Import tab open, enter these details into the add-on:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 3, we explained how you can find the endpoint that you need. Now copy and paste your complete URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

For this example, we are using the Quote endpoint. This is what the whole URL looks like:[your_API_key]

If you use this URL, don’t forget to replace AAPL with the ticker of the company you want to get data for, and replace [your_API_key] with your actual API key

Headers are not required for this API request, you can leave that section blank in Apipheny.

Here’s what our API request looks like entered into Apipheny:

Step 5.) Run the API request

The last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the data to be imported into your Google Sheet.

Here’s what our request looked like when completed:

That’s it! You’ve successfully connected your Financial Modeling Prep account to Google Sheets using the Financial Modeling Prep API, Google Sheets API, and the Apipheny add-on.

After making a successful request to the Financial Modeling Prep API, try querying a different endpoint, or try using one of the more advanced features in the Apipheny add-on.

  • Save and schedule your API request
  • Make a POST request to the FMP API (if available)
  • Use the custom =APIPHENY() function to call the API request inside your spreadsheet
  • Create an API request by referencing the value of a cell in your API URL with three curly braces eg. {{{Sheet1!A1}}}

Popular API Tutorials

API Knowledge

What is an API?

What is an API URL?

What are parameters?

What is an endpoint?

What is an API key/token?

What is basic authentication?

What are headers?

What is a GET request?

What is a POST request?

Import JSON to Google Sheets

SEO by SearchCyrus