Skip to content

Search content​

POST
/search/{collection}

AI-powered semantic search with natural language query parsing, automatic filters, sorting, suggestions, and clarifying questions.

How it works:

  1. AI parses your query — extracts clean search terms, filters, and sort order
  2. Finds the most relevant results using semantic matching
  3. Falls back to broader language search if needed
  4. Drops irrelevant results below quality threshold
  5. Re-sorts by price or rating when detected in query
  6. Suggests alternatives if no results found
  7. Asks clarifying questions for ambiguous queries

Authorizations​

apiKey

API key in sk_live_* format. Get yours from the dashboard at my.app-in.io.

Type
API Key (header: X-API-Key)

Parameters​

Header Parameters

X-Platform

Platform type. Defaults automatically based on collection. Set to woocommerce when searching WooCommerce products. Set to shopify when searching Shopify products.

Type
string
Valid values
"product""page""doc""woocommerce""shopify"

Path Parameters

collection*

Content collection to search

Type
string
Required
Valid values
"products""pages""docs"

Request Body​

application/json
JSON
{
  
"query": "red shoes",
  
"limit": 10
}

Responses​

Search results

application/json
JSON
{
  
"query": "string",
  
"collection": "products",
  
"results": [
  
  
{
  
  
  
"id": "string",
  
  
  
"url": "string",
  
  
  
"title": "string",
  
  
  
"snippet": "string",
  
  
  
"type": "string"
  
  
}
  
],
  
"parsed_query": "string",
  
"parsed_filters": {
  
},
  
"sort_by": "string",
  
"low_confidence": true,
  
"corrected_query": "string",
  
"market": {
  
  
"country": "CH",
  
  
"localized": true
  
},
  
"suggestion": {
  
  
"message": "string",
  
  
"cheapest": {
  
  
  
"title": "string",
  
  
  
"price": 0,
  
  
  
"currency": "string"
  
  
},
  
  
"alternatives": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"url": "string",
  
  
  
  
"title": "string",
  
  
  
  
"snippet": "string",
  
  
  
  
"score": 0,
  
  
  
  
"type": "string",
  
  
  
  
"payload": {
  
  
  
  
}
  
  
  
}
  
  
]
  
},
  
"clarifications": {
  
  
"question": "string",
  
  
"facets": [
  
  
  
{
  
  
  
  
"field": "string",
  
  
  
  
"label": "string",
  
  
  
  
"options": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
]
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

AI-powered search for your website