Skip to main content

schema_files

Explore SEC and FASB XBRL taxonomy schemas, labels, and presentation structures.

  • No parameters: list all available taxonomy families.
  • taxonomy only: get all parsed structures for the most recent year.
  • taxonomy + year: get all parsed structures for a specific year.
  • taxonomy + component: get one component's structure using the most recent year.
  • taxonomy + year + component: get one component's parsed structure.

Examples

from openbb import obb
obb.regulators.sec.schema_files()
# Explore XBRL taxonomies progressively.
# list all available taxonomy families
obb.regulators.sec.schema_files(provider='sec')
# list components for US GAAP (latest year)
obb.regulators.sec.schema_files(taxonomy='us-gaap', provider='sec')
# list presentation components for US GAAP 2024
obb.regulators.sec.schema_files(taxonomy='us-gaap', year=2024, provider='sec')
# Get the Statement of Income presentation structure
obb.regulators.sec.schema_files(taxonomy='us-gaap', year=2024, component='soi', provider='sec')

Parameters


Returns

results: SchemaFiles

Serializable results.

provider: Optional[Literal['sec']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data