Help Center
-
Knowledge Base
-
-
-
- Articles coming soon
-
- Home
- Install Settings
- Merchandising
- Personalize
- Category
- NLP
- Script-Hooks
- Analytics
- Manage Users
- Agentic Search (AI-Powered Conversational Search)
- AI Synonyms
- Semantic Search
- AI Shop Assistant (Chat Widget)
- Recommendations Widget
- Advanced Filtering & Filter Trees
- Troubleshooting Guide
- Search Performance Optimization
- BigCommerce Search Integration
- WooCommerce Search Integration
- Getting Started with eCommerce Search
- Ecom Copilot (AI Sales Assistant)
- AI Filtering (Query Tagging and Intent Classification)
- Visual Merchandising (Product Pinning)
- Geo Merchandising
- A/B Testing
- Showcase Products (Zero-Character Search)
- Delete Products from Search Index
- Landing Pages
- Autocomplete Configuration
- Popular Suggestion Queries
- Tab Views
- Theme Setup
- Search Bar Integration
- Search Redirects
- Advanced Configuration (Search Weights)
- Matching Options
- Connect BigCommerce
- GDPR and Privacy Settings (Cookie Consent)
- Image Search (Visual Search)
- Smart Notifications (Back-in-Stock and Price Drop Alerts)
- Leverage GA4 Data (Google Analytics 4 Integration)
- Manage Users (Dashboard Access and Permissions)
- Reporting Overview
- Show all articles (28) Collapse Articles
-
-
- Install Settings
- Analytics
- Search settings
- Merchandising
- Category
- NLP
- Search-API info
- Manage Users
- Script-Hooks
- Personalize
- Agentic Search (AI-Powered Conversational Search)
- AI Synonyms
- Semantic Search
- Recommendations Widget
- Advanced Filtering & Filter Trees
- Troubleshooting Guide
- Search Performance Optimization
- WooCommerce Search Integration
- Show all articles (3) Collapse Articles
-
-
- Instructions to install app
- Home
- Install Settings [Shopify]
- Category
- Merchandising
- Search settings
- NLP
- Analytics
- Search-API info
- Manage Users
- Script-Hooks
- Personalize
- Agentic Search (AI-Powered Conversational Search)
- AI Synonyms
- Semantic Search
- AI Shop Assistant (Chat Widget)
- Recommendations Widget
- Commerce MCP Server (Shopify AI Tools)
- Advanced Filtering & Filter Trees
- Troubleshooting Guide
- Search Performance Optimization
- Ecom Copilot (AI Sales Assistant)
- Search Bar Integration
- Search Redirects
- Metafields and Tags (Shopify)
- Product Bundles (Shopify)
- Collection Pages (Shopify)
- GDPR and Privacy Settings (Cookie Consent)
- Image Search (Visual Search)
- Smart Notifications (Back-in-Stock and Price Drop Alerts)
- Leverage GA4 Data (Google Analytics 4 Integration)
- Manage Users (Dashboard Access and Permissions)
- Reporting Overview
- Show all articles (18) Collapse Articles
-
- Getting started
- Installation Guide
- Magento 2 Search Integration - Adobe Commerce edition
- Commerce MCP Server (Shopify AI Tools)
- BigCommerce Search Integration
- WooCommerce Search Integration
- Getting Started with eCommerce Search
- Connect BigCommerce
- Domain Allowlist (WordPress)
- Leverage GA4 Data (Google Analytics 4 Integration)
-
- Articles coming soon
-
< Back
You are here:
- KB Home
- Knowledge Base
- Ecommerce Search [Custom Stack]
- Search Response
- Search-API info
Print
Search-API info
Created On
Last Updated On
byExpertrec Marketing
In this section, you will find the relevant API keys to integrate Expertrec Search Engine into your Store/Site through API.
API documentation links:
Complete API Reference
Main Search Endpoint
POST /organisation/{org_id}/{api_key}/srh_post
Content-Type: application/json
{
"q": "search query",
"size": 10,
"page": 0,
"filters": {
"category": ["Electronics"],
"price": {"min": 10, "max": 100}
},
"sort": "price_asc",
"facets": ["category", "brand", "price"]
}
Response Format
{
"results": [
{
"id": "product_123",
"title": "Product Name",
"description": "...",
"price": 29.99,
"image": "https://...",
"url": "https://...",
"variants": [...]
}
],
"facets": {
"category": [{"value": "Electronics", "count": 42}],
"brand": [{"value": "BrandX", "count": 15}]
},
"total": 156,
"page": 0,
"size": 10
}
Request Parameters
- q (string, required): Search query
- size (integer, default 10): Number of results per page
- page (integer, default 0): Page number (0-indexed)
- filters (object): Key-value pairs for filtering
- sort (string): Sort order (relevance, price_asc, price_desc, date_desc, etc.)
- facets (array): Fields to return facet counts for
Authentication
Include your API key in the URL path. Keep it secure; do not expose in client-side code for sensitive operations.
Rate Limiting
Standard rate limits apply. Contact support for higher limits.
Error Codes
- 200: Success
- 400: Bad request (invalid parameters)
- 401: Unauthorized (invalid API key)
- 404: Organization not found
- 429: Rate limit exceeded
- 500: Server error
Code Examples
cURL
curl -X POST "https://api.expertrec.com/organisation/YOUR_ORG_ID/YOUR_API_KEY/srh_post" \
-H "Content-Type: application/json" \
-d '{"q": "blue shoes", "size": 10}'
JavaScript (fetch)
const response = await fetch(
'https://api.expertrec.com/organisation/YOUR_ORG_ID/YOUR_API_KEY/srh_post',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ q: 'blue shoes', size: 10 })
}
);
const data = await response.json();
Python (requests)
import requests
response = requests.post(
f'https://api.expertrec.com/organisation/{org_id}/{api_key}/srh_post',
json={'q': 'blue shoes', 'size': 10}
)
results = response.json()
Table of Contents