Home › Forums › The XBRL API › Combining v1/relationship and v1/concept
- This topic has 1 reply, 2 voices, and was last updated 7 years, 7 months ago by David Tauriello.
-
AuthorPosts
-
-
Thursday, February 21, 2019 at 6:42 PM #124707Tim BuiParticipant
When I use code A below, I get the desired concept.local-names, but the call does not return the “network.role-description” (the financial statements where the concept came from)–even as I added different “relationship” items in the code.
A—=CONCATENATE(“https://api.xbrl.us/api/v1/concept/search?dts.id=257590&fields=concept.offset(0),concept.local-name.sort(ASC),concept.*,relationship.source-name,relationship.id,relationship.*,label.*”)
When I use code B below, I do get the “network.role-description”, which I need.
Is there a way that I can get the “network.role-description” to work in code A above?B–=CONCATENATE(“https://api.xbrl.us/api/v1/relationship/search?dts.id=257590&fields=concept.offset(2000),concept.local-name.sort(ASC),concept.*,relationship.source-name,relationship.id,relationship.*,label.*”)
Thank you!
-
Saturday, March 2, 2019 at 11:19 AM #126283David TaurielloKeymaster
I’m not clear on what you are trying to return, and as far as I know, there’s no intersection of
conceptandrelationshipin the API currently. Please see the diagram on p. 20 of the documentation – https://xbrl.us/xbrl-api-documentation.In the A query, you cannot get
relationshipdetails from theconceptendpoint, so those parameters should be removed from the ‘fields’ portion of the query. And with B, you cannot getconceptdetails from therelationshipendpoint, so those shouldn’t be included as ‘fields’ to return.Maybe you’re trying to use the
relationshipendpoint to get concepts included in a specific part of the filer’s report – ?A query like this will return details for Apple:
/relationship/search?network.id=37096851,37096836&relationship.target-is-abstract=false&network.link-name=presentationLink&fields=network.id.sort(ASC),relationship.tree-sequence.sort(ASC),relationship.*If you look at
relationship.target-namein the fields returned, these are the concepts included for the disclosures listed innetwork.role-description
-
-
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, 1 day 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.





