{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tickerfacts-com/json-schema/tickerfacts-com-company-schema.json",
  "title": "Company",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tickerfacts-com-openapi.json#/components/schemas/Company",
  "properties": {
    "annual": {
      "description": "Newest period end first.",
      "items": {
        "$ref": "#/$defs/AnnualPeriod"
      },
      "type": "array"
    },
    "basis_breaks": {
      "description": "Years on a different basis from the year before (restated after a spin-off, discontinued operation or accounting change, while the year before kept its old basis). Do not compute a change or growth rate across one.",
      "items": {
        "properties": {
          "metric": {
            "type": "string"
          },
          "period_end": {
            "format": "date",
            "type": "string"
          }
        },
        "required": [
          "metric",
          "period_end"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "cik": {
      "type": "integer"
    },
    "coverage": {
      "$ref": "#/$defs/Coverage"
    },
    "data_quality": {
      "description": "Warnings about the figures themselves, such as out-of-scale values from a unit tagged wrongly.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "dataset_built_at": {
      "type": "string"
    },
    "dataset_sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "display_name": {
      "description": "Readable form of name for display; match filings on cik, not this.",
      "type": "string"
    },
    "evidence_url": {
      "type": "string"
    },
    "exchange": {
      "type": [
        "string",
        "null"
      ]
    },
    "latest_interim": {
      "properties": {
        "basis": {
          "type": "string"
        },
        "flows": {
          "description": "Flows cover the twelve months ending period_end; single quarters are in quarterly.",
          "enum": [
            "trailing_twelve_months"
          ]
        },
        "metrics": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricObservation"
          },
          "description": "Trailing-twelve-month flows (with period_start) and latest quarterly balances (period_start null).",
          "type": "object"
        },
        "period_end": {
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "period_end",
        "flows",
        "basis",
        "metrics"
      ],
      "type": "object"
    },
    "listing_status": {
      "description": "former: the company has left SEC's current ticker directory; its figures are its last filings and will not update.",
      "enum": [
        "current",
        "former"
      ]
    },
    "metric_definitions": {
      "additionalProperties": {
        "$ref": "#/$defs/MetricDefinition"
      },
      "type": "object"
    },
    "name": {
      "description": "SEC conformed (legal) name, as filed.",
      "type": "string"
    },
    "notice": {
      "description": "Figures may be incomplete or wrong and are not investment advice; keep this caveat when passing figures on.",
      "type": "string"
    },
    "profile": {
      "$ref": "#/$defs/Profile"
    },
    "quarterly": {
      "properties": {
        "basis": {
          "type": "string"
        },
        "quarters": {
          "description": "Newest first; present only when quarters or period quarterly was asked for.",
          "items": {
            "properties": {
              "calendar_quarter": {
                "description": "Calendar quarter the period ends in, e.g. 2026-Q2; never the issuer's fiscal label.",
                "type": "string"
              },
              "metrics": {
                "additionalProperties": {
                  "$ref": "#/$defs/MetricObservation"
                },
                "description": "Flows for the quarter (with period_start) and balances at its end (period_start null). A flow with derivation is the difference of two reported year-to-date figures.",
                "type": "object"
              },
              "period_end": {
                "format": "date",
                "type": "string"
              },
              "period_start": {
                "format": "date",
                "type": "string"
              }
            },
            "required": [
              "calendar_quarter",
              "period_start",
              "period_end",
              "metrics"
            ],
            "type": "object"
          },
          "maxItems": 12,
          "type": "array"
        }
      },
      "required": [
        "basis",
        "quarters"
      ],
      "type": "object"
    },
    "reporting": {
      "properties": {
        "latest_period_end": {
          "format": "date",
          "type": "string"
        },
        "latest_report": {
          "enum": [
            "annual",
            "quarterly"
          ]
        },
        "next_period_end_estimate": {
          "format": "date",
          "type": "string"
        },
        "next_period_ended": {
          "description": "Whether the quarter after the latest report had ended when the dataset was built, so its report is due or not yet in the dataset.",
          "type": "boolean"
        },
        "note": {
          "type": "string"
        },
        "quarters_available": {
          "maximum": 12,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "latest_period_end",
        "latest_report",
        "quarters_available",
        "note"
      ],
      "type": "object"
    },
    "requested_ticker": {
      "type": [
        "string",
        "null"
      ]
    },
    "research_url": {
      "type": "string"
    },
    "sec_history_url": {
      "type": "string"
    },
    "selection": {
      "$ref": "#/$defs/Selection"
    },
    "source": {
      "type": "string"
    },
    "stock_splits": {
      "description": "Detected from restated filings. Per-share figures and share counts filed before a split are on the old basis.",
      "items": {
        "properties": {
          "first_filing_after": {
            "format": "date",
            "type": "string"
          },
          "ratio": {
            "description": "4-for-1, or 1-for-10 for a reverse split.",
            "type": "string"
          }
        },
        "required": [
          "ratio",
          "first_filing_after"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "successor": {
      "properties": {
        "cik": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "cik",
        "name"
      ],
      "type": "object"
    },
    "terms": {
      "description": "Terms of use, which apply to API and agent use.",
      "format": "uri",
      "type": "string"
    },
    "ticker": {
      "type": [
        "string",
        "null"
      ]
    },
    "valuation": {
      "$ref": "#/$defs/PriceValuation"
    }
  },
  "required": [
    "notice",
    "terms",
    "dataset_built_at",
    "dataset_sha256",
    "requested_ticker",
    "coverage",
    "metric_definitions",
    "research_url",
    "sec_history_url",
    "evidence_url",
    "ticker",
    "cik",
    "name",
    "display_name",
    "listing_status",
    "exchange",
    "source",
    "annual"
  ],
  "type": "object",
  "$defs": {
    "AnnualPeriod": {
      "properties": {
        "metrics": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricObservation"
          },
          "description": "Canonical metric key to observation. A missing key means not reported, not zero.",
          "type": "object"
        },
        "notes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Metric or ratio key to why this year's figure is not comparable with the year before (do not compute a change across it), or why a ratio is null.",
          "type": "object"
        },
        "period_end": {
          "format": "date",
          "type": "string"
        },
        "period_year": {
          "type": "integer"
        },
        "ratios": {
          "additionalProperties": {
            "type": [
              "number",
              "null"
            ]
          },
          "description": "Ratio key to value, computed by TickerFacts for this period: percent, except liabilities_to_equity and long_term_debt_to_equity (plain ratios). Null when an input is missing or incompatible, or the ratio means nothing (see notes).",
          "type": "object"
        }
      },
      "required": [
        "period_year",
        "period_end",
        "metrics"
      ],
      "type": "object"
    },
    "Coverage": {
      "properties": {
        "annual_periods_available": {
          "minimum": 0,
          "type": "integer"
        },
        "entity_continuity": {
          "type": "string"
        },
        "history_basis": {
          "type": "string"
        },
        "latest_observation_filed": {
          "type": [
            "string",
            "null"
          ]
        },
        "latest_period_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "limitations": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "missing_metrics_latest_period": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "missing_reason": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "annual_periods_available",
        "latest_period_end",
        "latest_observation_filed",
        "missing_metrics_latest_period",
        "missing_reason",
        "history_basis",
        "entity_continuity",
        "limitations"
      ],
      "type": "object"
    },
    "MetricDefinition": {
      "properties": {
        "accepted_tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "interpretation": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "period_type": {
          "type": "string"
        }
      },
      "required": [
        "label",
        "period_type",
        "accepted_tags",
        "interpretation"
      ],
      "type": "object"
    },
    "MetricObservation": {
      "properties": {
        "accession": {
          "description": "SEC accession number of the source filing.",
          "type": "string"
        },
        "derivation": {
          "description": "Present only on figures TickerFacts computes (free_cash_flow, ebitda, computed gross_profit, and quarters that are the difference of two reported year-to-date figures): the arithmetic used. Absent on reported figures.",
          "type": "string"
        },
        "filed": {
          "format": "date",
          "type": "string"
        },
        "period_end": {
          "format": "date",
          "type": "string"
        },
        "period_start": {
          "description": "Null for instant (balance-sheet) values.",
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "source_url": {
          "format": "uri",
          "type": "string"
        },
        "tag": {
          "description": "XBRL tag the value was reported under; for a derived metric, the input tags.",
          "type": "string"
        },
        "unit": {
          "description": "Currency or unit as filed, e.g. USD, USD/shares, shares.",
          "type": "string"
        },
        "value": {
          "description": "Exact reported value, serialized without floating-point rounding.",
          "type": "number"
        }
      },
      "required": [
        "value",
        "unit",
        "period_start",
        "period_end",
        "filed",
        "accession",
        "tag",
        "source_url"
      ],
      "type": "object"
    },
    "PriceValuation": {
      "properties": {
        "dividend_yield": {
          "type": [
            "number",
            "null"
          ]
        },
        "market_cap": {
          "type": [
            "number",
            "null"
          ]
        },
        "note": {
          "type": "string"
        },
        "pb_ratio": {
          "type": [
            "number",
            "null"
          ]
        },
        "pe_ratio": {
          "type": [
            "number",
            "null"
          ]
        },
        "price": {
          "type": "number"
        },
        "price_as_of": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "price",
        "price_as_of",
        "market_cap",
        "pe_ratio",
        "pb_ratio",
        "dividend_yield",
        "note"
      ],
      "type": "object"
    },
    "Profile": {
      "properties": {
        "exchange": {
          "type": [
            "string",
            "null"
          ]
        },
        "fiscal_year_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry": {
          "type": [
            "string",
            "null"
          ]
        },
        "sector": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "string"
        },
        "state_of_incorporation": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "sector",
        "industry",
        "exchange",
        "state_of_incorporation",
        "fiscal_year_end",
        "source"
      ],
      "type": "object"
    },
    "Selection": {
      "properties": {
        "missing_metrics_by_period": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        "missing_metrics_by_quarter": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        "note": {
          "description": "Why fewer periods or quarters came back than were available.",
          "type": "string"
        },
        "periods_returned": {
          "minimum": 0,
          "type": "integer"
        },
        "quarters_returned": {
          "description": "Present when quarters were asked for.",
          "minimum": 0,
          "type": "integer"
        },
        "requested_metrics": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "requested_ratios": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "resolved": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Requested spelling to the unambiguous key it was read as, e.g. roe to return_on_equity. Generic debt_to_equity is rejected as ambiguous.",
          "type": "object"
        }
      },
      "required": [
        "periods_returned",
        "requested_metrics",
        "missing_metrics_by_period"
      ],
      "type": "object"
    }
  }
}