dgunning / edgartools

Navigate SEC Edgar data in Python
MIT License
522 stars 104 forks source link

Question about xbrl #145

Closed onthegit closed 1 week ago

onthegit commented 2 weeks ago

Hello, thanks for the project. When parsing XBRL, how to get the description of xbrl elements (e.g us-gaap:EMEAMember) and others?

https://xbrlsite.azurewebsites.net/2019/Prototype/references/us-gaap/Element-4838.html

explains that this is Regions of Europe, Middle East and Africa.

how do they retrieve this description? It is nowhere to be found in the filing.

Thanks.

dgunning commented 2 weeks ago

I think that comes from the xml linkbase schema. It won't be in the filing or XBRL parsed by edgartools

onthegit commented 2 weeks ago

Thank you for reply. Do you know where can I find this schema?

Is there xml or json schema on sec or other websites?

I searched everywhere and could not find these except on the link above.

dgunning commented 2 weeks ago

The schema is here https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd. The software is probably pulling to from that schema including one of the other schemas included in that one

onthegit commented 1 week ago

Thank you for your reply. When parsing the xbrl for balance sheet or other statements, how do you know which item belongs where? e.g Cash under current assets?

I have never used python, though I am familiar with other languages.