> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tic.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get demographics for a BRF

> Returns aggregated resident demographics for the BRF: total resident count, median age, median förvärvsinkomst (when ResidentCount ≥ 20 of adults), and a per-bucket breakdown by age band × gender. Cells with fewer than 5 residents are suppressed for k-anonymity. Numbers refer to all current residents folkbokförda at the BRF's addresses; income is computed over the 18+ subset.

<Badge color="red" size="sm">BRF add-on</Badge>


## OpenAPI

````yaml get /brf/{companyId}/demographics
openapi: 3.1.1
info:
  title: TIC Lens API
  description: "The TIC Lens API provides programmatic access to company, person, property, vehicle, and order data.\r\n\r\n## Authentication\r\n\r\nAll requests require an API key passed via the `x-api-key` header:\r\n\r\n```bash\r\ncurl -H \"x-api-key: YOUR_API_KEY\" https://lens-api.tic.io/companies/123\r\n```\r\n\r\nAPI keys are managed through the TIC Lens web application under **Settings → API Keys**.\r\n\r\n## Base URL\r\n\r\n| Environment | URL |\r\n|-------------|-----|\r\n| Production  | `https://lens-api.tic.io` |\r\n\r\n## Feature Access\r\n\r\nEndpoints are gated by your subscription plan. If your plan does not include a feature, the endpoint will return `403 Forbidden`.\r\n\r\n## Rate Limits\r\n\r\nRate limits are applied per API key. If you exceed the limit, requests will return `429 Too Many Requests`.\r\n\r\n## Response Format\r\n\r\nAll responses are JSON. Null values are omitted from responses.\r\n"
  version: v1
servers:
  - url: https://lens-api.tic.io
security:
  - ApiKey: []
tags:
  - name: Addresses
  - name: Bolagsverket
  - name: Brf
  - name: Companies
  - name: Documents
  - name: FlightImages
  - name: Free
  - name: Orders
  - name: OrdersExports
  - name: PaymentControl
  - name: PaymentControlImport
  - name: Persons
  - name: Properties
  - name: PublicSearch
  - name: SearchAutocomplete
  - name: Sentinel
  - name: ServingPermits
  - name: Team
  - name: Teams
  - name: Transportstyrelsen
  - name: Vehicles
  - name: WatchList
paths:
  /brf/{companyId}/demographics:
    get:
      tags:
        - Brf
      summary: Get demographics for a BRF
      description: >-
        Returns aggregated resident demographics for the BRF: total resident
        count, median age, median förvärvsinkomst (when ResidentCount ≥ 20 of
        adults), and a per-bucket breakdown by age band × gender. Cells with
        fewer than 5 residents are suppressed for k-anonymity. Numbers refer to
        all current residents folkbokförda at the BRF's addresses; income is
        computed over the 18+ subset.
      operationId: GetBrfDemographics
      parameters:
        - name: companyId
          in: path
          description: Internal company ID
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: BRF demographics summary with age-bucket breakdown
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Web_Lens_Models_Brf_BrfDemographicsSummary_Dto
        '404':
          description: >-
            Company not found, not a BRF, not accessible to this team, or
            demographics not yet computed
components:
  schemas:
    Ormeo_Web_Lens_Models_Brf_BrfDemographicsSummary_Dto:
      type: object
      properties:
        companyId:
          type: integer
          format: int32
        residentCount:
          type: integer
          format: int32
        medianAge:
          type:
            - 'null'
            - integer
          format: int32
        medianForvarvsinkomst:
          type:
            - 'null'
            - integer
          format: int64
        lastUpdatedAtUtc:
          type: string
          format: date-time
        ageBuckets:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Web_Lens_Models_Brf_BrfDemographicsAge_Dto
      additionalProperties: false
    Ormeo_Web_Lens_Models_Brf_BrfDemographicsAge_Dto:
      type: object
      properties:
        ageBucketId:
          type: integer
          format: int32
        ageBucketLabel:
          type:
            - 'null'
            - string
        gender:
          type: integer
          format: int32
        residentCount:
          type: integer
          format: int32
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````