Home › Forums › The XBRL API › Missing Data – Costco Wholesale Corp
- This topic has 11 replies, 4 voices, and was last updated 3 years, 8 months ago by David Tauriello.
-
AuthorPosts
-
-
Sunday, August 23, 2020 at 2:26 PM #185545Angelo BriziParticipant
1)
/api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2019&period.fiscal-period=Y&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.valuereturns 152703000000
This is the 10-K filed on 2019-10-11 but the returned revenues are for the 12 months not the 3 months. The 10K reports 152703 (like the API) for the 12 months but only 34740 for the 3 months. How do I get the data for the 3 months (which should be 34740)?
2)
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2020&period.fiscal-period=1Q&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.valueThis correctly represents the Revenues for the filings 10Q on 2019-12-23. No issues here
3)
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2020&period.fiscal-period=2Q&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.valueThis is the 10Q filed on 2020-03-12 and it’s missing. Revenues should be 39072000000 but returned value is null
4)
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2020&period.fiscal-period=3Q&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.valueThis is the 10Q filed on 2020-06-04 and it’s missing. Revenues should be 37266000000 but returned value is null
Also data for 2019 2Q and 2019 3Q are missing.
-
Sunday, August 23, 2020 at 2:37 PM #185546Arthur OlevskiyParticipant
Hi Angelo,
I can help you with first issue. In your request, you specified “period.fiscal-period=Y” which is means 12 month. If you want get 3 quarters you can put following values: Y, 1Q, 2Q, 3Q, 4Q, 3QCUM, 1H, 2H. It depends on accounting data type if it is “duration” you need to put 3QCUM if data published “as for some date” you can put 3Q.
-
Sunday, August 23, 2020 at 2:42 PM #185547Arthur OlevskiyParticipant
As for me, it is better to get list of fact.id for specific filing and put it in request to get values.
-
Sunday, August 23, 2020 at 2:44 PM #185548Arthur OlevskiyParticipant
.
- This reply was modified 4 years ago by Arthur Olevskiy.
- This reply was modified 4 years ago by Arthur Olevskiy.
-
Sunday, August 23, 2020 at 4:31 PM #185551Angelo BriziParticipant
Hi Arthur,
thanks a lot for your feedback. How do you get the list of fact.id for the specific filing?For 2Q 2019, using either 2Q or 1H the query returns no data
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2019&period.fiscal-period=2Q,1H&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.value
Same thing for 3Q 2019, using either 3Q or 3QCUM no data
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2019&period.fiscal-period=3Q,3QCUM&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.value
or for 2Q 2020, using either 2Q or 1H still no data
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&period.fiscal-year=2020&period.fiscal-period=2Q,1H&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.value
Thanks again.
-
Tuesday, August 25, 2020 at 3:33 PM #185620Arthur OlevskiyParticipant
Hi Angelo,
I use this link
api/v1/relationship/tree/search?dts.id={dts_id}&network.link-name=calculationLink,presentationLink&format=flat&fields=relationship.target-datatype,relationship.target-concept-id,network.role-description.sort(ASC)
Also, you can play with requests in documentation (https://xbrlus.github.io/xbrl-api)
-
Tuesday, August 25, 2020 at 3:39 PM #185621Arthur OlevskiyParticipant
Then, you can get relationship.target-concept-id value and make following request
https://api.xbrl.us/api/v1/fact/search?concept.id=&dimension.is-base=false&dts.id={dts_id}&fact.ultimus-index=1&period.fiscal-period=&period.fiscal-year=&fields=fact.value,fact.inline-display-value,concept.local-name
concept.id same as relationship.target-concept-id. I put list of ids, fiscal period and fiscal year period to request’s params
-
Tuesday, August 25, 2020 at 6:00 PM #185625Angelo BriziParticipant
Thanks a lot Arthur
-
Thursday, August 27, 2020 at 10:33 AM #185663David TaurielloKeymaster
Hi Angelo – On your question about why you’re unable to return fact.value data for 2Q, 3Q or 3QCUM, it is because when we load the data, our process includes an algorithm to determine period.fiscal-period, based on a common reporting calendar framework with some flexibility for start/end dates and industry sector. Unfortunately, Costco’s timings don’t quite fit this expectation and as a result, we report the range as YYYY-MM-DD – YYYY-MM-DD.
api/v1/fact/search?concept.local-name=RevenueFromContractWithCustomerExcludingAssessedTax&entity.cik=0000909832&fact.ultimus=true&fact.has-dimensions=false&fields=fact.value,period.fiscal-period,entity.name,report.filing-date.sort(DESC)
I’ve raised this issue with the team and we’re looking at ways to address this as we process the data from the SEC. Check out this thread for a bit more discussion on fiscal v. calendar periods in the XBRL API: https://xbrl.us/forums/topic/reports-and-periods/#post-115421.
-
Thursday, August 27, 2020 at 6:48 PM #185677Angelo BriziParticipant
Hi David, thanks a lot for your explanation. That was very helpful.
-
Sunday, January 3, 2021 at 5:38 AM #188272AnonymousInactive
It is better to get list of fact.id for specific filing and put it in request to get values.
-
Tuesday, January 5, 2021 at 4:16 PM #188301David TaurielloKeymaster
Hi izrar – you can use a nested endpoint
/report/fact
to get the facts for a specific report without ’round-tripping’ to get the fact.id first. With the nested approach, you can get the value, id and all other attributes of the fact. See https://xbrlus.github.io/xbrl-api for details.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Search Forums
Recent Topics
Recent Replies
-
Query for multiple dimensions 3 weeks, 1 day ago
-
Query for multiple dimensions 3 weeks, 4 days ago
-
Showdata function 3 months, 1 week ago
-
Showdata function 3 months, 1 week ago
-
Showdata function 3 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.