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

# /2026-01/retail-media/retailers/{retailerId}/categories/search

> Search a retailer categories by given text substring and category ids.



## OpenAPI

````yaml https://api.criteo.com/2026-01/retailmedia/open-api-specifications.json post /2026-01/retail-media/retailers/{retailerId}/categories/search
openapi: 3.0.1
info:
  title: Criteo API
  description: Criteo API - RetailMedia
  version: 2026-01
servers:
  - url: https://api.criteo.com
security:
  - oauth: []
tags:
  - name: Accounts
  - name: Analytics
  - name: Audience
  - name: Balance
  - name: Billing
  - name: Campaign
  - name: Gateway
paths:
  /2026-01/retail-media/retailers/{retailerId}/categories/search:
    post:
      tags:
        - Campaign
      summary: /2026-01/retail-media/retailers/{retailerId}/categories/search
      description: Search a retailer categories by given text substring and category ids.
      operationId: SearchCategory
      parameters:
        - name: limit
          in: query
          description: Limit of the search result.
          schema:
            maximum: 500
            minimum: 1
            type: integer
            format: int32
            default: 50
        - name: offset
          in: query
          description: Offset of the search result.
          schema:
            maximum: 2147483647
            minimum: 0
            type: integer
            format: int32
            default: 0
        - name: retailerId
          in: path
          description: Retailer id.
          required: true
          schema:
            type: string
            format: int32
      requestBody:
        description: Request of categories search.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValueResourceInputCategoriesSearchRequestV1'
        x-bodyName: request
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/EntityResourceCollectionOutcomeCategory202204Metadata
      security:
        - oauth:
            - RetailMedia_Campaign_Read
components:
  schemas:
    ValueResourceInputCategoriesSearchRequestV1:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ValueResourceCategoriesSearchRequestV1'
      description: >-
        A top-level object that encapsulates a Criteo API request for a single
        value objects.
    EntityResourceCollectionOutcomeCategory202204Metadata:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/EntityResourceCategory202204'
          nullable: true
        errors:
          type: array
          items:
            $ref: '#/components/schemas/SdkApiRestCommonProblem'
          description: Errors that occured during this call.
          nullable: true
          readOnly: true
        metadata:
          $ref: '#/components/schemas/Metadata'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/SdkApiRestCommonProblem'
          description: Warnings that occured during this call.
          nullable: true
          readOnly: true
      description: >-
        A top-level object that encapsulates a Criteo API response for several
        entities and metadata.
    ValueResourceCategoriesSearchRequestV1:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/CategoriesSearchRequestV1'
        type:
          type: string
          description: Type of the resource.
          nullable: true
      description: A value resource exposed by the API.
    EntityResourceCategory202204:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/Category202204'
        id:
          type: string
          description: Unique id of the entity.
          nullable: true
        type:
          type: string
          description: Type of the resource.
          nullable: true
      description: A domain entity exposed by the API, identified by a unique id.
    SdkApiRestCommonProblem:
      type: object
      properties:
        code:
          type: string
          description: A machine-readable error code, expressed as a string value.
          nullable: true
        detail:
          type: string
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          nullable: true
        instance:
          type: string
          description: A URI that identifies the specific occurrence of the problem.
          nullable: true
        source:
          type: object
          additionalProperties:
            type: string
          description: >-
            A machine-readable structure to reference to the exact location(s)
            causing the error(s).
          nullable: true
        stackTrace:
          type: string
          description: ''
          nullable: true
        title:
          type: string
          description: A short human-readable description of the problem type.
          nullable: true
        traceId:
          type: string
          description: The request correlation ID this problem comes from.
          nullable: true
        type:
          enum:
            - unknown
            - access-control
            - authentication
            - authorization
            - availability
            - deprecation
            - quota
            - validation
          type: string
          description: The problem's category.
          nullable: true
      additionalProperties: false
      description: Common problem object.
    Metadata:
      required:
        - limit
        - offset
      type: object
      properties:
        count:
          type: integer
          format: int64
          nullable: true
        limit:
          type: integer
          description: The number of elements to be returned.
          format: int32
        offset:
          type: integer
          description: The (zero-based) starting offset in the collection.
          format: int32
      additionalProperties: false
      description: Metadata related to the current request.
      nullable: true
    CategoriesSearchRequestV1:
      type: object
      properties:
        categoryIds:
          minItems: 1
          type: array
          items:
            type: string
          description: Categories search category ids criteria.
          nullable: true
        textSubstring:
          type: string
          description: Categories search text substring criteria.
          nullable: true
      description: An object that represents the request of CategoriesSearch endpoint.
    Category202204:
      required:
        - name
        - parentId
        - text
      type: object
      properties:
        name:
          type: string
          description: Category Name
        parentId:
          type: string
          description: Category ParentId
        text:
          type: string
          description: Category Text
      additionalProperties: false
      description: >-
        List of retailer's categories, including the full hierarchy of
        categories and their parent category ID
      nullable: true
  securitySchemes:
    oauth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}
        authorizationCode:
          authorizationUrl: https://api.criteo.com/oauth2
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}

````