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.
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 value | Entity searched |
|---|---|
0 | Product |
1 | Variant |
2 | Category |
3 | Trademark / Brand |
Both SearchKey and EntityTypes are required by the source documentation. An omitted or invalid value can produce a 400 validation response.
Search and related query APIs
| Operation | Method | Path | Limit / 60s (endpoint / AppKey) |
|---|---|---|---|
| Unified Search | POST | /api/v2/search | 120 / 40 |
| GetProducts | POST | /api/v2/query/products | 600 / 60 |
| GetVariants | POST | /api/v2/query/variants | 600 / 60 |
| GetCategories | POST | /api/v2/query/categories | 1200 / 120 |
| GetTrademarks | POST | /api/v2/query/trademarks | 1200 / 120 |
Search has a lower throughput quota than several entity-specific queries. Choose the correct service for your workload.
Authentication, JSON and pagination
| Request type | Required fields / rules |
|---|---|
| All PIM requests | ClientId and AppKey at the JSON body root, not as authentication headers. |
| Metadata commands | Environment, SessionId, UserToken in addition to credentials, as specified for the endpoint. |
| Query, search and pool | No metadata-command fields required by the supplied specification; use ClientId / AppKey. |
| Tracing | Optional ThreadId; the service generates one if omitted. |
| JSON convention | Use 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.
Search request and response
{
"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.
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.
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.
Error handling and diagnostics
| HTTP | Meaning | What to check |
|---|---|---|
400 | Bad Request | Required fields, metadata session values, category schema and the errors array. |
401 | Unauthorized | Root-level ClientId and AppKey, plus access permission. |
404 | Not Found | Record or relationship ID and tenant context. |
429 | Too Many Requests | Use Retry-After and retry with backoff. |
500 | Internal Server Error | Capture request context and trace information for support. |
- Inspect the standard
errorsarray 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.