> ## 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 workplaces (GET)

> Proxies a search to the Typesense `workplaces` 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/workplaces
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/workplaces:
    get:
      tags:
        - PublicSearch
      summary: Search workplaces (GET)
      description: >-
        Proxies a search to the Typesense `workplaces` collection using standard
        query-string parameters. `per_page` is capped at 50.
      operationId: SearchWorkplacesGet
      responses:
        '200':
          description: Typesense search response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyWorkplaceTypesenseSearchResponse
        '502':
          description: Upstream Typesense error
components:
  schemas:
    Ormeo_Library_Search_Documents_TypesenseCompanyWorkplaceTypesenseSearchResponse:
      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_TypesenseCompanyWorkplaceHit
        grouped_hits:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyWorkplaceGroupedHits
        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_TypesenseCompanyWorkplaceHit:
      type: object
      properties:
        document:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyWorkplace
        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_TypesenseCompanyWorkplaceGroupedHits:
      type: object
      properties:
        group_key:
          type:
            - 'null'
            - array
          items:
            type: string
        hits:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_TypesenseCompanyWorkplaceHit
      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_TypesenseCompanyWorkplace:
      type: object
      properties:
        id:
          type:
            - 'null'
            - string
        companyWorkplaceId:
          type: integer
          format: int32
        workplaceCode:
          type:
            - 'null'
            - integer
          format: int32
        firstSeenAt:
          type:
            - 'null'
            - integer
          format: int64
        workplaceCompanies:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceCompany
        workplaceUnits:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceUnit
        workplaceName:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceName
        workplaceType:
          type:
            - 'null'
            - integer
          format: int32
        workplaceTypeDescriptionSv:
          type:
            - 'null'
            - string
        employeesRangeType:
          type:
            - 'null'
            - integer
          format: int32
        employeesRangeTypeDescriptionSv:
          type:
            - 'null'
            - string
        mostRecentVisitingAddress:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceAddressGeopoint
        mostRecentMailingAddress:
          $ref: >-
            #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceAddressGeopoint
        sniCodes:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceIndustryCode
        status:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Search_Documents_Search_CompanyWorkplaceStatus
      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_CompanyWorkplaceCompany:
      type: object
      properties:
        companyId:
          type: integer
          format: int32
        fromDate:
          type:
            - 'null'
            - integer
          format: int64
        toDate:
          type:
            - 'null'
            - integer
          format: int64
        registrationNumber:
          type:
            - 'null'
            - string
        mostRecentName:
          type:
            - 'null'
            - string
        legalEntityType:
          type:
            - 'null'
            - string
        localCompanyCode:
          type:
            - 'null'
            - string
        elfCode:
          type:
            - 'null'
            - string
        registrationDate:
          type:
            - 'null'
            - integer
          format: int64
        ceasedDate:
          type:
            - 'null'
            - integer
          format: int64
        isCeased:
          type: boolean
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_CompanyWorkplaceUnit:
      type: object
      properties:
        companyId:
          type: integer
          format: int32
        unitIdentifier:
          type: integer
          format: int32
        firstSeenAt:
          type:
            - 'null'
            - integer
          format: int64
        lastSeenAt:
          type:
            - 'null'
            - integer
          format: int64
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_CompanyWorkplaceName:
      type: object
      properties:
        nameOrIdentifier:
          type:
            - 'null'
            - string
        firstSeenAt:
          type:
            - 'null'
            - integer
          format: int64
        lastSeenAt:
          type:
            - 'null'
            - integer
          format: int64
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_CompanyWorkplaceAddressGeopoint:
      type: object
      properties:
        co:
          type:
            - 'null'
            - string
        streetAddress:
          type:
            - 'null'
            - string
        postalCode:
          type:
            - 'null'
            - string
          readOnly: true
        city:
          type:
            - 'null'
            - string
          readOnly: true
        countryCodeAlpha3:
          type:
            - 'null'
            - string
        location:
          type:
            - 'null'
            - array
          items:
            type: number
            format: double
          readOnly: true
        firstSeenAt:
          type:
            - 'null'
            - integer
          format: int64
        lantmaterietLocationalAddressId:
          type:
            - 'null'
            - string
          format: uuid
        lantmaterietLocatedOnPropertyId:
          type:
            - 'null'
            - string
          format: uuid
        lantmaterietLocationalSupplementalNumber:
          type:
            - 'null'
            - string
        municipalityCode:
          type:
            - 'null'
            - string
        countyCode:
          type:
            - 'null'
            - string
        nyko:
          type:
            - 'null'
            - string
        nykoYear:
          type:
            - 'null'
            - integer
          format: int32
        addressId:
          type:
            - 'null'
            - integer
          format: int32
      additionalProperties: false
    Ormeo_Library_Search_Documents_Search_CompanyWorkplaceIndustryCode:
      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_CompanyWorkplaceStatus:
      type: object
      properties:
        statusType:
          $ref: >-
            #/components/schemas/Ormeo_Library_Entities_CompanyWorkplaceStatusType
        statusDate:
          type:
            - 'null'
            - integer
          format: int64
        statusDescription:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Entities_CompanyWorkplaceStatusType:
      enum:
        - isActive
        - isNoLongerActive
        - hasNeverBeenActive
      type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````