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.
Authentication
To authenticate your API requests, include your API key in the query of each call:
https://api.roic.ai/v1/rql/?query=...&apikey=637dsjx15354323940830387c1524100c0Pandas 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\nGoogle 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:
Open Google Sheets and Create a New Spreadsheet:
Navigate to Google Sheets.
Click on "Blank" or the "+" icon to start a new spreadsheet.
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.
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.
Insert the Custom Function Code:
Copy the code for your
=RQLfunction.Paste this code into the script editor, replacing any existing placeholder script.
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.
Use the
=RQLFunction 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
Do not forget to replace `YOUR_API_KEY` with your actual api key in the script. You can find it on the Settings page.
Last updated
Was this helpful?