Home › Forums › The XBRL API › Limit Exceeded: URLFetch URL Length. (line 106).
- This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago by David Tauriello.
-
AuthorPosts
-
-
Saturday, December 22, 2018 at 5:34 PM #119077Tim BuiParticipant
Is there any way to increase the limit of the length on the code?
When I try to standardize a concept that is composed of more than 4 other concepts, I get an error “Limit Exceeded: URLFetch URL Length. (line 106)”
For example, if I want to have a standardized Selling, Gen & Admin Expenses (SGA_Tot) from these concepts below, I receive an error:
SellingGeneralAndAdministrativeExpense
GeneralAndAdministrativeExpense
SellingAdministrativeAndResearchAndDevelopmentExpenses
GeneralAndAdministrativeExpenseAndOtherOperatingExpenses
Thank you! -
Saturday, December 22, 2018 at 5:55 PM #119078Tim BuiParticipant
So far to get around the RL Length, I break the code into 2 and do the summation in Excel.
SGA1:SellingGeneralAndAdministrativeExpense, generalandadministrativeexpense,SellingAdministrativeAndResearchAndDevelopmentExpensesSGA2: GeneralAndAdministrativeExpenseAndOtherOperatingExpenses, OtherSellingGeneralAndAdministrativeExpense, SellingAndMarketingExpense
My question: is there a way to add the results of 2 or more concepts within an API code? This would help to reduce the number of calls.
Thanks -
Monday, December 24, 2018 at 7:29 AM #119121David TaurielloKeymaster
Tim – thanks for posting back with your solution to the issue in the initial post.
The message ‘Limit Exceeded: URLFetch URL Length.’ is a Google Services error (https://developers.google.com/apps-script/guides/services/quotas). According to the page, there’s a 2kB limit (about 2,000 characters).
Some things to try:
- restructure the query to eliminate any unnecessary filters/screens and/or fields returned (maybe there’s a more efficient way to call for the data you need)
- try a URL shortener (bit.ly is one such service) – I don’t have any experience with this, but it may be worthwhile if it works
-
-
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, 5 days ago
-
Income Statement data for a company 1 year, 4 months ago
-
Income Statement data for a company 1 year, 4 months ago
-
Using the offset parameter 1 year, 8 months ago
-
Using the offset parameter 1 year, 8 months ago
Documentation & Discussion
- 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
- XBRL API Interactive Documentation
- Ten Tips & Techniques
- The XBRL API
- XBRL Data Community
- 2026 US GAAP Taxonomy Viewer
- Live support - Monday, 3:30 - 4:30 PM ET
Who's using this free data?
API Use 2026 || API Use 2025 || API Use 2024 || API Use 2023 || API Use 2022 || API Use 2021 || API Use 2020 || API Use 2019 || API 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.





