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

# Get Insights Filters

> Returns all distinct filter values available across a workspace's active projects: sources (AI/search engines), brands, countries, and categories. Use this endpoint to populate filter dropdowns on the insights dashboard.



## OpenAPI

````yaml https://openapi.shareofmodel.ai/swagger-sos.json get /v1/organizations/{organization_id}/workspaces/{workspace_id}/search/insights/filters
openapi: 3.0.3
info:
  title: Share Of Model API
  version: v1
  description: >-
    ## Search



    The Share of Search API provides visibility, presence, and ranking metrics
    for tracked

    search and AI engine sources. Use it to analyse how a project performs
    across keywords,

    thematics, competitors, and ranked URLs over time.


    For the previous version of the API, see the [v1
    documentation](https://api.shareofsearch.jplus.io/docs/v1).
servers:
  - description: Search - Production API
    url: https://api.shareofsearch.jplus.io/
security: []
tags:
  - name: Projects
    description: >-
      Manage analyses (projects) within a workspace. Create new analyses and
      list existing ones.
  - name: Collects
    description: >-
      Access data collection runs and their raw results. List collect runs for
      an analysis, or retrieve the raw data captured during each run: domain
      rankings, brand mentions, keyword insights, and LLM/SERP responses.
  - name: Overview Metrics
    description: >-
      High-level, aggregated metrics that summarise the overall performance of
      an analysis. Use these endpoints to get a quick picture of visibility,
      presence, andranking across all keywords and sources.
  - name: Metrics
    description: >-
      Detailed, per-entity metrics for deep-diving into specific aspects of an
      analysis. Break down performance by domain, brand, keyword, URL, or
      competitor.
  - name: Insights
    description: >-
      Cross-project KPIs aggregated at the workspace level. These endpoints
      consolidate metrics from all active projects within a workspace to provide
      a unified view of visibility, mentions, citations, sentiment, and ranking.
  - name: Shopping
    description: >-
      Shopping-specific metrics for analyses that track product listings in
      shopping engines. Measure product visibility, pricing, merchant coverage,
      and share of shelf across all tracked keywords and sources.
paths:
  /v1/organizations/{organization_id}/workspaces/{workspace_id}/search/insights/filters:
    get:
      tags:
        - Insights
      summary: Get Insights Filters
      description: >-
        Returns all distinct filter values available across a workspace's active
        projects: sources (AI/search engines), brands, countries, and
        categories. Use this endpoint to populate filter dropdowns on the
        insights dashboard.
      operationId: get_insights_filters
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            title: Organization Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsightsFiltersResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    InsightsFiltersResponse:
      properties:
        sources:
          items:
            $ref: '#/components/schemas/SourcesEnum'
          type: array
          title: Sources
          description: Distinct AI/search engine sources across all workspace projects.
        brands:
          items:
            type: string
          type: array
          title: Brands
          description: Distinct brand names (resolved) across all workspace projects.
        countries:
          items:
            $ref: '#/components/schemas/CountryCodeEnum'
          type: array
          title: Countries
          description: Distinct country codes across all workspace projects.
        categories:
          items:
            $ref: '#/components/schemas/InsightsColoredCategory'
          type: array
          title: Categories
          description: >-
            Categories sorted alphabetically, each with a deterministic color
            for chart rendering.
      type: object
      required:
        - sources
        - brands
        - countries
        - categories
      title: InsightsFiltersResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SourcesEnum:
      type: string
      enum:
        - Bing
        - BingAIO
        - ChatGPT
        - Perplexity
        - Google
        - GoogleAIO
        - GoogleAIMode
        - Claude
        - Gemini
        - AmazonRufus
      title: SourcesEnum
    CountryCodeEnum:
      type: string
      enum:
        - AR
        - AT
        - AU
        - AE
        - BH
        - BE
        - BO
        - BR
        - CA
        - CN
        - CO
        - DK
        - EC
        - ES
        - FI
        - FR
        - DE
        - GB
        - HU
        - ID
        - IE
        - IL
        - IN
        - IT
        - JP
        - KR
        - KW
        - LU
        - MA
        - MX
        - MY
        - NG
        - NL
        - 'NO'
        - PH
        - PK
        - PL
        - PT
        - QA
        - RO
        - SA
        - SE
        - SG
        - CH
        - TH
        - TR
        - TW
        - US
        - VN
        - ZA
      title: CountryCodeEnum
    InsightsColoredCategory:
      properties:
        value:
          type: string
          title: Value
          description: Category name.
        color:
          type: string
          title: Color
          description: Hex color assigned to this category for chart rendering.
      type: object
      required:
        - value
        - color
      title: InsightsColoredCategory
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````