Getting Started

To start using the Roic AI API, you’ll need an API key which can be obtained on the Settings page by registering on our website and subscribing to a Professional plan.

The API and Excel plugin are available only on the Professional plan.

Authentication

To authenticate your API requests, include your API key in the query of each call:

https://api.roic.ai/v1/rql/?query=...&apikey=637dsjx15354323940830387c1524100c0

Pandas Dataframes

To easily import data into a pandas dataframe, you can use the dataformat=csv parameter.

Just append &dataformat=csv to the end of your query.

Example output:

fiscal_year,2023\nperiod_label,2023\nperiod_end_date,2023-09-30\nis_sales_revenue_turnover,383285000000.00000000\n

Google Sheets Add-on

We've tried very hard to get past the review process for the Google Sheets add-on. But this company is too sluggish and we're still waiting for the review to finish.

For now, you can use the custom Google Script.

Installation

Video version

Text version:

  1. Open Google Sheets and Create a New Spreadsheet:

    • Navigate to Google Sheets.

    • Click on "Blank" or the "+" icon to start a new spreadsheet.

  2. Access the Extensions Menu:

    • In the new version of Google Sheets, click on the “Extensions” menu in the toolbar.

    • Select “Apps Script” from the dropdown menu.

  3. Set Up Your Apps Script Project:

    • A new tab will open with the Google Apps Script editor.

    • The script will be automatically linked to your Google Spreadsheet.

  4. Insert the Custom Function Code:

    • Copy the code for your =RQL function.

    • Paste this code into the script editor, replacing any existing placeholder script.

  5. Save and Name Your Script:

    • Click the floppy disk icon or select "File" > "Save" to save your script.

    • Enter a name for your script project if prompted.

  6. Use the =RQL Function in Your Spreadsheet:

    • Return to your Google Spreadsheet.

    • In a cell, start typing =RQL() and fill in the necessary parameters to execute your custom function.

Google Script

Last updated

Was this helpful?