- This topic has 5 replies, 2 voices, and was last updated 7 years, 2 months ago by .
Viewing 5 reply threads
Viewing 5 reply threads
- You must be logged in to reply to this topic.
Home › Forums › The XBRL API › Paging
There is a possibility to know how much property my request has
I want to import allconcept.local-name but there are more than 100
I think the offset does not work well if I understand correctly what it is supposed to do
Including ENDPOINT.offset(INTEGER) as part of fields returns additional records not displayed by in the initial set (see 7 Handling Paging in the XBRL API Documentation for complete details).
See https://xbrl.us/benefits for details and let me know if you have questions about XBRL US Membership.
Funny but if you use this way
https://api.xbrl.us/api/v1/concept/search?dts.id=305444&concept.is-monetary=true&fields=concept.local-name,concept.balance-type.sort(ASC)
It does not work well with concept.offset()
But use the way
https://api.xbrl.us/api/v1/concept/search?dts.id=305444&concept.is-monetary=true&fields=concept.local-name.sort(ASC),concept.balance-type
Works fine
But how can I know how much fields or offset There is in my request
I’m working on Add on
And I do not really know if the user has a Member or not
But I do need to know how I bring him all the information he can get
I do not want to use the concept.limit(1) and concept.offset(i)
And check when I stop getting results In order to should know this is the end
It’s less Api friendly
Sorry for my English
Thanks for your feedback on counts – I’ve noted this as a feature request. As you’ve discovered, sorting on concept.balance-type is likely not reliable because the return will either be debit or credit. Using the sort switch on a field that will always have unique values for each row returned ensures the ENDPOINT.offset() works as expected.
Anyone using the XBRL API to return records from our Database of Public Filings will need to be authenticated (either through XBRL US or with a Google Account) – we use this to set maximums per page and for all pages returned to a user. See https://xbrl.us/benefits for details and let me know if you have questions about XBRL US Membership.
Ok I just let the user enter their password and username and Api codes
But I still do not understand how I can know how much fields or offset There in the request
If the user is not a member
So he can only see 100 fields
But can be for example 231 fields How can I know how many there are?
For example type of command ENDPOINT.fields.length
Or ENDPOINT.offset.length
something similar
Then I can know how many requests I have to make
To import all information
Hah
I realized there was no way right now
And that you write it down for future development
This is really important for the development of external applications
API Use 2024 || API Use 2023 || API Use 2022 || API Use 2021 || API Use 2020 || API Use 2019 || API Use 2018
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.