POST
/
api
/
search
curl -X POST https://api.getcatalog.ai/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query": "summer dress",
    "filters": {
      "max_price": 150.00,
      "is_available": true,
      "brand": ["fwrd", "amiri"],
      "attributes": {
        "color": ["blue", "white"],
        "season": "summer",
        "gender": "women"
      }
    },
    "page": 1
  }'
{
  "products": [
    {
      "id": "12345",
      "title": "Blue Linen Summer Dress",
      "description": "Lightweight linen dress perfect for warm weather",
      "description_html": "<p>Lightweight linen dress perfect for warm weather</p>",
      "vendor": "Summer Collections",
      "brand": "amiri",
      "url": "https://store.example.com/dress-12345",
      "price_amount": 89.99,
      "price_currency": "USD",
      "min_price": 89.99,
      "max_price": 89.99,
      "is_available": true,
      "product_type": "Dress",
      "store_domain": "store.example.com",
      "store_canonical_url": "https://store.example.com",
      "collection_handle": "summer-collection",
      "handle": "blue-linen-summer-dress",
      "tags": ["summer", "linen", "dress", "blue"],
      "images": {
        "primary": "https://example.com/dress.jpg",
        "gallery": ["https://example.com/dress-1.jpg", "https://example.com/dress-2.jpg"]
      },
      "variants": {
        "color": ["blue"],
        "size": ["XS", "S", "M", "L"],
        "price_range": { "min": 89.99, "max": 89.99 }
      },
      "options": {
        "size": ["XS", "S", "M", "L"],
        "color": ["blue"]
      },
      "attributes": {
        "color": "blue",
        "material": "linen",
        "category": "Women > Dresses",
        "gender": "women",
        "season": "summer",
        "occasion": "casual",
        "fit": "regular",
        "length": "midi",
        "sleeve_type": "short"
      },
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-20T14:45:00Z",
      "published_at": "2024-01-15T12:00:00Z"
    }
  ],
  "meta": {
    "totalItems": 24,
    "totalPages": 3,
    "currentPage": 1,
    "pageSize": 10
  }
}
Search for products using intelligent semantic search with natural language understanding. The API supports complex filtering, pagination, and returns structured product data optimized for AI applications.

Request

x-api-key
string
required
Your API key for authentication

Body

query
string
Natural language search query for semantic product discoveryExamples:
  • "silk dress for summer wedding"
  • "organic cotton t-shirt"
  • "minimalist black handbag"
filters
object
Filter criteria to narrow down results
page
number
default:"1"
Page number for pagination (1-indexed)
limit
number
default:"10"
Number of items per page (currently fixed at 10)

Response

products
array
Array of matching products
meta
object
Pagination and result metadata
curl -X POST https://api.getcatalog.ai/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query": "summer dress",
    "filters": {
      "max_price": 150.00,
      "is_available": true,
      "brand": ["fwrd", "amiri"],
      "attributes": {
        "color": ["blue", "white"],
        "season": "summer",
        "gender": "women"
      }
    },
    "page": 1
  }'
{
  "products": [
    {
      "id": "12345",
      "title": "Blue Linen Summer Dress",
      "description": "Lightweight linen dress perfect for warm weather",
      "description_html": "<p>Lightweight linen dress perfect for warm weather</p>",
      "vendor": "Summer Collections",
      "brand": "amiri",
      "url": "https://store.example.com/dress-12345",
      "price_amount": 89.99,
      "price_currency": "USD",
      "min_price": 89.99,
      "max_price": 89.99,
      "is_available": true,
      "product_type": "Dress",
      "store_domain": "store.example.com",
      "store_canonical_url": "https://store.example.com",
      "collection_handle": "summer-collection",
      "handle": "blue-linen-summer-dress",
      "tags": ["summer", "linen", "dress", "blue"],
      "images": {
        "primary": "https://example.com/dress.jpg",
        "gallery": ["https://example.com/dress-1.jpg", "https://example.com/dress-2.jpg"]
      },
      "variants": {
        "color": ["blue"],
        "size": ["XS", "S", "M", "L"],
        "price_range": { "min": 89.99, "max": 89.99 }
      },
      "options": {
        "size": ["XS", "S", "M", "L"],
        "color": ["blue"]
      },
      "attributes": {
        "color": "blue",
        "material": "linen",
        "category": "Women > Dresses",
        "gender": "women",
        "season": "summer",
        "occasion": "casual",
        "fit": "regular",
        "length": "midi",
        "sleeve_type": "short"
      },
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-20T14:45:00Z",
      "published_at": "2024-01-15T12:00:00Z"
    }
  ],
  "meta": {
    "totalItems": 24,
    "totalPages": 3,
    "currentPage": 1,
    "pageSize": 10
  }
}

Examples

Search for products with a simple query:
curl -X POST https://api.getcatalog.ai/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"query": "black shoes"}'

Price Range Filter

Filter products by price range:
curl -X POST https://api.getcatalog.ai/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query": "handbag",
    "filters": {
      "min_price": 50.00,
      "max_price": 250.00
    }
  }'

Brand Filter

Search for products from specific brands:
curl -X POST https://api.getcatalog.ai/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query": "denim jacket",
    "filters": {
      "brand": ["Levi"],
      "is_available": true
    }
  }'