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

# List app facets

> Retrieve the available filter values for apps, and how many apps carry each one



## OpenAPI

````yaml get /v1/connect/apps/facets
openapi: 3.0.4
info:
  version: 2.0.0
  title: Pipedream REST API
servers:
  - url: https://api.pipedream.com
security: []
tags:
  - description: App registry
    name: Apps
  - description: Connect tokens
    name: Tokens
  - description: Connected accounts
    name: Accounts
  - description: Action execution and configuration
    name: Actions
  - description: Component configuration
    name: Components
  - description: Trigger configuration
    name: Triggers
paths:
  /v1/connect/apps/facets:
    get:
      tags:
        - Apps
      summary: List app facets
      description: >-
        Retrieve the available filter values for apps, and how many apps carry
        each one
      operationId: listAppFacets
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FacetsResponse'
          description: app facets listed
        '401':
          description: Authentication failed
        '500':
          description: Unexpected error handling the search request
        '502':
          description: Search backend returned an error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Search backend not configured
      security:
        - ConnectToken: []
        - OAuth2: []
      x-codeSamples:
        - lang: java
          label: Java SDK
          source: |
            package com.example.usage;

            import com.pipedream.api.BaseClient;

            public class Example {
              public static void main(String[] args) {
              BaseClient client = BaseClient.withCredentials("<clientId>", "<clientSecret>")
                .build()
              ;

              client.apps().facets();
              }
            }
        - lang: python
          label: Python SDK
          source: |
            from pipedream import Pipedream

            client = Pipedream(
              project_id="YOUR_PROJECT_ID",
              client_id="YOUR_CLIENT_ID",
              client_secret="YOUR_CLIENT_SECRET",
            )
            client.apps.facets()
        - lang: typescript
          label: TypeScript SDK
          source: |
            import { PipedreamClient } from "@pipedream/sdk";

            const client = new PipedreamClient({
              clientId: "YOUR_CLIENT_ID",
              clientSecret: "YOUR_CLIENT_SECRET",
              projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
              projectId: "YOUR_PROJECT_ID"
            });
            await client.apps.facets();
components:
  schemas:
    FacetsResponse:
      description: Response received when listing app facets.
      properties:
        data:
          additionalProperties:
            items:
              $ref: '#/components/schemas/FacetValue'
            type: array
          description: |-
            The available values of each filterable field, keyed by field name
            (`category_name`, `auth_type`).
          type: object
      required:
        - data
      type: object
    ErrorResponse:
      type: object
      description: Error response returned by the API in case of an error
      required:
        - error
      properties:
        error:
          type: string
          description: The error message
        code:
          type: string
          description: The error code
        details:
          type: object
          description: Additional error details
    FacetValue:
      description: One value a filterable app field can take, and how many apps carry it.
      properties:
        count:
          description: How many apps carry this value.
          format: int64
          minimum: 0
          type: integer
        value:
          description: The value itself, as it would be passed to the matching filter.
          type: string
      required:
        - value
        - count
      type: object
  securitySchemes:
    ConnectToken:
      description: >-
        A short-lived Connect token for client-side requests on behalf of an end
        user. Generate one via the Create Connect token endpoint.
      type: http
      scheme: bearer
      bearerFormat: ^ctok_[0-9a-f]{32}$
    OAuth2:
      description: >-
        A short-lived OAuth access token for server-side requests. Generate one
        via the Generate OAuth Token flow or automatically when initializing the
        SDK client.
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.pipedream.com/v1/oauth/token
          scopes:
            '*': Full access to every OAuth-protected endpoint.
            connect:*: >-
              Full access to all Connect API endpoints (components, projects,
              triggers, accounts, etc.).
            connect:actions:*: Full access to Connect actions.
            connect:triggers:*: Full access to Connect triggers.
            connect:accounts:read: List and fetch Connect accounts for an external user.
            connect:accounts:write: Create or remove Connect accounts.
            connect:deployed_triggers:read: >-
              Read deployed triggers and related data like events, pipelines and
              webhooks.
            connect:deployed_triggers:write: Modify or delete deployed triggers.
            connect:users:read: List and fetch external users
            connect:users:write: Delete external users.
            connect:projects:read: List and fetch projects owned by the workspace.
            connect:projects:write: Create, update, or delete projects owned by the workspace.
            connect:oauth_apps:read: >-
              List and fetch custom OAuth clients, and fetch Pipedream official
              clients.
            connect:oauth_apps:write: Create, update, or delete custom OAuth clients.
            connect:app_overrides:read: List and fetch app overrides.
            connect:app_overrides:write: Create, update, or delete app overrides.
            connect:usage:read: List Connect usage records for a time window.
            connect:tokens:create: Create Connect session tokens.
            connect:proxy: Invoke the Connect proxy.
            connect:workflow:invoke: Invoke Connect workflows on behalf of a user.

````