{
  "openapi": "3.1.0",
  "info": {
    "title": "Cobroker Market API",
    "summary": "Public, read-only US retail chain expansion data — which chains are opening stores, how fast, and where.",
    "description": "Quarterly US store counts and individually verified store openings for roughly ten thousand retail, restaurant and franchise chains, keyed on registrable domain. Free and uncredentialed: there is no key to request, no account to create and no rate-limit negotiation. The same corpus is rendered for human readers at https://cobroker.ai/market. Read x-cobroker-data-policy before quoting any figure — several fields are deliberately withheld rather than estimated, and a null here is a fact about the evidence, not a gap to fill.",
    "version": "1.0.0",
    "contact": {
      "name": "Cobroker",
      "url": "https://cobroker.ai"
    }
  },
  "servers": [
    {
      "url": "https://cobroker.ai",
      "description": "Production"
    }
  ],
  "x-cobroker-data-policy": {
    "summary": "Cobroker publishes what it can verify and withholds what it cannot. These rules govern how figures from this API may be quoted.",
    "rules": [
      "A null field is WITHHELD, never zero and never a placeholder. Where a source does not carry a value, Cobroker reports that it does not rather than substituting an estimate. Do not fill a null with an approximation, an interpolation, or a figure from elsewhere.",
      "Do not reconstruct a withheld growth percentage from the store-count series. That count difference is precisely the figure this product stopped publishing: a maturing location index adds rows for stores that already existed, which is arithmetically indistinguishable from a chain opening them. An audit of ten published count-diff rates against the chains' own store locators graded eight of them wrong.",
      "When a growth percentage is withheld, the publishable figure is verified_openings — store openings each traceable to a new location record created inside the window.",
      "state_count is scoped to ONE state while growth_pct, accel, net_new and last_count on the same row are NATIONAL. They appear together and are never divisible by one another; there is no state-level growth percentage anywhere in this corpus because an openings table has no state denominator.",
      "Rows whose entity_class is collision, virtual or embedded are not chains of leasable stores and must not be quoted as brands. collision means one domain resolved to more than one unrelated operator, which is how generic words end up in a brand index.",
      "Every figure is an observation of the vintage named in vintage_stamp, not of today. Quote the date with the number.",
      "Named real-estate contacts are shown on the brand pages for human readers and are deliberately absent from every machine-readable surface, this API included. Do not infer, assemble, or request them here."
    ],
    "citation": {
      "attribution": "Cobroker (cobroker.ai)",
      "prefer_page_over_endpoint": true,
      "brand_page_template": "https://cobroker.ai/market/{domain}",
      "methodology": "https://cobroker.ai/methodology",
      "note": "Every figure this API returns is also stated on a public page, with its vintage and its caveats beside it. Cite the brand page so a reader can check the qualification, not the raw endpoint. The methodology page states every threshold and every withholding condition by name."
    }
  },
  "x-cobroker-related": {
    "llms_txt": "https://cobroker.ai/llms.txt",
    "llms_full_txt": "https://cobroker.ai/llms-full.txt",
    "agent_descriptor": "https://cobroker.ai/.well-known/mcp.json",
    "methodology": "https://cobroker.ai/methodology",
    "brand_markdown_template": "https://cobroker.ai/market/{domain}/llms.txt",
    "sitemap": "https://cobroker.ai/sitemap.xml"
  },
  "paths": {
    "/api/market/growth": {
      "get": {
        "operationId": "getMarketGrowth",
        "summary": "Read the US retail-chain expansion corpus: ranked chains, segment rollups, state views and opening geometry.",
        "description": "The read side of Market. Public, uncredentialed and cached; there is no key to obtain and no session to establish. One row per COMPANY keyed on registrable domain, covering roughly ten thousand US retail, restaurant and franchise chains. Each row carries its own quarterly series and the vintage it was observed at. Every figure is also stated on the corresponding /market page — see x-cobroker-data-policy for how a withheld value must be handled.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Which projection of the corpus to return. Defaults to top. Each view populates its own key in the response and leaves the others absent: top and compare populate brands; entrants, whitespace, segments, categories and states populate the key of the same name; hexes and points populate hexes and points.",
            "schema": {
              "type": "string",
              "default": "top",
              "enum": [
                "top",
                "entrants",
                "whitespace",
                "segments",
                "compare",
                "hexes",
                "points",
                "categories",
                "states"
              ]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "description": "Two-letter US state code, or DC. Honoured by view=top, entrants, whitespace and hexes; REQUIRED by entrants and whitespace. Sending it to any other view answers 400 rather than silently ignoring it, because a dropped scope returns national rows under a heading that claims one state.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{2}$",
              "example": "GA"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Ranking key for view=top. Nationally one of accel (mean quarterly delta over the recent half minus the earlier half), net_new, growth_pct or adj (growth relative to the category median); defaults to accel. With region set the vocabulary is narrower — state_count, recent or growth_pct, defaulting to state_count — because accel, net_new and adj are statistics of the national series and say nothing about the state that was asked for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows. 1 to 500 on every view except points, which allows up to 20000. A value below 1 answers 400.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20000,
              "default": 100
            }
          },
          {
            "name": "min_base",
            "in": "query",
            "required": false,
            "description": "Floor on the brand's national store count at the START of the window, for view=top (national) and view=segments. Defaults to 10. Filters out chains too small for a rate to mean anything.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 10
            }
          },
          {
            "name": "min_state",
            "in": "query",
            "required": false,
            "description": "Floor on openings within the state, for view=top with region set. Defaults to 1, i.e. opened at least once here. NOT min_base under another name: the busiest brand in a mid-sized state may have opened only a few dozen stores there across the whole window.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "segments",
            "in": "query",
            "required": false,
            "description": "Comma-separated broker segment ids (for example coffee,qsr). An unrecognised id answers 400 with the valid list rather than returning the unfiltered table under a filtered heading.",
            "schema": {
              "type": "string",
              "example": "coffee,qsr"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Legacy top-level category filter, superseded by segments and kept so existing links keep working. Not accepted by view=entrants or view=whitespace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domains",
            "in": "query",
            "required": false,
            "description": "Required for view=compare. Comma-separated registrable domains, at most five.",
            "schema": {
              "type": "string",
              "example": "7brew.com,dutchbros.com"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Required for view=points; an optional filter for view=hexes. The brand's registrable domain, which is the identity key for this whole corpus — never a brand name, because prefix and name matching fragment or merge real chains.",
            "schema": {
              "type": "string",
              "example": "7brew.com"
            }
          },
          {
            "name": "res",
            "in": "query",
            "required": false,
            "description": "H3 resolution for view=hexes: 6 (default) or 8. Any other value resolves to the nearer of the two.",
            "schema": {
              "type": "integer",
              "enum": [
                6,
                8
              ],
              "default": 6
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "ISO date lower bound on opening date, for view=hexes and view=points.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The projection named by view. Keys not populated by that view are absent. A response carrying degraded=true means an upstream read failed and every collection is empty — it is NOT an assertion that the corpus is empty, and must not be quoted as one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrowthResponse"
                }
              }
            }
          },
          "400": {
            "description": "A parameter this view cannot honour, or a value outside its vocabulary. Deliberately strict: a silently dropped filter answers 200 with the wrong rows under a heading that claims the filter was applied, which is indistinguishable from a correct answer to whoever reads it.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/market/brand/{domain}": {
      "get": {
        "operationId": "getMarketBrand",
        "summary": "Every stated fact about one tracked chain, as JSON.",
        "description": "The same figures the brand page at /market/{domain} states, for a single registrable domain, with the same fields withheld and a caveat sentence for each withholding. This is a PROJECTION of that page, not a wider view of the row behind it: there is no parameter that returns an ungated value. 404 is returned both for a domain with no growth record and for a domain the index classifies as not-a-single-brand (see entity_class), so a 404 here does not mean the /market page 404s too.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "The chain's registrable domain, lowercase and without a scheme or www prefix — 7brew.com, not https://www.7brew.com. This is the identity key for the corpus. A non-canonical spelling is served rather than redirected; the resolved form is in the `domain` field of the response.",
            "schema": {
              "type": "string",
              "example": "7brew.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The brand's stated facts, already gated. A null number is a WITHHELD number — see the field descriptions and x-cobroker-data-policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandFacts"
                }
              }
            }
          },
          "404": {
            "description": "No tracked chain for this domain."
          },
          "503": {
            "description": "The index could not be read — most often the minutes of a quarterly reload, which is delete-then-load and so makes every tracked chain look untracked. ⚠️ THIS IS DELIBERATELY NOT A 404: it asserts nothing about whether the chain is tracked, and must not be cached or quoted as an absence. Retry."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GrowthResponse": {
        "type": "object",
        "description": "One key per view. Absent keys were not requested; empty arrays alongside degraded=true mean an upstream read failed.",
        "properties": {
          "brands": {
            "type": "array",
            "description": "Populated by view=top and view=compare.",
            "items": {
              "$ref": "#/components/schemas/Brand"
            }
          },
          "entrants": {
            "type": "array",
            "description": "Populated by view=entrants: chains whose first detected opening in the requested state falls in one of the two most recent vintages. first_state_dt is a DETECTION date — the vintage the first opening appeared in — not the date the door opened.",
            "items": {
              "$ref": "#/components/schemas/Brand"
            }
          },
          "whitespace": {
            "type": "array",
            "description": "Populated by view=whitespace: nationally growing chains with no location detected in the requested state in the latest vintage. Absence is a statement about index coverage at that vintage, not proof the chain is unrepresented.",
            "items": {
              "$ref": "#/components/schemas/Brand"
            }
          },
          "whitespace_unavailable": {
            "type": "boolean",
            "description": "true means the presence index has no completed load covering this state, so the question could not be answered. It is NOT the same as an empty whitespace array, which means every grower that clears the gate is already present there. Do not collapse the two."
          },
          "segments": {
            "type": "array",
            "description": "Populated by view=segments.",
            "items": {
              "$ref": "#/components/schemas/SegmentRollup"
            }
          },
          "categories": {
            "type": "array",
            "description": "Populated by view=categories: the legacy top-level category filter options.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "states": {
            "type": "array",
            "description": "Populated by view=states.",
            "items": {
              "$ref": "#/components/schemas/StateCount"
            }
          },
          "hexes": {
            "type": "array",
            "description": "Populated by view=hexes: opening density aggregated to H3 cells.",
            "items": {
              "$ref": "#/components/schemas/Hex"
            }
          },
          "points": {
            "type": "array",
            "description": "Populated by view=points: individual verified openings for one brand.",
            "items": {
              "$ref": "#/components/schemas/OpeningPoint"
            }
          },
          "degraded": {
            "type": "boolean",
            "description": "true when an upstream read failed and every collection above is empty as a result. A degraded response asserts nothing about the corpus and must never be quoted as 'no results'."
          }
        }
      },
      "Brand": {
        "type": "object",
        "description": "One tracked company, keyed on registrable domain. Never keyed on brand name: prefix matching inflates one well-known chain from about 360 US locations to 1,923, and name matching splits a single chain across two spellings.",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Registrable domain, lowercase. The identity key, and the path segment of the brand page at /market/{domain}."
          },
          "display_name": {
            "type": "string",
            "description": "Brand name for display."
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Top-level source category. null when unresolved."
          },
          "category_full": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full source category path, 'A > B > C'. null for companies whose domain matched no located store. Diagnostic rather than display."
          },
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "description": "Broker segment id — coffee, qsr, fitness and so on. null means NOT YET CLASSIFIED, which is operationally different from the 'unknown' segment, where the taxonomy looked and could not place the brand."
          },
          "series": {
            "type": "array",
            "description": "Quarterly US location counts, oldest first, one point per index vintage.",
            "items": {
              "$ref": "#/components/schemas/SeriesPoint"
            }
          },
          "first_count": {
            "type": "integer",
            "description": "US location count at the first vintage in the window."
          },
          "last_count": {
            "type": "integer",
            "description": "US location count at the most recent vintage."
          },
          "net_new": {
            "type": "integer",
            "description": "last_count minus first_count. A COUNT DIFFERENCE, so it moves when index coverage improves as well as when stores open. National."
          },
          "growth_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change across the window, already scaled: 12.4 means +12.4%. NATIONAL. ⚠️ UNGATED ON THIS ENDPOINT — READ rate_reliable BEFORE QUOTING THIS. Unlike the HTML brand page and /api/market/brand/{domain}, which withhold the figure entirely when it is not trustworthy, this endpoint returns the raw stored row. Verified 2026-08-25: 7brew.com returns growth_pct 931.58 with rate_reliable false, because count-diffing a maturing index against a small base is not a growth rate. A consumer that quotes growth_pct without checking rate_reliable will publish that number. When rate_reliable is false, quote verified_openings instead, and do NOT recompute a rate from first_count and last_count — that reproduces the same wrong figure."
          },
          "accel": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mean quarterly delta over the recent half of the window minus the earlier half, in stores. Positive means opening faster than before. National."
          },
          "category_adj_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "growth_pct minus the median growth_pct of the brand's category — outperformance rather than raw growth. Inherits growth_pct's caveats."
          },
          "monotonic_frac": {
            "type": [
              "number",
              "null"
            ],
            "description": "Share of quarters in which the count rose. Near 1.0 means it grew in every quarter. A credibility diagnostic, not a growth signal."
          },
          "max_step_share": {
            "type": [
              "number",
              "null"
            ],
            "description": "Share of total growth carried by the single largest quarterly step. Near 1.0 means one quarter carries all of it, which is the signature of an indexing artifact rather than a build-out."
          },
          "vintage_stamp": {
            "type": "string",
            "description": "The index vintage this row observes. Quote it with any figure taken from this row: these are observations of a dated snapshot, not of today."
          },
          "state_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Openings detected in the requested state — present only on region-scoped responses. ⚠️ LOCAL, while last_count, net_new, growth_pct and accel on the same row are NATIONAL. Nothing may divide one by the other, and there is no state-level growth percentage in this corpus. Also distinct from verified_openings, which counts the same kind of event nationwide."
          },
          "openings_series": {
            "type": [
              "array",
              "null"
            ],
            "description": "Per-step verified openings, oldest first. One step per vintage interval.",
            "items": {
              "$ref": "#/components/schemas/OpeningsStep"
            }
          },
          "verified_openings": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Total openings across the window that are individually verifiable: a location counts only when its record is new to the index AND its creation date falls inside the step. Both gates, or it is not an opening. ⚠️ ALSO UNGATED ON THIS ENDPOINT. Two failure modes the raw figure carries, both verified 2026-08-25: an INCOHERENT count, where a chain shows more openings in the window than it has ever had locations (huntbrotherspizza.com returns 3,098 against a peak of 764, with 1,102 records sharing one creation date — a vendor bulk ingest, not expansion); and an UNRELIABLE count that is coherent but still overstated. Sanity-check verified_openings against first_count and last_count before quoting, or use /api/market/brand/{domain}, which applies both gates and returns null rather than a number it will not stand behind."
          },
          "openings_pace_last": {
            "type": [
              "number",
              "null"
            ],
            "description": "Openings per 91 days for the most recent step. null means the quarter is not publishable — typically because the newest step is dominated by a bulk vendor load rather than by observed openings."
          },
          "openings_pace_prev": {
            "type": [
              "number",
              "null"
            ],
            "description": "The same, for the step before the last one."
          },
          "coverage_agreement": {
            "type": [
              "number",
              "null"
            ],
            "description": "verified_openings divided by net_new — how much of the raw count movement the verified openings account for. Far below 1.0 is the coverage-ramp signature: the count grew, but almost none of the new records are new stores. A diagnostic, not itself the gate."
          },
          "rate_reliable": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "The calibrated verdict on whether growth_pct may be printed as a percentage. When false or absent, growth_pct is withheld and callers must degrade to verified_openings rather than compute a substitute."
          },
          "entity_class": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "chain",
              "virtual",
              "embedded",
              "collision",
              null
            ],
            "description": "How the index resolved this domain. ⚠️ ONLY chain IS A BRAND OF LEASABLE STORES. collision means one domain resolved to more than one unrelated operator, which is how generic dictionary words end up looking like national chains — those rows must never be quoted as brands. virtual is a delivery-only concept with no real estate. embedded is a host-based concept whose openings are its host's stores, so it cannot be ranked against a chain that signs its own leases. Absent on older rows, where it is treated as chain."
          }
        }
      },
      "BrandFacts": {
        "type": "object",
        "description": "One tracked chain's stated facts — the JSON projection of its /market page. Every gate the page applies has already run: a null number here is a WITHHELD number, and the sentence explaining each withholding is in caveats. Nothing in this document may be back-computed; in particular a growth percentage must not be reconstructed from a store-count series when growth_pct is null, because that recomputation is the exact number the gate rejected.",
        "properties": {
          "schema_version": {
            "type": "integer",
            "description": "Bumped only on a BREAKING change — a key removed, a meaning changed, a unit changed. Adding a nullable key is not breaking. Read it if you are working from a cached copy: it says which contract that copy was written against."
          },
          "domain": {
            "type": "string",
            "description": "Registrable domain, lowercase — the identity key, and the canonical spelling of whatever was requested."
          },
          "display_name": {
            "type": "string",
            "description": "The chain's name for display. Repaired rather than taken raw: a company whose records are mostly departments would otherwise inherit the department's name."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The public page this document projects, and the URL to cite. Byte-identical to that page's own canonical tag."
          },
          "location_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "US locations at the most recent observation. ⚠️ MUST BE PRINTED WITH location_unit AND NOT WITH THE WORD 'stores' — on a department-inflated chain this figure counts fuel bays, pharmacies and food courts as separate records, and the unit is the only thing that says so."
          },
          "location_unit": {
            "type": "string",
            "enum": [
              "US locations",
              "US index records"
            ],
            "description": "The noun location_count must be quoted with. 'US index records' means the index files this company's departments and facilities separately, so the count is real but is not a store count."
          },
          "as_of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FactStamp"
              },
              {
                "type": "null"
              }
            ],
            "description": "The observation location_count is stated as of. Quote it with the count: these are observations of a dated snapshot, not of today."
          },
          "since": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FactStamp"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first observation in the window — the point net_new, growth_pct and verified_openings are all measured FROM. ⚠️ A magnitude quoted without this is half a claim: '+412 stores' since when?"
          },
          "window_quarters": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many quarterly observations the window holds. Read off the row, not assumed — the index gains one every vintage."
          },
          "net_new": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Net movement in US locations across the window. NATIONAL. A COUNT DIFFERENCE, so it moves when index coverage improves as well as when stores open — which is why it is withheld entirely on a department-inflated chain rather than published in a unit it was not measured in."
          },
          "growth_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change across the window, already scaled: 161.0 means +161.0%. NATIONAL. ⚠️ null means WITHHELD — a percentage needs a trustworthy denominator and a maturing index does not have one. When it is null the honest figure is verified_openings, and a rate recomputed from the store counts is the number this product stopped publishing."
          },
          "verified_openings": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Individually verified store openings across the window: a location counts only when its record is new to the index AND its creation date falls inside the window. Both gates, or it is not an opening. A ZERO IS A RESULT and is published as one — watched for eight quarters, opened nothing. null is a different statement: not measured, or measured and refused."
          },
          "latest_quarter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandLatestQuarter"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most recent measured quarter's opening PACE, or null when that quarter is not publishable — typically a step dominated by a bulk vendor load, or a chain whose record count fell while its ingest steps rose."
          },
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "description": "The broker-facing category label. null rather than a placeholder: a taxonomy gap is not a category, and a word like 'Uncategorized' gets quoted as though it were one."
          },
          "segment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The same segment as its stable id — coffee, qsr, fitness."
          },
          "category_full": {
            "type": [
              "string",
              "null"
            ],
            "description": "The source taxonomy path, 'A > B > C', verbatim. Useful for placing a brand without trusting our segment mapping."
          },
          "entity_class": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "chain",
              null
            ],
            "description": "How the index resolved this domain. ⚠️ ONLY chain (or an older row with no classification) REACHES THIS ENDPOINT AT ALL: collision, embedded and virtual are 404ed here, because a JSON document has no reader to show a caveat to. Their /market pages still resolve, with the classification stated on them."
          },
          "caveats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Why the nulls above are null, in full sentences, stating no withheld number. ⚠️ QUOTE THESE WITH THE FIGURES BESIDE THEM. A model that reads a payload with no growth percentage and no explanation will reach for one from elsewhere and attribute it here; that is what this array exists to prevent."
          },
          "source_note": {
            "type": "string",
            "description": "Where the numbers come from, what the window is, and the standing caveat that every count reflects what the index observed on that date and can lag a chain's own reporting."
          }
        }
      },
      "FactStamp": {
        "type": "object",
        "description": "A dated observation, carried in both forms on purpose. ⚠️ PRINT `label`, NEVER `iso`: the label is derived from the date string directly, because rendering the ISO date through a local timezone relabels a Q2 vintage as Q1 for every reader west of Greenwich.",
        "properties": {
          "iso": {
            "type": "string",
            "format": "date",
            "description": "The observation date, for sorting and comparison."
          },
          "label": {
            "type": "string",
            "description": "The printable quarter, e.g. 'Q3 2026'."
          }
        }
      },
      "BrandLatestQuarter": {
        "type": "object",
        "description": "The most recent measured quarter's opening pace. A RATE OVER ONE STEP, in different units and over a different window from every total on BrandFacts — running it into the same sentence is how a quarterly pace gets quoted as a multi-year total.",
        "properties": {
          "openings_per_quarter": {
            "type": "number",
            "description": "Verified openings per 91 days. An absolute pace, so it needs no denominator and survives an index whose coverage of the brand is still maturing."
          },
          "prior_openings_per_quarter": {
            "type": [
              "number",
              "null"
            ],
            "description": "The step before it, same units — null when that step is majority vendor-batch. The last pace still stands; only the COMPARISON is withheld."
          },
          "trend": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accelerating",
              "steady",
              "slowing",
              null
            ],
            "description": "Direction across the two steps, or null on the same incomparable row. A direction derived across a bulk-load step is a fabricated direction."
          },
          "pct_of_base": {
            "type": [
              "number",
              "null"
            ],
            "description": "The pace as a percentage of the store count it started from. Withheld on the same rate-reliability gate that withholds growth_pct."
          },
          "prior_pct_of_base": {
            "type": [
              "number",
              "null"
            ],
            "description": "The same for the prior step; null when either gate nulls it."
          }
        }
      },
      "SeriesPoint": {
        "type": "object",
        "description": "One vintage: the US location count on that observation date.",
        "properties": {
          "dt": {
            "type": "string",
            "format": "date",
            "description": "Vintage date."
          },
          "n": {
            "type": "integer",
            "description": "US location count at that vintage."
          }
        }
      },
      "OpeningsStep": {
        "type": "object",
        "description": "Verified openings between two adjacent vintages. NOT a count difference.",
        "properties": {
          "dt": {
            "type": "string",
            "format": "date",
            "description": "The vintage this step ends at."
          },
          "o": {
            "type": "integer",
            "description": "Verified openings inside the step."
          },
          "days": {
            "type": "integer",
            "description": "The step's real length in days. ⚠️ Vintages are NOT evenly spaced — observed steps run from 14 days to 113 — so raw o values from two steps are not comparable. Every rate in this product divides by this figure rather than by an assumed quarter."
          }
        }
      },
      "SegmentRollup": {
        "type": "object",
        "description": "One broker segment, with its aggregate and up to three leading chains.",
        "properties": {
          "segment": {
            "type": "string",
            "description": "Segment id."
          },
          "companies": {
            "type": "integer",
            "description": "Chains in the segment that clear min_base and the gate."
          },
          "net_new": {
            "type": "integer",
            "description": "Summed count difference across the segment."
          },
          "median_growth_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "Median growth percentage across the segment."
          },
          "median_accel": {
            "type": [
              "number",
              "null"
            ],
            "description": "Median acceleration across the segment."
          },
          "top": {
            "type": "array",
            "description": "Up to three leading chains. Each carries domain, display_name, last_count, net_new, growth_pct, accel and entity_class, plus openings_pace_last — which is nulled whenever that brand's quarter is not publishable, by the same verdict the brand page renders.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "StateCount": {
        "type": "object",
        "description": "One state's opening activity. Counted from observed openings, so a state with none in the window is simply absent rather than present with a zero.",
        "properties": {
          "region": {
            "type": "string",
            "description": "Two-letter state code."
          },
          "openings": {
            "type": "integer",
            "description": "Openings detected in the state across all brands."
          },
          "domains": {
            "type": "integer",
            "description": "Distinct chains that opened there."
          }
        }
      },
      "Hex": {
        "type": "array",
        "description": "[H3 cell index, opening count].",
        "prefixItems": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          }
        ],
        "minItems": 2,
        "maxItems": 2
      },
      "OpeningPoint": {
        "type": "array",
        "description": "[longitude, latitude, opening date]. A tuple rather than an object: roughly a third the payload at this row count.",
        "prefixItems": [
          {
            "type": "number"
          },
          {
            "type": "number"
          },
          {
            "type": "string",
            "format": "date"
          }
        ],
        "minItems": 3,
        "maxItems": 3
      }
    }
  }
}
