Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic Path Search API

The Search API enables you to search for products in your published catalogs. Search provides powerful capabilities including full-text search, filtering, faceting, and sorting to help shoppers find products quickly and efficiently.### How Search WorksWhen you publish a catalog with search enabled, the catalog's products are automatically indexed for search. The search index contains product data optimized for fast querying, including product names, descriptions, SKUs, categories, prices, and any custom fields you've configured.There are two types of search operations:- **Search**: Execute a single search query against a catalog. Use the GET endpoint for simple searches with query parameters.- **Multi-search**: Execute multiple search queries in a single request. Use the POST endpoint to batch searches together for improved performance.### Search Features- **Full-text search**: Search across product names, descriptions, SKUs, and custom fields with typo tolerance and relevance ranking- **Filtering**: Narrow results using conditions on product attributes, categories, prices, and custom fields- **Faceting**: Get aggregated counts for attribute values to build dynamic navigation and refinement options- **Sorting**: Order results by price, name, custom fields, or relevance score- **Highlighting**: Get highlighted snippets showing where search terms match in product fields- **Autocomplete**: Get search suggestions as shoppers type their queries### Shopper ContextSearch results are personalized based on the shopper's context. The system automatically determines which catalog and prices to use based on:- **Channel**: The shopping experience (web, mobile, B2B portal)- **Account**: For B2B scenarios, the account and parent accounts- **Customer**: The logged-in customer's segment- **Tags**: Custom context tags for advanced segmentationThis context is provided via request headers and is used to resolve the appropriate catalog rules and price books.### Admin vs Shopper Endpoints- **Shopper endpoints** (`/pcm/catalog/search`, `/pcm/catalog/multi-search`): Use shopper context headers to automatically resolve the correct catalog and prices.- **Admin endpoints** (`/pcm/catalogs/{catalog_id}/releases/{release_id}/search`): Directly specify the catalog and release to search, useful for previewing releases or testing.

Elastic Path Search API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Search. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 4 paths, and defines 17 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.

Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.

4 operations 4 paths 17 schemas 2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
25.1126.6886238
Base URL
https://useast.api.elasticpath.com
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Elastic Path Search API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerToken). By default, every request must be authenticated.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Search 4

The Search API enables you to search for products in your published catalogs. Search provides powerful capabilities including full-text search, filtering, faceting, and sorting to…

POST
/pcm/catalog/multi-search
Multi-search
postMultiSearch 6 params body → 200400500
POST
/pcm/catalogs/{catalog_id}/releases/{release_id}/multi-search
Admin Multi-search
multiSearchByCatalogRelease 8 params body → 200400500
GET
/pcm/catalog/search
Search
searchByContext 15 params → 200400500
GET
/pcm/catalogs/{catalog_id}/releases/{release_id}/search
Admin Search
searchByCatalogRelease 17 params → 200400500

Schemas 17

The contract defines 17 schemas that model the data the API accepts and returns. The most detailed are SearchQuery (9 properties), SearchResult (9 properties), Product (5 properties), Error (4 properties). Each schema is shown below with its type and property counts.

IncludedResponse
object
Included is an array of resources that are included in the response.
Error
object
4 properties 2 required
ErrorResponse
object
1 property 1 required
Hit
object
3 properties
AutocompleteResponse
object
An autocomplete suggestion with query frequency information.
3 properties
SearchResponse
SearchQuery
object
9 properties
SearchResult
object
9 properties
FacetByField
string
Specifies which fields to use for generating facets in search results. See [faceting](/guides/How-To/Catalogs/Search/faceting) for more details.
SortByField
string
Orders search results by specified fields. See [sorting](/guides/How-To/Catalogs/Search/sorting) for more details.
FilterByField
string
Applies conditions to narrow down search results based on specific field values. See [filtering](/guides/How-To/Catalogs/Search/filtering) for more details.
MultiSearchRequest
object
1 property 1 required
FacetCount
object
4 properties
FacetValue
object
3 properties
Product
object
A product in a catalog with the following attributes.
5 properties
MultiSearchResponse
object
2 properties
SearchResultType
string
Type of search operation to performed

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-path-search-api-openapi.yml Raw ↑

Other APIs Elastic Path publishes across the network.

Elastic Path GraphQL API
Elastic Path Account Addresses API
Elastic Path Account Authentication Settings API
Elastic Path Account Cart Associations API
Elastic Path Account Management Authentication API
Elastic Path Account Members API
Elastic Path Account Membership API
Elastic Path Account Membership Settings API
Elastic Path Account Tags API
Elastic Path Accounts API
Elastic Path Administrator Latest Releases Catalog API API
Elastic Path Application Keys API