Skip to main content
Version: v5

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.sec.schema_files(provider='sec')
# Explore XBRL taxonomies progressively.
# List all available taxonomy families
obb.sec.schema_files(provider='sec')
# List components for US GAAP (latest year)
obb.sec.schema_files(taxonomy='us-gaap', provider='sec')
# List presentation components for US GAAP 2024
obb.sec.schema_files(taxonomy='us-gaap', year=2024, provider='sec')
# Get the Statement of Income presentation structure
obb.sec.schema_files(taxonomy='us-gaap', year=2024, component='soi', provider='sec')

Parameters​


Returns​

results: SchemaFiles

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​