> ## 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.

# Search Swedish company bankruptcies (GET)

> Proxies a search to the Typesense `bankruptcies_se` collection using standard query-string parameters. `per_page` is capped at 50.

<Badge color="purple" size="sm">Max+ tier</Badge>


## OpenAPI

````yaml get /search-public/bankruptcies
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:
  /search-public/bankruptcies:
    get:
      tags:
        - PublicSearch
      summary: Search Swedish company bankruptcies (GET)
      description: >-
        Proxies a search to the Typesense `bankruptcies_se` collection using
        standard query-string parameters. `per_page` is capped at 50.
      operationId: SearchBankruptciesGet
      responses:
        '200':
          description: Typesense search response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentTypesenseSearchResponse
        '502':
          description: Upstream Typesense error
components:
  schemas:
    Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentTypesenseSearchResponse:
      type: object
      properties:
        facet_counts:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_Search_TypesenseFacetCounts'
        found:
          type: integer
          format: int32
        hits:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentHit
        grouped_hits:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentGroupedHits
        out_of:
          type: integer
          format: int32
        page:
          type: integer
          format: int32
        request_params:
          $ref: '#/components/schemas/Ormeo_Library_Search_RequestParams'
        search_cutoff:
          type:
            - 'null'
            - boolean
        search_time_ms:
          type: integer
          format: int32
      additionalProperties: false
    Ormeo_Library_Search_TypesenseFacetCounts:
      type: object
      properties:
        counts:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_TypesenseFacetCountDetails
        field_name:
          type:
            - 'null'
            - string
        sampled:
          type: boolean
        stats:
          $ref: '#/components/schemas/Ormeo_Library_Search_TypesenseFacetCountsStats'
        localizedFieldName:
          type:
            - 'null'
            - string
          readOnly: true
      additionalProperties: false
    Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentHit:
      type: object
      properties:
        document:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocument
        geo_distance_meters:
          type: 'null'
        highlight:
          type: 'null'
        highlights:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_Search_HighlightElement'
        text_match:
          type:
            - 'null'
            - number
          format: double
        text_match_info:
          $ref: '#/components/schemas/Ormeo_Library_Search_TextMatchInfo'
      additionalProperties: false
    Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentGroupedHits:
      type: object
      properties:
        group_key:
          type:
            - 'null'
            - array
          items:
            type: string
        hits:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocumentHit
      additionalProperties: false
    Ormeo_Library_Search_RequestParams:
      type: object
      properties:
        collection_name:
          type:
            - 'null'
            - string
        first_q:
          type:
            - 'null'
            - string
        per_page:
          type:
            - 'null'
            - integer
          format: int64
        q:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Search_TypesenseFacetCountDetails:
      type: object
      properties:
        count:
          type: integer
          format: int64
        highlighted:
          type:
            - 'null'
            - string
        value:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Search_TypesenseFacetCountsStats:
      type: object
      properties:
        total_values:
          type: integer
          format: int64
      additionalProperties: false
    Ormeo_Library_Search_Documents_TypesenseCompanyBankruptcyDocument:
      type: object
      properties:
        id:
          type:
            - 'null'
            - string
        companyId:
          type:
            - 'null'
            - integer
          format: int32
        registrationNumber:
          type:
            - 'null'
            - string
        legalEntityType:
          type:
            - 'null'
            - string
        localCompanyCode:
          type:
            - 'null'
            - string
        elfCode:
          type:
            - 'null'
            - string
        registrationDate:
          type:
            - 'null'
            - integer
          format: int64
        mostRecentPurpose:
          type:
            - 'null'
            - string
        companyName:
          type:
            - 'null'
            - string
        bankruptcyStatusCode:
          type:
            - 'null'
            - string
        bankruptcyStatusDescriptionSv:
          type:
            - 'null'
            - string
        bankruptcyStatusDescriptionEn:
          type:
            - 'null'
            - string
        sniCodes:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_Search_CompanyIndustryCode
        courtCase:
          type:
            - 'null'
            - string
        courtName:
          type:
            - 'null'
            - string
        courtCode:
          type:
            - 'null'
            - string
        courtEmail:
          type:
            - 'null'
            - string
        initiatedDate:
          type:
            - 'null'
            - integer
          format: int64
        initiatedBy:
          type:
            - 'null'
            - string
        terminatedDate:
          type:
            - 'null'
            - integer
          format: int64
        repealedDate:
          type:
            - 'null'
            - integer
          format: int64
        hasTrustee:
          type: boolean
        trusteeName:
          type:
            - 'null'
            - string
        trusteeCO:
          type:
            - 'null'
            - string
        trusteeAddressStreet:
          type:
            - 'null'
            - string
        trusteeAddressPostalCode:
          type:
            - 'null'
            - string
        trusteeAdddressCity:
          type:
            - 'null'
            - string
        registeredOfficeMunicipality:
          type:
            - 'null'
            - string
        registeredOfficeMunicipalityCode:
          type:
            - 'null'
            - string
        registeredOfficeCounty:
          type:
            - 'null'
            - string
        registeredOfficeCountyCode:
          type:
            - 'null'
            - string
        mostRecentRegisteredAddress:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_Search_Search_CompanyAddressGeopoint
        mostRecentFinancialSummary:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_Search_Search_CompanyFinancialSummary
        applicationIfAny:
          type:
            - 'null'
            - string
        isPublicSectorVendor:
          type: boolean
        approxInvoicedToPublicSector:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_PublicSector
        lastUpdated:
          type:
            - 'null'
            - integer
          format: int64
        urlSlug:
          type:
            - 'null'
            - string
        isCeased:
          type: boolean
        ceasedDate:
          type:
            - 'null'
            - integer
          format: int64
      additionalProperties: false
    Ormeo_Library_Search_HighlightElement:
      type: object
      properties:
        field:
          type:
            - 'null'
            - string
        matched_tokens:
          type:
            - 'null'
            - array
          items:
            type: string
        snippet:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Search_TextMatchInfo:
      type: object
      properties:
        best_field_score:
          type:
            - 'null'
            - string
        best_field_weight:
          type:
            - 'null'
            - integer
          format: int64
        fields_matched:
          type:
            - 'null'
            - integer
          format: int64
        num_tokens_dropped:
          type:
            - 'null'
            - integer
          format: int64
        score:
          type:
            - 'null'
            - string
        tokens_matched:
          type:
            - 'null'
            - integer
          format: int64
        typo_prefix_score:
          type:
            - 'null'
            - integer
          format: int64
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_Search_CompanyIndustryCode:
      type: object
      properties:
        sni_2007Code:
          type:
            - 'null'
            - string
        sni_2007Name:
          type:
            - 'null'
            - string
        sni_2007Section:
          type:
            - 'null'
            - string
        sni_2025Code:
          type:
            - 'null'
            - string
        sni_2025Name:
          type:
            - 'null'
            - string
        sni_2025Section:
          type:
            - 'null'
            - string
        rank:
          type:
            - 'null'
            - integer
          format: int32
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_Search_CompanyAddressGeopoint:
      type: object
      properties:
        co:
          type:
            - 'null'
            - string
        streetAddress:
          type:
            - 'null'
            - string
        postalCode:
          type:
            - 'null'
            - string
        city:
          type:
            - 'null'
            - string
        countryCodeAlpha3:
          type:
            - 'null'
            - string
        location:
          type:
            - 'null'
            - array
          items:
            type: number
            format: double
        firstSeenAt:
          type:
            - 'null'
            - integer
          format: int64
        lantmaterietLocationalAddressId:
          type:
            - 'null'
            - string
          format: uuid
        lantmaterietLocatedOnPropertyId:
          type:
            - 'null'
            - string
          format: uuid
        addressId:
          type:
            - 'null'
            - integer
          format: int32
        propertyId:
          type:
            - 'null'
            - integer
          format: int32
        lantmaterietLocationalSupplementalNumber:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_Search_CompanyFinancialSummary:
      type: object
      properties:
        periodStart:
          type: integer
          format: int64
        periodEnd:
          type: integer
          format: int64
        rs_NetSalesK:
          type:
            - 'null'
            - integer
          format: int32
        rs_OtherOperatingIncomeK:
          type:
            - 'null'
            - integer
          format: int32
        rs_OperatingProfitOrLossK:
          type:
            - 'null'
            - integer
          format: int32
        rs_SumFinancialItemsK:
          type:
            - 'null'
            - integer
          format: int32
        rs_ProfitAfterFinancialItemsK:
          type:
            - 'null'
            - integer
          format: int32
        bs_TotalAssetsK:
          type:
            - 'null'
            - integer
          format: int32
        fn_NumberOfEmployees:
          type:
            - 'null'
            - number
          format: double
        km_OperatingMargin:
          type:
            - 'null'
            - number
          format: double
        km_NetProfitMargin:
          type:
            - 'null'
            - number
          format: double
        km_EquityAssetsRatio:
          type:
            - 'null'
            - number
          format: double
        km_GrossMargin:
          type:
            - 'null'
            - number
          format: double
        isAudited:
          type:
            - 'null'
            - boolean
        software:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_PublicSector:
      type: object
      properties:
        year:
          type: integer
          format: int32
        approxInvoiced:
          type: number
          format: double
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````