Search Overview

Lidia PIM · API Reference · Search / Catalog Discovery

Searching the Lidia PIM catalog

Search across product, variant, category and brand records with one POST request. Use SearchKey and EntityTypes for cross-entity discovery; use resource-specific query APIs when you need detailed filtering or dedicated media retrieval.

Search API: v2Cross-entity catalog search
01 · Concept

Unified catalog search

The POST /api/v2/search endpoint supports fast searches across multiple PIM entity types. Send the search phrase and select the target entity classes in the JSON body.

EntityTypes valueEntity searched
0Product
1Variant
2Category
3Trademark / Brand
Required fields

Both SearchKey and EntityTypes are required by the source documentation. An omitted or invalid value can produce a 400 validation response.

02 · Endpoint map

Search and related query APIs

OperationMethodPathLimit / 60s (endpoint / AppKey)
Unified SearchPOST/api/v2/search120 / 40
GetProductsPOST/api/v2/query/products600 / 60
GetVariantsPOST/api/v2/query/variants600 / 60
GetCategoriesPOST/api/v2/query/categories1200 / 120
GetTrademarksPOST/api/v2/query/trademarks1200 / 120

Search has a lower throughput quota than several entity-specific queries. Choose the correct service for your workload.

03 · Request conventions

Authentication, JSON and pagination

Request typeRequired fields / rules
All PIM requestsClientId and AppKey at the JSON body root, not as authentication headers.
Metadata commandsEnvironment, SessionId, UserToken in addition to credentials, as specified for the endpoint.
Query, search and poolNo metadata-command fields required by the supplied specification; use ClientId / AppKey.
TracingOptional ThreadId; the service generates one if omitted.
JSON conventionUse exact PascalCase request fields such as CategoryId, SortOrder, Skip and Take.

Search key

SearchKey is the search phrase. Example: headphones.

Entity scope

EntityTypes is an array of documented entity type codes.

Pagination

Use Skip and Take as shown in the v2 source. Do not rely on earlier pageIndex examples.

JSON body

Send ClientId and AppKey at the root; Search requests do not require metadata command fields.

04 · Quick start

Search request and response

POST /api/v2/search · Search across all four entity types
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "SearchKey": "headphones",
  "EntityTypes": [
    0,
    1,
    2,
    3
  ],
  "Skip": 0,
  "Take": 20
}
POST /api/v2/search · Search products and variants only
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "SearchKey": "wireless",
  "EntityTypes": [
    0,
    1
  ],
  "Skip": 20,
  "Take": 20
}
Standard response envelope · ServiceResponse<T> (illustrative)
{
  "result": [],
  "resultCount": 0,
  "totalCount": 0,
  "type": 1,
  "code": "200",
  "message": "Operation completed successfully.",
  "errors": [],
  "preProcessingTook": 8,
  "serviceTook": 32,
  "totalTook": 40
}

The response example shows the common ServiceResponse envelope rather than a fabricated search result object. Use the live Search reference for the actual result-item schema.

05 · Integration guidance

When to use Search vs Query

Use unified Search

When users need a fast keyword lookup across more than one entity type: product, variant, category or trademark.

Use GetProducts

When your integration needs structured product filters such as ProductIds, CategoryIds or TrademarkIds.

Use GetVariants

When you need variant records filtered by ProductIds, VariantIds or barcode.

Use dedicated media queries

When you need the lists of image/document relationships for known products or variants.

Limits and throttling

Search: 120 requests per 60 seconds at endpoint level and 40 per 60 seconds per AppKey. The service uses a sliding window; handle 429 with Retry-After and backoff.

06 · Operations

Error handling and diagnostics

HTTPMeaningWhat to check
400Bad RequestRequired fields, metadata session values, category schema and the errors array.
401UnauthorizedRoot-level ClientId and AppKey, plus access permission.
404Not FoundRecord or relationship ID and tenant context.
429Too Many RequestsUse Retry-After and retry with backoff.
500Internal Server ErrorCapture request context and trace information for support.
  • Inspect the standard errors array when input validation fails.
  • Do not assume the search result type or ranking algorithm beyond what the supplied documentation states.
  • Capture request and tracing information when reporting unexpected server errors.