Home › Forums › The XBRL API › Getting started with the XBRL Google Sheet and add-on
- This topic has 28 replies, 11 voices, and was last updated 3 weeks, 4 days ago by
David Tauriello.
-
AuthorPosts
-
-
Monday, September 24, 2018 at 5:20 PM #111838
David Tauriello
KeymasterWatch an introductory webinar replay about retrieving data with the XBRL APIPlease follow the steps below to get data from the XBRL US Database of Public Filings in a Google Sheet.
Installation:
- install the XBRL API Access Add-on to your Google Account first, using Chrome browser. Want to use your existing email with these resources, without creating a Gmail account? Visit https://accounts.google.com/SignUpWithoutGmail.
We’ve had some users report issues when they have installed the add-on with Firefox and Edge.
- open a Google Sheet template and use the make a copy option under the File menu from within your Google account
Do not use the ‘request edit access’ option under the view button or ‘Add to My Drive’ under the file menu – these will not work. Using “Make a copy…” under the File menu creates an independent copy of the XBRL Spreadsheet in your Google Account
- activate the add-on with the XBRL API Access >> Authentication Menu
Click the login link in the panel that opens, and a browser window shows the XBRL US login prompt, where you can either login with your XBRL US Web account, or click ‘continue with Google’. Once you’re authenticated, a ‘Success! You can close this window.’ appears, and you can close the browser window that opened.
- after you’ve activated the Add-on, change the drop-down on the Main Sheet to a different query, OR change the tickers in the green background of the BScompare tab
A ‘loading…’ message should appear (replacing the #ERROR or #NAME? text), and you should see data populate cells and rows within 30 seconds, depending on network connectivity and the size of the result set queried.
- once you’ve confirmed the data is flowing to this file, try other Google Sheet resources linked at right
Troubleshooting:
If you’re having trouble getting data to appear in your copy of the Google Sheet, try the following in the listed order, and stop when your issue is resolved:
- If you’re using the ‘Sign on with Google’ option to login, make sure your Google Account has a password – this is a requirement.
- Open your copy of one of the Google Spreadsheet templates in the browser’s incognito (Chrome) or private (Edge) mode, then open the XBRL API Access Add-on’s Authentication panel and Authorize the XBRL API. Once the Add-on is authorized, make a change to the Google Sheet to initiate a query. When you return to the ‘regular’ browsing tab, the issue should be resolved (you might need to refresh the browser tab).
- Toggle ‘Use in this document’ and/or uninstall and re-install the XBRL API access Add-on. Choose the “Manage Add-ons” option under the Add-ons menu, click the three dots in the top-right corner of the XBRL API access Add-on. If you have a ‘Use in this document’ option with a checkmark, click to uncheck, then repeat to re-apply the check and return to the sheet to change/test a query.
If you’re still unable to return data, return to the three dots for the Add-on and uninstall. Reinstall the add-on from https://xbrl.us/xbrl-api-addon, then use the XBRL API Access Add-on menu option to display the right-side panel and click the Authorize link. Once the Add-on is authorized, make a change to the Google Sheet to initiate a query.
- Open your copy of the ‘XBRL Spreadsheet’ template, choose the ‘Config’ tab and copy / delete / restore the URLs in cells B2 and B3, then return to the ‘Main Sheet’ tab and change the query in cell B1 (make sure Display is set to ‘Query Results’).
This step breaks and resets valid uses of the =showData() function – you can also use search and replace to add a * in front of the initial = for all formulas in the Google Sheet (stopping the formulas), then reverse the find and replace to remove the * from the front of the formulas.
- move all copies of XBRL API Google Sheet templates to the trash and then make a new copy of XBRL Spreadsheet – https://xbrl.us/xbrl-api-spreadsheet.
- Clear the cache in your browser, then close and re-open your copy of the Google Sheet template.
Tried everything and it still won’t work? Post a reply here.
-
This topic was modified 2 years, 6 months ago by
David Tauriello.
-
This topic was modified 2 years, 6 months ago by
David Tauriello.
-
This topic was modified 2 years, 6 months ago by
David Tauriello.
-
This topic was modified 1 year, 6 months ago by
David Tauriello.
- install the XBRL API Access Add-on to your Google Account first, using Chrome browser. Want to use your existing email with these resources, without creating a Gmail account? Visit https://accounts.google.com/SignUpWithoutGmail.
-
Tuesday, October 23, 2018 at 5:30 AM #113573
Natasha Pchelko
ParticipantGetting error while activating the Add-on:
‘Error: Error retrieving token: unsupported_scope_type, Unsupported Scope Type (line 467, file “Service”, project “OAuth2”)’.
As a result can’t activate the add-on with the XBRL API Access >> Authentication Menu
-
Tuesday, October 23, 2018 at 9:36 AM #113587
David Tauriello
KeymasterHi Natasha – thanks for writing and apologies for the issue you had getting the add-on to authenticate. I’ve reset your record in our system – please try to use the add-on authentication again, and reply back if you’re still having issues.
-
-
Wednesday, December 5, 2018 at 4:28 AM #118034
Ashutosh Pandey
ParticipantData is not being loaded even after all the troubleshoots. Though CIK gets loaded for selected ticker.
-
Wednesday, December 5, 2018 at 12:33 PM #118064
David Tauriello
KeymasterHi Ashutosh – on the Main Sheet of the XBRL Spreadsheet, what do you see when you change the query dropdown (cell B2) to a different query?
Have you tried removing the add-on from your Google account (Add-ons >> Manage Add-ons) and then re-installing it to your Google account – ? If not, please try that and post a reply if you continue to have an issue (and please share the specific text that’s displayed where data should appear on Main Sheet (cell A11)
-
-
Thursday, December 6, 2018 at 2:57 AM #118102
Ashutosh Pandey
ParticipantIt Displays on A11 cell of main sheet as well as on A24 of BSCompare Sheet “No information returned”.
I have tried removing and reinstalling the add on also but did not work.
As I mentioned in the earlier post; when I change the ticker in the green cell of BSCompare Sheet the CIK also changes but other than that nothing happens.
-
Thursday, December 6, 2018 at 6:47 AM #118109
David Tauriello
KeymasterOn the XBRL API Access add-on’s Authentication menu that appears on the side of the Google Sheet, do both the ‘Authorize the API’ and ‘Logout’ links appear to work properly?
After clicking the ‘Authorize the API’ link, have you tried both login options (XBRL US Web Account / Continue with Google) with the same result?
If you’re able to use Chrome web browser, do you get the same result (no information returned)?
If you have downloaded multiple copies of the XBRL API Spreadsheet, please delete all but one of them, or at least move them to a folder in your Google Drive account.
The ticker uses a different call, so it will function regardless of the status of the XBRL API Access add-on.
-
-
Thursday, December 13, 2018 at 7:36 AM #118499
Ashutosh Pandey
ParticipantI am able to fetch the data by using google authentication. Thank you.
-
Wednesday, January 2, 2019 at 12:07 PM #119644
David Tauriello
KeymasterGetting ‘No Information Returned’ – ? Try this:
- Make (or open) a copy of this file in your Google account: https://xbrl.us/xbrl-api-spreadsheet
- Open the XBRL API add-on and click the authentication link so that your account is logged out
- Close and re-open Chrome browser (Chrome will work best here)
- Open the browser’s settings and clear the cache (maybe just the last 24 hours)
- Open your copy of the file in the link above
- Open the XBRL API add-on and click the link to authenticate – confirm you are logged out, first
- Select either authentication option (XBRL US web account or Continue with Google)
- Change the Main Sheet Query dropdown (cell B1) to any other query – data should now be flowing through the API via your account again.
Tried everything in this thread and it’s still not working? Post back and let us know you’re still not able to use the API with your account.
-
Wednesday, January 30, 2019 at 1:30 PM #121967
Kevin Donaghy
ParticipantHi
At the following step:
activate the add-on with the XBRL API Access >> Authentication Menu
Click the login link in the panel that opens, and a browser window shows the XBRL US login prompt, where you can either login with your XBRL US Web account, or click ‘continue with Google’. Once you’re authenticated, a ‘Success! You can close this window.’ appears, and you can close the browser window that opened.I receive the following error:
Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.I am using my Google account and Google password. I have also tried my XBRL.US password (username is identical to Google username).
Any suggestions?
Thanks
Kevin-
Wednesday, January 30, 2019 at 3:08 PM #121977
Kevin Donaghy
ParticipantIt appears that logging into to the XBRL.US website via my Google account resolved the issue. Thanks anyway
-
Friday, February 1, 2019 at 12:47 PM #122181
David Tauriello
KeymasterKevin – thanks for confirming you’re all set. This was actually caused by Google’s team, looking for additional details from us about the add-on.
-
-
Friday, March 22, 2019 at 5:16 PM #129657
James McKinney
ParticipantI could not get to work on Firefox – At the Authentication Menu, I was never given a menu to login – including following all of the steps anove. It did work on Chrome.
-
Monday, March 25, 2019 at 3:14 PM #130034
David Tauriello
KeymasterHi James – I’m confirming there’s an issue with the link to the Authentication Menu with Firefox. As a work-around, right-click (Windows) and open the Authentication Menu in a new tab or window, then proceed with credentials and close the tab upon ‘success’ messaging.
-
-
Monday, June 17, 2019 at 11:20 PM #143246
Elmhurst
ParticipantGetting an invalid request re-inserting URLs to Config sheet B2 and B3 “expired token.”
-
Tuesday, June 18, 2019 at 6:47 AM #143279
David Tauriello
KeymasterElmhurst – thanks for writing; open a ‘private’ or ‘incognito’ window and login to your copy of the XBRL API Spreadsheet. You’ll also need to login to the XBRL API add on under the tools menu.
Change at least one of the tickers from the default – this will trigger queries.
-
Tuesday, June 18, 2019 at 12:19 PM #143303
Elmhurst
ParticipantIt worked. Thanks!
-
-
Monday, June 17, 2019 at 11:21 PM #143247
Elmhurst
ParticipantHere is the correct image:
-
Wednesday, November 6, 2019 at 6:39 AM #156160
James McKinney
ParticipantGetting error in ALL and on the BSCompare tab. Sheet worked two days ago when testing. Repeated steps on a new machine, aPI install, and new copy of sheets and receive same message. Error
Request failed for https://api.xbrl.us returned code 401. Truncated server response: {“error”:”invalid_request”,”error_description”:”Bad or expired token”} (use muteHttpExceptions option to examine full response) (line 106).
Is there a problem with the server? A few students who attempted had the same problem.-
Wednesday, November 6, 2019 at 9:56 AM #156181
David Tauriello
KeymasterHi James – it sounds like you may have an expired token in your browser that’s not being properly cleared and refreshed. Please open the URL to your copy of the XBRL API Spreadsheet in the browser’s incognito (Chrome) or private (Edge) mode. When you return to the ‘regular’ tab, the issue should be cleared – you might need to refresh the browser tab.
Let me know if this does not resolve the issue, and thanks for your institution’s interest in XBRL – send a note to info@xbrl.us if there’s anything we can do to help your work on this topic.
-
-
Tuesday, May 12, 2020 at 2:01 AM #179416
Chinmay Laddha
ParticipantHello, Getting an error while changing the options in the drop-down menu:
Request failed for https://api.xbrl.us returned code 401. Truncated server response: {“error”:”invalid_request”,”error_description”:”Bad or expired token”} (use muteHttpExceptions option to examine full response) (line 106)
How to remove this error given my API is already authenticated
-
Tuesday, May 26, 2020 at 12:37 PM #181116
David Tauriello
KeymasterChinmay – you might need to clear the web browser’s cache to resolve this issue, as it sounds like there may be some older token detail that needs to be refreshed.
-
-
Saturday, September 12, 2020 at 12:48 AM #185957
morjanah
BlockedI could not get to work on Firefox
-
Monday, September 14, 2020 at 9:31 AM #185988
David Tauriello
KeymasterMorjanah – please review the instructions at the top of this post, and try installing the add-on to your Google Account using the Chrome web browser first, before moving to Firefox.
-
-
Wednesday, September 23, 2020 at 2:47 PM #186140
J C
ParticipantNote that this is the same for Safari. If you open it in a new tab, you can authenticate and refreshing the sheet should populate the data.
-
Monday, March 1, 2021 at 2:49 AM #189260
Robert Koppensteiner
ParticipantIs this XBRL Google Sheet and add-on free of charge ? or do I need to pay a membership fee ?
-
Monday, March 1, 2021 at 4:42 PM #189309
David Tauriello
KeymasterHi Robert – thanks for writing. Anyone can use the XBRL API and data from our Public Filings Database. XBRL US Members will return more rows with a query (if the additional rows exist), and all XBRL US Members except our Basic Individual Membership are not capped by the number of queries that can be made.
If you’re considering publishing an article or research based on conclusions drawn from use of our Database, or if you’re interested in commercial access, you’ll need an Organizational Membership.
See this page for complete details.
-
-
Thursday, March 25, 2021 at 11:07 PM #190383
hypnos hyp
ParticipantData is not being loaded even after all the troubleshoots. Though CILK gets loaded for selected ticker.
-
Friday, March 26, 2021 at 8:35 AM #190398
David Tauriello
KeymasterHi Hypnos – does the Google Sheet side panel appear when you use the menu options: Add-ons >> XBRL API Access >> Authentication Menu – ?
If the Authentication Menu shows you as logged in (logout button appearing in the panel), what happens if you create a new Google Sheet (not a copy of one of our templates), click your cursor into cell A1 and paste the following into the formula bar above the spreadsheet (you might need to remove line breaks):
=showData("https://api.xbrl.us/api/v1/fact/search?entity.cik=0001108524&concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-period=Y&period.fiscal-year=2020&fact.ultimus=true&fields=entity.name,period.fiscal-year.sort(DESC),fact.numerical-value,member.local-name.sort(ASC),dimensions")
If that doesn’t resolve the issue, what happens if you move to a browser on another computer (on a different network, if you’re in an organization or within a VPN) and log in?
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Search Forums
Recent Topics
Recent Replies
-
Getting started with the XBRL Google Sheet and add-on 3 weeks, 4 days ago
-
Getting started with the XBRL Google Sheet and add-on 3 weeks, 4 days ago
-
Statements Standardization 4 weeks, 1 day ago
-
Getting started with the XBRL Filed Data Add-in for Excel 1 month, 1 week ago
-
Getting started with the XBRL Filed Data Add-in for Excel 1 month, 1 week ago
Documentation & Discussion
- The XBRL API
- XBRL Data Community
- XBRL API Interactive Documentation
- Get started with Google Sheets OR
- Get started with Microsoft Excel OR
- Get access to as-filed data from us for other tools or your own app
Who's using this free data?
API Use 2021 || API Use 2020
API Use 2019API Use 2018
Join XBRL US
- Individual Options - Basic, Power User & Sole Practitioner
- For Your Team - Startup, Non-Profit, Academic & Corporate options
- Member Benefits Comparison Table
Using the XBRL API with the Public Filings Database
Unless otherwise agreed to in writing, any and all use of the XBRL API to authenticate and retrieve data from the XBRL US Database of Public Filings implies user consent and agreement with the XBRL US API Agreement. If you are unable to agree to these terms, do not use the XBRL API.
To use the XBRL API outside of Google Sheets, your account needs to be provisioned for OAuth2 access.
XBRL Data Events
In the Last Year:
Upcoming XBRL US Events









Comment
You must be logged in to post a comment.