Home › Forums › The XBRL API › Getting statements and searching on network.role-description
- This topic has 3 replies, 2 voices, and was last updated 4 years, 5 months ago by David Tauriello.
-
AuthorPosts
-
-
Monday, July 20, 2020 at 3:36 PM #184734Arthur OlevskiyParticipant
Hi,
Sorry if it was asked already.
I use this endpoint to get concept.local-name and fact.value data:https://api.xbrl.us/api/v1/report/11572/fact/search?fields=period.calendar-period,concept.local-name,fact.value
Unfortunately, I didn’t figure out with following issues:
1. How I can get only facts from cash flow/income/balance sheet statement?
1.1 By the way, what parameters I can use for network.role-description= …
2. Can I get both facts base taxonomy and company specific taxonomy?Thank you so much.
-
Tuesday, July 21, 2020 at 10:50 AM #184753David TaurielloKeymaster
Hi Arthur – please see https://xbrl.us/forums/topic/extracting-data-from-a-particular-financial-statement for how to get statement data. There’s also a Google Sheet template – https://xbrl.us/xbrl-api-explorer with queries that might be helpful.
The
network.role-description
parameter is a text field. It can be manipulated with astringmatch
parameter using a couple of options (this needs to be added to our documentation):- use like to find the string –
https://api.xbrl.us/api/v1/relationship/search?dts.id=306447&network.link-name=presentationLink&network.role-description=consolidate income&stringmatch=network.role-description(like)&fields=network.role-description,relationship.id.sort(ASC),relationship.tree-sequence.sort(ASC),relationship.target-name
returns nothing because the string consolidate income doesn’t exist in this
network.role-description
– remove one of the terms and you get results. - use ts to find when each word in the string exists –
https://api.xbrl.us/api/v1/relationship/search?dts.id=306447&network.link-name=presentationLink&network.role-description=consolidate income&stringmatch=network.role-description(ts)&fields=network.role-description,relationship.id.sort(ASC),relationship.tree-sequence.sort(ASC),relationship.target-name
Last, unless you’re using the ‘concept.is-base’ parameter to filter facts, the query will return both base and extension concepts (see documentation https://xbrl.us/xbrl-api-documentation).
- use like to find the string –
-
Wednesday, July 22, 2020 at 6:26 PM #184795Arthur OlevskiyParticipant
Thank you David. It clarifies a lot.
By the way, using “stringmatch” can I exclude Disclosures and etc?
And I think last question. If I want to get fact of particular statement, can I put following values for “network.role-description”: consolidate income, cash flow and balance sheet, and it will be valid?
-
Thursday, August 6, 2020 at 5:35 PM #185238David TaurielloKeymaster
Arthur – sorry for the slow response. The stringmatch parameter is simple text only – no regex or wildcards are currently possible, so excluding results can be complex, especially given that the
network.role-description
is a user-defined field, with each company permitted to describe statements and disclosures as they see fit.I hope by now you tried the query with multiple statements – IMO, you might get a closer approximation to face financials if you use (ts) with something like ‘statement balance cash income’ – ?
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Search Forums
Recent Topics
Recent Replies
-
Spreadsheet Commands: Query Worksheet and Query Workbook Query Workbook 2 months, 3 weeks ago
-
Query for multiple dimensions 4 months, 3 weeks ago
-
Query for multiple dimensions 4 months, 3 weeks ago
-
Showdata function 7 months, 1 week ago
-
Showdata function 7 months, 1 week 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
- 2024 US GAAP Taxonomy Viewer
- Live support - Monday, 3:30 - 4:30 PM ET
Who's using this free data?
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.