---
title: "Find all values of a feature starting with a prefix."
url: "https://developer-qual.migros.ch/apis/products-related-8/versions/051741b6-0319-4b5e-b1f1-6bdbc778acb6/operations/get-product-features-by-name"
---

> Full API specification: https://developer-qual.migros.ch/apis/products-related-8/versions/051741b6-0319-4b5e-b1f1-6bdbc778acb6.md

# Find all values of a feature starting with a prefix.

`GET` `/migros/products/v8/products/features/{name}`

Operation ID: `get-product-features-by-name`

Find all values of a feature starting with a prefix.

## Path parameters

- `name` (string, required) - The feature label_code to get values of

## Query parameters

- `prefix` (string, optional) - Restrict the values to those starting with this prefix.
- `limit` (integer, optional) - Only return the limit most frequent hits.
- `lang` (string, optional) - Defines the language (de/fr/it/en) for this request as query parameter. Either use the query param "lang" or header "Accept-Language", not both.

## Header parameters

- `Accept-Language` (string, optional) - Defines the language (de/fr/it/en) for this request as request header. Either use the query param "lang" or header "Accept-Language", not both.

## Responses

- `200` - Returned when successful

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Products Related
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
paths:
  /migros/products/v8/products/features/{name}:
    get:
      description: Find all values of a feature starting with a prefix.
      operationId: get-product-features-by-name
      parameters:
        - description: The feature label_code to get values of
          in: path
          name: name
          required: true
          schema:
            type: string
        - description: Restrict the values to those starting with this prefix.
          in: query
          name: prefix
          schema:
            type: string
        - description: Only return the limit most frequent hits.
          in: query
          name: limit
          schema:
            default: 10
            type: integer
        - $ref: "#/components/parameters/lang"
        - $ref: "#/components/parameters/Accept-Language"
      responses:
        "200":
          content:
            application/json:
              schema:
                items:
                  $ref: "#/components/schemas/FeatureValueAggregation"
                type: array
          description: Returned when successful
      summary: Find all values of a feature starting with a prefix.
      tags:
        - Products Related
security:
  - Kong-Api-Key: []
    basicAuth: []
components:
  parameters:
    lang:
      description: Defines the language (de/fr/it/en) for this request as query
        parameter. Either use the query param "lang" or header
        "Accept-Language", not both.
      in: query
      name: lang
      schema:
        default: de
        enum:
          - de
          - fr
          - it
          - en
        type: string
    Accept-Language:
      description: Defines the language (de/fr/it/en) for this request as request
        header. Either use the query param "lang" or header "Accept-Language",
        not both.
      in: header
      name: Accept-Language
      schema:
        default: de
        enum:
          - de
          - fr
          - it
          - en
        type: string
  schemas:
    FeatureValueAggregation:
      properties:
        count:
          type: integer
        value:
          type: string
        value_code:
          type: string
      type: object
  securitySchemes:
    Kong-Api-Key:
      description: Kong key-auth authentication
      in: header
      name: X-Api-Key
      type: apiKey
    basicAuth:
      scheme: basic
      type: http
```
